Re: [Rd] Class generator functions for reference classes

2012-10-31 Thread John Chambers
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

Re: [Rd] Class generator functions for reference classes

2012-10-30 Thread Hadley Wickham
> 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

Re: [Rd] Class generator functions for reference classes

2012-10-30 Thread John Chambers
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,

[Rd] Class generator functions for reference classes

2012-10-27 Thread John Chambers
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