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?

Bella
  • 937
  • 1
  • 13
  • 25
  • 1
    You've given folks very little information here. Have you checked through previous questions, like this one? https://stackoverflow.com/q/25721884/5325862 – camille Jun 26 '19 at 18:05
  • 1
    This isn't a dup of that question: this is a problem with the `cloud.r-project.org` redirection. – user2554330 Jun 26 '19 at 20:14

1 Answers1

1

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").

user2554330
  • 37,248
  • 4
  • 43
  • 90
  • 1
    Thanks, but it didn't work... – Bella Jun 27 '19 at 14:06
  • 1
    The `r-project.org` issue has been fixed; it may take a while for your system to see the fix, but eventually the `unable to access index for repository` message should go away. The `‘ggpmisc’ is not available (for R version 3.5.0)` error may remain; because R 3.5.0 is no longer current, you might have to build the package yourself (or upgrade R). – user2554330 Jun 27 '19 at 15:44