nanxstats / liftr

🐳 Containerize R Markdown documents for continuous reproducibility
https://nanx.me/liftr/
GNU General Public License v3.0
170 stars 20 forks source link

Install pre-built R packages in Dockerfile #1

Closed nanxstats closed 7 years ago

nanxstats commented 9 years ago

Compiling and installing source packages in Dockerfile takes considerable amount of time. Install pre-built R Packages will save a lot of time.

Possible approach:

  1. https://github.com/rocker-org/hadleyverse/blob/master/Dockerfile

Potential problems:

  1. Could this create reproducibility issues? e.g. package version mismatch. (Why not add an option to let the users choose to compile or to install binary? - by default, binary)
  2. How about pre-built Bioconductor packages?
nanxstats commented 7 years ago

In the incoming 0.5 release, the cache = TRUE option in render_docker() will use the cached image layers when there are no changes in package dependencies. This makes this issue a much smaller problem.