I am using a package: KML (k-means for longitudinal data).
When the package is loaded it loads 6 more packages.
Loading required package: kml
Loading required package: clv
Loading required package: cluster
Loading required package: class
Loading required package: longitudinalData
Loading required package: rgl
Loading required package: misc3d
I am trying to DETACH the packages once I am done using it. However, I keep on getting errors/warning on attempt.
When detaching using, detach("package:kml", unload=TRUE)
or/and unloading them using unloadNamespace("kml")
this step works without any error as if it has been detached.
When I check the (.packages())
. kml is no more listed there but other packages are still loaded. But when I check loadedNamespaces()
kml is still loaded there. Now proceeding further with next package.
detach("package:longitudinalData", unload=TRUE)
Gives me a warning message:
Warning message: ‘longitudinalData’ namespace cannot be unloaded:
namespace ‘longitudinalData’ is imported by ‘kml’ so cannot be unloaded
Rest of the package are either dependent on "kml" or "longitudinalData" so I get the same message for all of the packages. And all the packages including kml and longitudinalData are still listed under loadednamespaces.
Any idea how can I unload them?