Unlike Python’s virtualenv or conda , R lacks a first-class, built-in mechanism for per-project library stacks. Switchr fills this gap by providing programmatic switching between sets of installed packages (called "sandboxes" or "library stacks" ). It allows you to maintain, e.g., a "Production 3.6" stack, an "Experimental tidyverse" stack, and a "Legacy CRAN 2020" stack on the same machine.
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. switchr
switchr::install_packages(manifest)