search for: refclassdef

Displaying 5 results from an estimated 5 matches for "refclassdef".

Did you mean: getclassdef
2011 Mar 10
1
Testing for a reference class object
Hi all, I've constructed the following function to test whether or not an object was created from a reference class: isRefClassObject <- function(x) isS4(x) && is.environment(attr(x,'.xData')) && exists('.refClassDef',attr(x,'.xData')) but I'm unsure if it's a complete test or if there's a better way to test. Regardless, It would be nice to have such a function in the methods package. I have a case where I'd like to ensure that an object is constructed from a reference class AND th...
2012 Jun 19
1
Reference classes and memory consumption
Dear All, It seems that reference classes consume a lot of memory which became a problem for my rather extensive simulation. I prepared a small example. An instance of this minimal class uses about 20K on disk. rm(list=ls(all=TRUE)); MySmallClass = setRefClass("MySmallClass", fields = list( myField = "numeric" ), methods = list( initialize =
2014 Sep 21
1
Bug in new behaviour for all.equal and environments?
...at packages that include some S4 machinery will effect the outcome of this error, e.g. if we load 'Biobase' first: kevin:~$ R --vanilla --slave -e "suppressPackageStartupMessages(library(Biobase)); all.equal(baseenv(), baseenv())" Error in target$getClass() : object '.refClassDef' not found Calls: all.equal ... all.equal.list -> all.equal -> all.equal.envRefClass -> <Anonymous> Execution halted We were bumping into an error with this in Rcpp -- we used all.equal (through RUnit) to confirm that baseenv(), and a function returning the base environm...
2011 Oct 31
0
R 2.14.0 is released
...zip() has a new option to restore file times from those recorded (in an unknown timezone) in the zip file. o update.packages() now accepts a character vector of package names for the oldPkgs argument. (Suggestion of Tal Galili.) o The special reference class fields .self and .refClassDef are now read-only to prevent corrupting the object. o decompose() now returns the original series as part of its value, so it can be used (rather than reconstructed) when plotting. (Suggestion of Rob Hyndman.) o Rao's efficient score test has been implemented for glm...
2011 Oct 31
0
R 2.14.0 is released
...zip() has a new option to restore file times from those recorded (in an unknown timezone) in the zip file. o update.packages() now accepts a character vector of package names for the oldPkgs argument. (Suggestion of Tal Galili.) o The special reference class fields .self and .refClassDef are now read-only to prevent corrupting the object. o decompose() now returns the original series as part of its value, so it can be used (rather than reconstructed) when plotting. (Suggestion of Rob Hyndman.) o Rao's efficient score test has been implemented for glm...