Search code examples
rinstallationdockerfileggpmisc

Can't install package ‘ggpmisc’ is not available (for R version 3.5.0)


I'm trying to install ‘ggpmisc’ package in my Dockerfile, and I got the message :

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) 

How can I fix it?


Solution

  • cloud.r-project.org is supposed to be an alias for cran.rstudio.com, but it looks as though something has gone wrong with the name service at r-project.org. You could try the real name directly using install.packages("ggpmisc", repos = "https://cran.rstudio.com").