Error in install.packages : unable to install packages

Help please, I have been trying to download the package dplyr into my r studio but is unable to do so - maybe due to proxy, please help

error:
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'

If your connection is behind a proxy server you need to set your credentials on startup. Take a look at this support article

1 Like

I wrote this:
Sys.setenv(http_proxy= "http://proxy.example.com:165.225.110.8:80/")
but still cannot work

The environment variable has to be set on startup so I think you need to use a .Renviron file as explained in the support article I linked for you.

Also, it seems you are not setting your actual credentials and proxy address.

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.