0

我正在尝试在我的 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) 

我该如何解决?

4

1 回答 1

1

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

于 2019-06-26T20:13:34.033 回答