ThinkR-open / dockerfiler

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

`dock_from_renv()` doesn't require the `renv::restore()` command in dockerfile to match renv version in lockfile #59

Closed campbead closed 9 months ago

campbead commented 9 months ago

When dock_from_renv() is run the resulting dockerfile doesn't require the renv::restore() command to be executed with the same version of renv as specified in the lockfile. This could introduce errors if the exact version of renv is important.

I am submitting a PR to introduce an option into dock_from_renv() to allow the function to run the renv::restore() command in the dockerfile with the matching version renv from the lockfile.