Skip to content
Prev 46896 / 63424 Next

check warning with .onLoad() and setClass()

The basic tool is setLoadActions(), which takes a function definition, with the package's namespace as its argument.  Read ?setLoadActions

There is no such thing as setLoadFunction, as far as the standard code in R.

While you haven't defined "didn't work", an off-the-top-of-the-head idea would be something like:

   setLoadActions(function(ns) {setClass(....., where = ns)})
On Oct 4, 2013, at 7:07 AM, Rainer M Krug <Rainer at krugs.de> wrote: