当我尝试用RStudio的packages面板安装blogdown包时,出现了这个错误。我想这是一些基本的东西,但我不知道它意味着什么!
> install.packages("blogdown")
There is a binary version available but the source version is later:
binary source needs_compilation
blogdown 0.6 0.7 FALSE
installing the source package ‘blogdown’
trying URL 'https://cran.rstudio.com/src/contrib/blogdown_0.7.tar.gz'
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/src/contrib/blogdown_0.7.tar.gz': HTTP status was '502 Bad Gateway'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/src/contrib/blogdown_0.7.tar.gz'
Warning in install.packages :
download of package ‘blogdown’ failed谢谢你的帮助!
发布于 2018-07-07 13:54:24
使用cran镜像服务有问题。对于cran.rstudio.com,您可以在这里跟踪服务状态:https://status.rstudio.com/
当您有类似的错误时,您可以尝试另一个镜像,例如,更改RStudio IDE全局选项中的repos或在调用install.packages或全局中更改选项repos。与options(repos = c(CRAN='<new-url>')‘
https://stackoverflow.com/questions/51223626
复制相似问题