For the last few hours I have not been able to install packages from the RStudio CRAN mirror. For example:
> install.packages("workflowr")
Installing package into ‘/home/ross/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/workflowr_1.1.1.tar.gz'
Warning in install.packages :
cannot open URL 'https://cloud.r-project.org/src/contrib/workflowr_1.1.1.tar.gz': HTTP status was '502 Bad Gateway'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cloud.r-project.org/src/contrib/workflowr_1.1.1.tar.gz'
Warning in install.packages :
download of package ‘workflowr’ failed
I changed to a different CRAN mirror and the problem went away.