search for: refobjectgenerator

Displaying 3 results from an estimated 3 matches for "refobjectgenerator".

2012 Aug 22
1
loading both RPostgreSQL and RSQLite leads to problems
...;MethodWithNextWithTrace" object="namedList" object="ObjectsWithPackage" object="oldClass" object="PostgreSQLDriver" (inherited from: object="dbObjectId") object="refClassRepresentation" object="refMethodDef" object="refObjectGenerator" object="signature" object="sourceEnvironment" object="standardGeneric" (inherited from: object="genericFunction") object="traceable" (2) > showMethods('show') Function: show (package methods) object="ANY" object=&quot...
2011 Jun 06
1
Reference Classes: shortcut like 'isS4' for Ref Classes?
...doing it this way, which is a bit clumsy: A <- setRefClass("A", fields=list(X="numeric")) a <- A$new() isRefClass <- function(object, ...){ return(getClass(class(object))@class == "refClassRepresentation") # getRefClass(class(object))@class == "refObjectGenerator" } isRefClass(a) [1] TRUE Regards, Janko
2014 Feb 11
2
$new cannot be accessed when running from Rscript and methods package is not loaded
Hi Accesses the $new method for a class defined in a package fails if the methods package is not loaded. I have created a test package with the following single code file: newTest <- function() { cl <- get("someClass") cl$new } someClass <- setRefClass("someClass") (This is similar to code actually used in the testthat package.) If methods is not loaded,