Closed JosiahParry closed 3 years ago
Things to do:
Create an option for mounting the renv package cache per https://twitter.com/chrisderv/status/1423021577675870213?s=20
Hey,
thank for this ! (And sorry for not getting back sooner.
Any reason for closing this now ?
This PR adds a new function
dock_from_renv()
which creates a Dockerfile from anrenv.lock
file.By default, this function uses the RStudio Public Package Manager (PPM) (
use_rspm = TRUE
) which enables us to utilize the Linux binaries provided by it. When this argument is set to true, it creates a new filerenv.lock.dock
which is copied into the Dockerfile asrenv.lock
. The purpose of this is to leave the existingrenv.lock
alone and still usable for individual development.This function uses
{pak}
to resolve package dependencies and as such is added as an imported package.The function only supports Ubuntu and Centos images.