Detaching packages in R not good practice (see ?detach ), but for some reason I have to switch between gam and mgcv . After mgcv been attached and disconnected (and all dependencies in the namespace are not loaded!), The gam functions cause some strange errors (please forgive the terminology). It seems that, despite the fact that it was unloaded one step earlier - mgcv , and friends return to the namespace, and the dispatch function goes wrong. Has anyone had the same problem before?
# fresh session t.s1 <- search() t.lN1 <- loadedNamespaces()
Information about my session (new session):
R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.0.2
and I use the latest versions of gam (1.09) and mgcv (1.7-28). Any hints are welcome!
source share