ThinkR-open / dockerfiler

Easy Dockerfile Creation from R
https://thinkr-open.github.io/dockerfiler/
Other
169 stars 25 forks source link

Utilize RStudio Package Manager for Docker Images #57

Open JosiahParry opened 1 year ago

JosiahParry commented 1 year ago

dock_from_renv() writes a Dockerfile with cran.rstudio.com as the CRAN repository which does not serve linux binaries. For a better experience, RStudio Package Manager should be added as the default package repo to avoid building packages from source.

https://github.com/ThinkR-open/dockerfiler/blob/e40f804e9728afb9bb5a8c52d965c9ac4a8fd58a/R/dock_from_renv.R#L53

JosiahParry commented 7 months ago

Note that it is now referred to as Posit Public Package Manager (P3M) and is available at https://p3m.dev/client/#/repos/cran/setup?distribution=ubuntu-22.04. Using CRAN source packages results in exceptionally long build times. Providing a users with an efficient default would be a QOL improvement.