无法安装软件包“ ggpmisc”不可用(对于R版本3.5.0)

时间:2019-06-26 17:28:28

标签: r installation dockerfile ggpmisc

我正在尝试在Dockerfile中安装“ ggpmisc”软件包,并且收到消息:

Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
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 message:
package ‘ggpmisc’ is not available (for R version 3.5.0) 

我该如何解决?

1 个答案:

答案 0 :(得分:0)

cloud.r-project.org应该是cran.rstudio.com的别名,但r-project.org上的名称服务似乎出了点问题。您可以直接使用install.packages("ggpmisc", repos = "https://cran.rstudio.com")尝试使用真实姓名。