The values returned by setRefClass(), getRefClass() now (rev. 61058)
have class "refObjectGenerator" as they do in 2.15.2, for the sake of
back compatibility.
This is only a reversion of the class name. The behavior of such
objects as generator functions with additional reference methods sh
> As of rev. 61035 in r-devel, setRefClass() now returns a generator function,
> as setClass() has done since 2.15.0.
>
> The convenient style is now:
> mEdit <- setRefClass("mEdit",..)
> xx <- mEdit(data = xMat)
>
> instead of
> xx <- mEdit$new(data = xMat)
>
> The returned object still
A heads up for those using Rcpp and perhaps other packages related to
reference classes.
The changes in 61035 cause a problem for classes defined with a slot
using the return value of setRefClass(), notably for Rcpp. The name of
that class changed.
Rather than introduce back-incompatibility,
As of rev. 61035 in r-devel, setRefClass() now returns a generator
function, as setClass() has done since 2.15.0.
The convenient style is now:
mEdit <- setRefClass("mEdit",..)
xx <- mEdit(data = xMat)
instead of
xx <- mEdit$new(data = xMat)
The returned object still has fields and me