Skip to content
Prev 57484 / 398498 Next

Lazy loading... advices

Philippe Grosjean wrote:

            
Philippe,

citing Doug Bates: "Someone named Martin Maechler will shortly be 
sending you email regarding the distinction between 'library' and 
'package'". ;-)

[from:
   install.packages("fortunes")
   library(fortunes)
   fortune("library")
]


 > that uses a lot of functions from
It might not always be faster. See Brian Ripley's article in the most 
recent R Newsletter. Probably you are using a lot of functions in the 
startup directly after the call to library() (in .First.lib() or 
.onLoad() or Hooks or whatever).
I think you want to specify "LazyLoad: no" in the package's DESCRIPTION 
file (cp. "Writing R Extensions").

Uwe