reference class - Why are inheritance relationships of R5 classes not defined during R package .onLoad()? -
I am trying to initialize and store some package specific information when the package is first loaded and I am very good Information is found on the way to do this, and however, a package that wants to call during the package load, affirms the relationship of inheritance of many classes defined in the package, but this results in the different results of what I expect There arise. I can come in different ways to solve this problem, but I am trying to understand what I am doing and hopefully someone can explain it to me.
Thanks a lot for any help I'm testing this kind of during the By this way, Code> Expanded ("myderivedclass", "myclass") During the package loading, evaluates correctly for .onLoad ,
extension ("myderivedclass", "myclass") ("something") during the function (lib, pkg) {if (! ("Myderivedclass", "myclass" Is not ")}}
evaluates
FALSE (to trigger the warning), but of course, when the package is loaded Evaluates
TRUE , which I expected to start with objects in class either during the
.onLoad works fine, so it is not that class definitions are just now Not loaded until
.onLoad or I can be misunderstood about heritage here. Session information:
& gt; SessionInfo () R Version 3.1.0 (2014-04-10) Platform: x86_64-apple-darwin10.8.0 (64-bit)
TRUE .
Comments
Post a Comment