I've recently updated R and RStudio for an end user, but he is getting the following when attempting to install packages.
> install.packages('tidyverse')
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib :
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Installing package into ‘C:/Users/pkeef/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
I can't post the rest of the error as I am only able to post 2 links.
If yes, you probably need to set the http_proxy and https_proxy environment variables. If you are on Windows, that might or might not work, depending on your proxy setup.
A workaround that probably works is to use the wininet method to download files: