If you use RStudio’s .Rproj + renv, Switchr’s switchTo() may override RStudio’s automatic libPath, leading to confusion. Workaround: disable renv autoloading.

# ---- Setup ---- library(switchr)