Displaying 4 results from an estimated 4 matches for "setloadact".
2014 Feb 21
0
instantiating a reference class with an initialize() method from .onLoad fails
...ng failed
Execution halted
ERROR: loading failed
* removing ?/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/3.1/PkgA?
* restoring previous ?/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/3.1/PkgA?
Having read
     https://stat.ethz.ch/pipermail/r-devel/2013-October/067636.html
I used
     setLoadAction(function(nmspc) .A())
in place of .onLoad, and had success. However, a more complicated scenario,
     https://stat.ethz.ch/pipermail/bioc-devel/2014-February/005271.html
where a data file contains an instance of a class defined in a package that 
imports PkgA, fails during R CMD check or in...
2013 Oct 03
1
check warning with .onLoad() and setClass()
Hi
I am writing a package in which I define a new class in the .onLoad()
hook:
,----
| .onLoad <- function(libname, pkgname) {
|     setClass(
|         "inDrak",
|         representation(
|             init = "SpatialGridDataFrame"
|             ),
|         contains = "simObj"
|         )
| }
`----
The class "simObj" is defined in the package, which
2012 Mar 30
0
R 2.15.0 is released
...haracter() now
      inserts newlines after each line of approximately 500 bytes,
      rather than truncating to the first line.
    o New function rWishart() generates Wishart-distributed random
      matrices.
    o Packages may now specify actions to be taken when the package is
      loaded (setLoadActions()).
    o options(max.print = Inf) and similar now give an error (instead
      of warnings later).
    o The "difftime" replacement method of units tries harder to
      preserve other attributes of the argument.  (Wish of PR#14839.)
    o poly(raw = TRUE) no longer requires more...
2012 Mar 30
0
R 2.15.0 is released
...haracter() now
      inserts newlines after each line of approximately 500 bytes,
      rather than truncating to the first line.
    o New function rWishart() generates Wishart-distributed random
      matrices.
    o Packages may now specify actions to be taken when the package is
      loaded (setLoadActions()).
    o options(max.print = Inf) and similar now give an error (instead
      of warnings later).
    o The "difftime" replacement method of units tries harder to
      preserve other attributes of the argument.  (Wish of PR#14839.)
    o poly(raw = TRUE) no longer requires more...