-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use pak & renv together #436
Comments
There is no current recommended approach to use pak and renv together, you are a pioneer here, for better or worse. pak will potentially be able to install packages from an renv lockfile: #343. I guess that would solve most (all?) of your problems. |
@gaborcsardi thanks for your answer! So I get it right that |
Not currently, no. pak does not do anything with libraries currently. It installs into the first library on |
@gaborcsardi thanks, will look into this! |
renv now supports pak for installing packages, so I am going to close this. |
I have a project that should be deployed as a docker container, that means:
I do not want to follow the R package structure, since I want to use
box
and nested modules.renv
is not exactly speedy, which is why I wanted to trypak
. However, if I'm correct,pak
does not setup a per-project library likerenv
does.Using
pak
only in the container is not possible either, since it can't install fromrenv.lock
.I was wondering whether it's possible to use both together:
renv::init(bare=TRUE)
to set up the project librarypak
DESCRIPTION
pak::lockfile_create()
to snapshot the package mentioned inDESCRIPTION
and their exact versionspak::lockfile_install()
in the containerWhat would be the recommended approach to have something similar to
poetry
, a file that describes the project dependencies, an isolated library, a lockfile, and as bare-bones as possible recreation in an isolated environment like docker?The text was updated successfully, but these errors were encountered: