search for: refclassrepresentation

Displaying 2 results from an estimated 2 matches for "refclassrepresentation".

2012 Aug 22
1
loading both RPostgreSQL and RSQLite leads to problems
...MethodSelectionReport" object="MethodWithNext" object="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'...
2011 Jun 06
1
Reference Classes: shortcut like 'isS4' for Ref Classes?
..., but I couldn't find anything regarding Ref Classes. Currently, I'm 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