Issue on access to repositories... How do I launch RStudio with a fresh "vanilla" session?

When I launch RStudio, I get this message:

Warning: unable to access index for repository http://www.vps.fmvz.usp.br/CRAN/src/contrib: no fue posible abrir la URL 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/PACKAGE

Next, when I try to install a package I get:

Warning in install.packages :

cannot open URL 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/PACKAGES.gz': HTTP status was '403 Forbidden'
Warning in install.packages :
  cannot open URL 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/PACKAGES': HTTP status was '403 Forbidden'
Warning in install.packages :
  unable to access index for repository http://www.vps.fmvz.usp.br/CRAN/src/contrib:
  no fue posible abrir la URL 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/PACKAGES'

I have reproduced this error with R versions 3.2.3 and 3.4.4. My OS is Ubuntu Linux 16.04 LTS . The problem started last week. I found that the problem does not occur when I start R outside RStudio with on a R --vanilla session.

My session info is:

> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS

locale:
 [1] LC_CTYPE=es_AR.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=es_AR.UTF-8        LC_COLLATE=es_AR.UTF-8    
 [5] LC_MONETARY=es_AR.UTF-8    LC_MESSAGES=es_AR.UTF-8   
 [7] LC_PAPER=es_AR.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=es_AR.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

loaded via a namespace (and not attached):
[1] tools_3.2.3

The current repository is (but I have already tried with several repositories, both http and https repos):

getOption("repos")
                              CRAN 
"http://www.vps.fmvz.usp.br/CRAN/" 
attr(,"RStudio")
[1] TRUE

May be the problem is solved if I launch RStudio with a fresh R --vanilla session, but I don't know how to set this up.

I would appreciate any help.

It seems there is an issue with your server to access this cran URL. This is why you have the error. You should change the repos url or see why this is not accessible.

The setting that set the option repos somewhere in a .Rprofile or Rprofile.site, files that are not run when using --vanilla. You should have another repos when running vanilla (try getOption("repos") when in --vanilla)
This could be of interest

Sorry for my late response. I didn't receive a notification...
The repository in the --vanilla session is:

> getOption("repos")
    CRAN 
"@CRAN@"

I tried to use several repositories, both http and https, and I always get the same error.

What repos did you try ?

Are you connected to internet ?
Have you tried https://cran.rstudio.com ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.