How to transfer your library when updating R
Open
Nobody has claimed this yet.
install
r-package
- Dominant language
- No language data
- Stars
- 17
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Adapted from How to transfer your library when updating R for windows.
library(fs)
# Install new version of R (lets say 3.7.0 in this example)
# Create a new directory for the version of R
directory <- path(path_home_r(), "R", "win-library")
dir_create(path(directory, "3.7"))
# Re-start R so the .libPaths are updated
# Lookup what packages were in your old package library
pkgs <- path_file(
dir_ls(path(directory, "3.6"), regexp = "_cache", invert = TRUE)
)
# Filter these packages as needed
# Install the packages in the new version
install.packages(pkgs)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked rstats.wtf guide and compare it with the Windows-specific R snippet in this issue. Document the Windows library-transfer steps, preserving the package lookup and installation flow, and verify that the instructions are complete and understandable for the stated R-version update example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100