I am having trouble updating and installing R packages. I was able to do this until very recently, but suddenly I am getting the following error message when I try to connect to the CRAN mirror:
*--- Please select a CRAN mirror for use in this session ---
Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGRA~1/R/R-33~1.1/doc/CRAN_mirrors.csv'
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
no packages were specified
In addition: Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
InternetOpenUrl failed: ''*
- I have tried to install packages using both base R and RStudio but neither works.
- I have checked my firewall/proxy settings and they are fine.
- I've opened both R and RStudio as administrator but it did not work
- I checked that the entire R folder and all subfolders in Program Files are writable.
- I am currently using R i386 3.3.1 but have tried to install packages in R 3.2.5 with the same results.
- I'm currently using Windows 7.
Can anyone suggest alternative solutions? I have no idea what to do next.
Updated to include sessionInfo()
output:
R version 3.3.1 (2016-06-21)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_South Africa.1252 LC_CTYPE=English_South Africa.1252
[3] LC_MONETARY=English_South Africa.1252 LC_NUMERIC=C
[5] LC_TIME=English_South Africa.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.3.1