Which would be a good way to preload a bunch of commonly used R packages into memory when I start the R process, but don't really attach them. Preferably so that there are no side effects.
If I do something like:
getNamespace("XML");
The package is loaded and displayed in sessionInfo() :
loaded via a namespace (and not attached): [1] XML_3.6-2
Does it have any side effects? I specifically want to prevent any form of disguise if I do this for a large number of packets. The sole purpose of this is to speed up the process when the library() function is called or mypackage::somefunction .
source share