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

For “Maintaining R”, would it be worth adding architecture-specific R_LIBS_USER paths? #75

Open
batpigandme opened this issue Apr 26, 2022 · 0 comments
Labels
radmin personal R administration

Comments

@batpigandme
Copy link
Contributor

I'm not sure whether or not this is obscure, or what many people are moving to/have set up with tools like RSwitch, rcli, and r-lib/rim, but, these days my M1 Mac user library paths look different to what they did in the last pass on the Maintaining R chapter (below)

Once this is setup, the process for transferring your package library becomes.
(assumes `R_LIBS_USER` is set to `~/Library/R/3.5/library`).
```r
# Install new version of R (lets say 3.5.0 in this example)
# Create a new directory for the version of R
fs::dir_create("~/Library/R/3.5/library")
# Re-start R so the .libPaths are updated
# Lookup what packages were in your old package library
pkgs <- fs::path_file(fs::dir_ls("~/Library/R/3.4/library"))

e.g. My default setup for R_LIBS_USER is now ~/Library/R/arm64/4.2/library, with the previous version for this architecture at ~/Library/R/arm64/4.1/library.

However, I also have ~/Library/R/x86_64/4.2/library and ~/Library/R/x86_64/4.1/library.

Again, not sure how common this is/will become, but, let me know if you think it'd be worth a PR.

@edavidaja edavidaja added the radmin personal R administration label Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
radmin personal R administration
Projects
None yet
Development

No branches or pull requests

2 participants