Re: [Rcpp-devel] Yet Another Design Question

2010-05-06 Thread Douglas Bates
On Wed, May 5, 2010 at 6:04 AM, Romain Francois wrote: > Le 13/04/10 00:14, Douglas Bates a écrit : >> >> One of the advantages of using S4 classes and methods in R is that >> there are formal definitions of classes.  I plan eventually to write R >> code that will take an S4 class definition and c

Re: [Rcpp-devel] Yet Another Design Question

2010-05-05 Thread Romain Francois
Le 13/04/10 00:14, Douglas Bates a écrit : One of the advantages of using S4 classes and methods in R is that there are formal definitions of classes. I plan eventually to write R code that will take an S4 class definition and create a C++ class definition and constructor code to mirror the R c

Re: [Rcpp-devel] Yet another design question regarding Rcpp

2010-05-05 Thread Romain Francois
Le 04/05/10 22:26, Douglas Bates a écrit : In the files src/MatrixNs.{h,cpp} of the lme4a package (the development version of lme4, available only from R-forge) I create C++ classes that parallel some of the S4 classes in the Matrix package for R. Most of the time I apply operations in those cl

[Rcpp-devel] Yet another design question regarding Rcpp

2010-05-04 Thread Douglas Bates
In the files src/MatrixNs.{h,cpp} of the lme4a package (the development version of lme4, available only from R-forge) I create C++ classes that parallel some of the S4 classes in the Matrix package for R. Most of the time I apply operations in those classes to numeric vectors passed as arguments o

Re: [Rcpp-devel] Yet Another Design Question

2010-04-13 Thread Douglas Bates
On Tue, Apr 13, 2010 at 1:14 AM, Romain Francois wrote: > Le 13/04/10 00:14, Douglas Bates a écrit : >> >> One of the advantages of using S4 classes and methods in R is that >> there are formal definitions of classes.  I plan eventually to write R >> code that will take an S4 class definition and

Re: [Rcpp-devel] Yet Another Design Question

2010-04-12 Thread Romain Francois
Le 13/04/10 00:14, Douglas Bates a écrit : > > One of the advantages of using S4 classes and methods in R is that > there are formal definitions of classes. I plan eventually to write R > code that will take an S4 class definition and create a C++ class > definition and constructor code to mirror

[Rcpp-devel] Yet Another Design Question

2010-04-12 Thread Douglas Bates
One of the advantages of using S4 classes and methods in R is that there are formal definitions of classes. I plan eventually to write R code that will take an S4 class definition and create a C++ class definition and constructor code to mirror the R class using Rcpp templates. Right now my quest