I've started writing a large project today, but I need to get the list of packages (in the packages window, with the checkboxes) back to what a new user would see. I've been experimenting and planning for a while now, and have accumulated a large number of packages that I can't seem to trim down to what were there when I did a fresh install.
So far, I have used Session > Clear Workspace and Session > Terminate R. After quitting R Studio, I renamed .rstudio-desktop, .Rhistory, and .RData to have "-backup" appended to their names, so I assume they're cleared and will be regenerated when I restart R.
When I restart Rstudio, I notice the package psych is still there. I had also installed the tidyverse before my attempt to get back to nothing,, and I don't think its packages (ggplot2, readr, dplyr, and others) should still be there. Yet they are! And that library I imported for the 2nd Edition of The Statistical Sleuth, the Sleuth2 package, is still there. And when I say "there", I'm looking at the User Libraries section of the RStudio window.
I assume there's something I'm missing. I assume what I'm trying to do isn't impossible, but I suspect there's something in the interaction between R and RStudio I've not reset. Somehow, maybe the packages are still in R, stored in a place I don't yet know to clear out.