search for: refmethoddef

Displaying 4 results from an estimated 4 matches for "refmethoddef".

Did you mean: r_cmethoddef
2011 Apr 30
1
Reference Classes: Accessing methods via [[...]], bug?
...function() {+ value <<- value + 1+ }+ )+ )> X <- new("Number", value = 1)> X[["value"]][1] 1 > X[["addOne"]]()Error: attempt to apply non-function> class(X[["addOne"]]) # NULL[1] "NULL" > class(X$addOne)[1] "refMethodDef"attr(,"package")[1] "methods" > X[["addOne"]]()> X[["value"]][1] 2> class(X[["addOne"]])[1] "refMethodDef"attr(,"package")[1] "methods" Is this a bug? Chad Goymer [[alternative HTML version d...
2013 Oct 16
1
Internally accessing ref class methods with .self$x is different from .self[['x']]
..."Yes, this is b." } <environment: 0x5a65418> attr(,"mayCall") character(0) attr(,"name") [1] "b" attr(,"refClassName") [1] "TestClass" attr(,"superClassMethod") [1] "" attr(,"class") [1] "refMethodDef" attr(,"class")attr(,"package") [1] "methods" ==================== .self[['b']] ==================== function() { "Yes, this is b." } <environment: 0x5a65418> attr(,"mayCall") character(0) attr(,"name") [1] &qu...
2012 Aug 22
1
loading both RPostgreSQL and RSQLite leads to problems
...ethodWithNext" 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') Function: show (package method...
2011 Apr 07
2
How to debug reference classes?
How do you debug methods of a reference class? I've been using mtrace, which is excellent, but i cannot figure out how to mtrace a reference class method. Maybe there is some other way to debug these, for example with ordinary trace? for now i am only able to use options(error=recover), which is not giving me idea where exactly in the code i am once i am stopped on an error. -- View this