Displaying 1 result from an estimated 1 matches for "callme0".
Did you mean:
callme
2001 Aug 07
3
Packages: What expressions are allowed outside/before .First.lib?
...conflicts.OK <- TRUE' should
be used?
Q2. Is it considered ok to use attr() outside .First.lib? I would like set
an attribute 'modifiers' to all my functions as they are declared. I have
tried it and it work. This is an example of how one of my generated package
files looks like:
callMe0 <- function(x)
cat("hey\n")
attr(callMe0, "modifiers") <- c("private")
callMe <- function(x)
callMe0(x)
attr(callMe, "modifiers") <- c("public")
I know that I could put the attr() assignments in the .First.lib function,
b...