The survival package has a firstlib.R file that I had forgotton and just reviewed. After
deleting several bits which had a use 10 years ago during my Splus to R transition, the
only thing remaining is
.onUnload <- function(libpath)
library.dynam.unload("survival", libpath)
Does this bit of code still serve a purpose? Can I toss it?
Terry T.
library.dynam.unload
2 messages · Terry Therneau, Henric Nilsson (Public)
1 day later
Den 2016-03-25 kl. 14:20, skrev Therneau, Terry M., Ph.D.:
The survival package has a firstlib.R file that I had forgotton and just
reviewed. After deleting several bits which had a use 10 years ago
during my Splus to R transition, the only thing remaining is
.onUnload <- function(libpath)
library.dynam.unload("survival", libpath)
Does this bit of code still serve a purpose? Can I toss it?
This is still relevant. For example, WRE Section 1.5.3. says that "Compiled code should be loaded in .onLoad (or via a useDynLb directive: see below) and unloaded in .onUnload." Henric
Terry T.
______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel