containerit icon indicating copy to clipboard operation
containerit copied to clipboard

Add all dependencies to Dockerfile, even transitive ones

Open nuest opened this issue 7 years ago • 1 comments

Potentially useful functions:

  • Using pkggraph we could explicitly list all R package dependencies of the loaded packages in the Dockerfile. See https://cran.r-project.org/web/packages/pkggraph/vignettes/vignette_pkggraph.html
  • tools package could also already do the job:
    • https://www.rdocumentation.org/packages/tools/versions/3.4.1/topics/package_dependencies
  • miniCRAN package: https://cran.r-project.org/web/packages/miniCRAN/vignettes/miniCRAN-dependency-graph.html
    • https://www.rdocumentation.org/packages/miniCRAN/versions/0.2.10/topics/pkgDep

This should be controllable by an argument in the dockerfile() function.

nuest avatar Jun 08 '17 09:06 nuest

For the o2r reproducibility service, this might add considerable overhead because things are installed despite them being available in the base image.

nuest avatar Aug 10 '18 12:08 nuest