ThinkR-open / dockerfiler

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

add flag to dock_from_renv function #60

Closed campbead closed 9 months ago

campbead commented 9 months ago

adding flag to dock_from_renv function, keep_renv_version to allow the dockerfile to use the same version of renv as specified in the lockfile.

See issue 59

VincentGuyader commented 9 months ago

I'm not sure if the default parameters should be FALSE or TRUE here...

I have to think about it.

VincentGuyader commented 8 months ago

@campbead I made some modifcation about the parameters (and because now we use a bundelised {renv} inside {dockerfiler} see :


#' @param renv_version character. The {renv} version to use in the generated Dockerfile. 
#' By default, it is set to the version specified in the `renv.lock` file. 
#' If the `renv.lock` file does not specify a {renv} version, the version of {renv} bundled with {dockerfiler}, specifically `dockerfiler::renv$the$metadata$version`, will be used. If you set it to NULL, the latest available version of {renv} will be used.