Displaying 3 results from an estimated 3 matches for "superclassmethod".
2012 Sep 18
0
S4, polymorphism, and parallelization
...zation in a Windows 7 machine.
I am only using my PC's cores. Parallelization for standard R code works
fine. For S4 code I am having the following problem:
Let us say I have a class A and a subclasses B and C (both B and C
"contains" A). I declared a method
setGeneric(
name = "superClassMethod",
def = function(object) {standardGeneric("superClassMethod")}
)
setMethod(
f = "superClassMethod",
signature = "A",
definition = function(object) {
# Some code here
}
)
At some point I call function paralapply (similar to parLapply) in this way
my.list <-...
2013 Oct 16
1
Internally accessing ref class methods with .self$x is different from .self[['x']]
...."
}
==================== .self$b ====================
function() {
"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>...
2019 Jan 24
0
Possible setClassUnion Unloading Issue
...tach('package:testpkg', unload=TRUE)
getClassDef('character')
## Class "character" [package "methods"]
##
## No Slots, prototype of class "character"
##
## Extends: "vector", "data.frameRowLabels", "SuperClassMethod",
"chrOrNULL"
##
## Known Subclasses:
## Class "signature", from data part
## Class "className", from data part
## Class "ObjectsWithPackage", from data part
## `validObject` now fails:
validObject('hello')...