Displaying 1 result from an estimated 1 matches for "myrootlib".
2001 Aug 07
3
Packages: What expressions are allowed outside/before .First.lib?
...nd one can force the
declaration of "modifiers<-" to appear first by putting it in a file called
"000.R" (zeros). However, I don't know if one can rely on this?!
Q4. What I really want to do is to declare "modifiers<-" in another package,
lets call it, 'myrootlib', which all other libraries we write relies on.
Trying
require(myrootlib) # Declares "modifiers<-"
callMe0 <- function(x)
cat("hey\n")
modifiers(callMe0) <- c("private")
callMe <- function(x)
callMe0(x)
modifiers(callMe) <- c(&q...