search for: envrefinferfield

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

2013 Apr 30
1
trace with reference class
Hi The final line of the example in ?setRefClass induces an error: > ## debugging all objects from class mEdit in method $undo() > mEdit$trace(undo, browser) Error in envRefInferField(x, what, getClass(class(x)), selfEnv) : 'undo' is not a valid field or method name for reference class "refGeneratorSlot" $trace tries to embed the trace in the generator object (instead of the generated object). Has this functionality been removed? best, kohske -- Kohske Ta...
2012 Feb 21
1
Private Variables in R5-Classes possible?
...vir=.self at .xData)){ return(get("secret_value", envir=.self at .xData, inherits = F)) } else{ return(NULL) } } assign("secret_value", value=value, , envir=.self at .xData) } ) ) > t <- test$new() > t$secret the function was called NULL > t$secret_value Error in envRefInferField(x, what, getClass(class(x)), selfEnv) : "secret_value" is not a valid field or method name for reference class ?test? > t$secret <- "Blub" the function was called > t$secret_value [1] "Blub"