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

use renv #1

Merged
merged 1 commit into from
Apr 11, 2024
Merged

use renv #1

merged 1 commit into from
Apr 11, 2024

Conversation

miguelbiron
Copy link
Contributor

No description provided.

@miguelbiron
Copy link
Contributor Author

miguelbiron commented Apr 11, 2024

Implementation: Steps taken

  1. ran renv::init(). This encountered some warnings but I ignored them.
  2. deleted my R user library (~/R/x86_64-pc-linux-gnu-library/4.3) to ensure that project library was being picked up.

Had some issues at first with rendering the site due to caches -- these retain some pointers to the library used to render them. The key is to tell quarto to ignore the cache

quarto render --cache-refresh

P.S.: The following might not be necessary but I still ran it before trying the quarto option

#!/usr/bin/env bash

find . -type d -name "*_files" -exec rm -rf {} \;
find . -type d -name "*_cache" -exec rm -rf {} \;

First time use after cloning: Simply run renv::restore().

Installing packages: install.package works just fine. Apparently it gets hijacked by renv.

@miguelbiron miguelbiron merged commit 5fd3a03 into main Apr 11, 2024
@miguelbiron miguelbiron deleted the renv branch April 11, 2024 02:29
@miguelbiron
Copy link
Contributor Author

Next step is to tell private447 to use the same renv. The way to do this is probably this

https://forum.posit.co/t/is-it-possible-to-use-a-single-renv-across-multiple-projects/78340/4

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

Successfully merging this pull request may close these issues.

None yet

1 participant