Skip to content
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

initialize {renv} following sandpaper functions #16

Closed
avallecam opened this issue Sep 18, 2023 · 1 comment
Closed

initialize {renv} following sandpaper functions #16

avallecam opened this issue Sep 18, 2023 · 1 comment
Labels
to keep positive content to keep

Comments

@avallecam
Copy link
Member

Thanks to @pratikunterwegs report, I found that to update the renv.lock file, one way is to reuse {sandpaper} functions, at least instead of the renv::init

The project template already has a renv.lock file within the renv/profiles/lesson-requirements path. Using renv::init creates a new renv.lock which I suspect is not appropriate for the repo.

Following the vignette on "building a lesson with package cache", we can follow these family of functions to initialize and update the files that the project already has:

sandpaper::use_package_cache()
sandpaper::manage_deps()
sandpaper::update_cache()

And a mix of them with the {renv} to check for status, snapshots, install, and possibly also to restore the environment.

@avallecam
Copy link
Member Author

closing. clear instructions now at #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to keep positive content to keep
Projects
None yet
Development

No branches or pull requests

2 participants