当我尝试通过RStudio的“软件包”面板安装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
感谢您的帮助!
答案 0 :(得分:1)
所使用的cran镜像服务存在问题。 对于cran.rstudio.com,您可以在此处关注服务状态:https://status.rstudio.com/
发生类似错误时,可以尝试使用另一个镜像,例如,在RStudio IDE全局选项中更改存储库,或在调用new Student()
中或全局更改选项repos
。与install.packages
```