我正在尝试在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)
我该如何解决?
答案 0 :(得分:0)
cloud.r-project.org
应该是cran.rstudio.com
的别名,但r-project.org
上的名称服务似乎出了点问题。您可以直接使用install.packages("ggpmisc", repos = "https://cran.rstudio.com")
尝试使用真实姓名。