Switchr [2025]

# Install from CRAN (stable) install.packages("switchr")

You can maintain a sandbox built under R 3.6 and another under R 4.2. Switching sandboxes is safe even between minor R versions (though compiled code may need reinstallation if the R ABI changes). switchr

Its simplicity ( switchTo() ) and transparency are its greatest strengths. # Install from CRAN (stable) install

Reviewed on R 4.4.1 / Ubuntu 24.04

At its core, switchr is designed to facilitate "switching" between different contexts. In the R ecosystem, this often relates to managing different versions of packages or libraries to ensure a script runs identically today as it did a year ago. However, in modern visualization contexts, it refers to the ability to toggle between different views of data dynamically. Reviewed on R 4

Because everything lives under ~/R/sandboxes/ , you never accidentally install.packages() into the system library or a production environment.