Displaying 1 result from an estimated 1 matches for "059bf6a4".
2010 Oct 23
1
Plans for tighter integration of reference classes in R.
...rst, coexistence with S4:
> X <- setRefClass("classX", fields = c("a", "b"),
+ representation = list(c = "character"))
> x <- X$new()
> x at c <- "sss"
> x
An object of class "classX"
<environment: 059bf6a4>
Slot "c":
[1] "sss"
The above is cool, S4 and refClasses apparently live happily together.
But,
> x$.self
An object of class "classX"
<environment: 059bf6a4>
Slot "c":
character(0)
This is not a surprise, taking into account the copping parad...