Skip to content
Prev 386067 / 398513 Next

vanilla session in R Gui or RStudio

This can happens if save an object with an environment part of a package, e.g.

$ R --quiet --vanilla
<environment: namespace:Matrix>
# Loading the .RData file at startup triggers 'Matrix' to be loaded
$ R --quiet --no-init-file -e "loadedNamespaces()"
[1] "compiler"  "Matrix"    "graphics"  "utils"     "grDevices" "stats"
 [7] "datasets"  "grid"      "methods"   "base"      "lattice"
Also, if you have saved S4 objects (e.g. x <- Matrix::Matrix(0, 3,
2)), they will trigger their corresponding packages to be loaded when
"used" (e.g. print():ed) but not before.

Not saying it explains all of OPs packages - just wanted to say the
content of .RData may trigger packages being loaded.

/Henrik
On Thu, Oct 22, 2020 at 7:54 PM Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: