Displaying 2 results from an estimated 2 matches for "foomthd".
Did you mean:
boothd
2011 Mar 07
1
WG: Reference classes: error with missing arguments in method calls
...:
?Reference methods should be kept simple; if they need to do some
specialized R computation, that computation should use a separate R function
that is called from the reference method?
So a ref class would look like this:
setRefClass(Class="Xmple", methods=list(foo=function(var.1, ...)
fooMthd(.self=.self, var.1=var.1, ...)))
I?d like to keep the generics defs as simple as possible, thus their only
arg should be ?.self?. The S4 methods are specified in a way that if ?var.1?
is missing, it will be assigned some default value (I know I could
explicitly set the default value, yet I would...
2011 Feb 20
0
Reference classes: error with missing arguments in method calls
...nce methods should be kept simple; if they need to do some
specialized R computation, that computation should use a separate R function
that is called from the reference method"
So a ref class would look like this:
setRefClass(Class="Xmple", methods=list(foo=function(var.1, ...)
fooMthd(.self=.self, var.1=var.1, ...)))
I'd like to keep the generics defs as simple as possible, thus their only
arg should be '.self'. The S4 methods are specified in a way that if 'var.1'
is missing, it will be assigned some default value (I know I could
explicitly set the defa...