o2r-project / containerit

Package an R workspace and all dependencies as a Docker container
https://o2r.info/containerit/
GNU General Public License v3.0
290 stars 29 forks source link

Utilize dockerfiler::dock_from_renv() when renv.lock file is provided #189

Closed JosiahParry closed 2 years ago

JosiahParry commented 3 years ago

NOTE: This functionality works solely with my fork of dockerfiler as it has not been merged yet.

This PR will utilize dockerfiler::dock_from_renv() when the from argument contains "renv.lock".

To do this, I've added a single if statement with an early return. Additionally, I've added the . . . argument so as to pass arguments to dock_from_renv() if desired.

nuest commented 2 years ago

@JosiahParry Thanks - that's certainly something I'd like to include (#178), and even better when the functionality is already present elsewhere.

Would you be interested to add a test for this new feature?

Is this included in dockerfiler by now?