From jmc at r-project.org  Sat Oct 27 23:07:34 2012
From: jmc at r-project.org (John Chambers)
Date: Sat, 27 Oct 2012 14:07:34 -0700
Subject: [Rd] Class generator functions for reference classes
Message-ID: <508C4D16.4070104@r-project.org>

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 methods accessible as before.

See the "Value" and "Reference Class Generators" sections of 
?ReferenceClasses for details.

Thanks to Romain Fran?ois for suggesting this.

John



[Rd] Class generator functions for reference classes
John Chambers