无法安装包‘ggpmisc’不可用(对于 R 版本 3.5.0)

Can't install package ‘ggpmisc’ is not available (for R version 3.5.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) 

我该如何解决?

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

试试真名