search for: mynewobject

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

Did you mean: __newobject
2017 Jun 23
1
setReplaceMethod creates 'object' in the userworkspace
...Value", signature(object = "newClass"), function(object) { return(object at value) } ) setReplaceMethod("myValue", signature = (object = "newClass"), function(object, value) { object at value <- value return(object) } ) myNewObject <- new("newClass") print(object) > print(object) [1] "newClass" > sessionInfo() R version 3.4.0 (2017-04-21) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.2 LTS Matrix products: default BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0 LAPACK: /usr...
2017 Jun 23
1
setReplaceMethod creates 'object' in the userworkspace
...Value", signature(object = "newClass"), function(object) { return(object at value) } ) setReplaceMethod("myValue", signature = (object = "newClass"), function(object, value) { object at value <- value return(object) } ) myNewObject <- new("newClass") print(object) > print(object) [1] "newClass" > sessionInfo() R version 3.4.0 (2017-04-21) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.2 LTS Matrix products: default BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0 LAPACK: /usr...
2017 Jun 27
0
[Rd] setReplaceMethod creates 'object' in the userworkspace
...t = "newClass")' by '"newClass"' things should be fine. {{ Removing all the completely redundant return(.), i.e. return implicitly rather than via an extra function call would also make the code "cleaner" and more R-like }} Best, Martin > myNewObject <- new("newClass") > print(object) > > > > print(object) > [1] "newClass" >