RMI / RMI/resources

How to transfer your library when updating R

Open
#61 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.