Re: [Rcpp-devel] Sugar

2010-11-01 Thread Shane Conway
My two cents: That seems sensible; an alternative view would be to say that sugar is in the same vein as the rest of Rcpp, might regularly be used in the same code, and the goal should be to keep everything as simple as possible (i.e. one library). I, for one, don't see the need to separate them.

Re: [Rcpp-devel] Sugar

2010-11-01 Thread Romain Francois
Le 01/11/10 06:13, Dominick Samperi a écrit : Comments on Sugar... Rcpp sugar seems to be an enhancement for C++ more than an interface function, so wouldn't it make sense to maintain it as a separate C++ class library? not to me. sugar brings (parts of the) R syntax at the C++ level, it seem

Re: [Rcpp-devel] Sugar

2010-11-01 Thread Andrew Redd
Doesn't sugar require Rcpp vectors, which encapsulate R SEXP vectors? If that is the case you really cannot separate them at all since there is a direct dependency on R. -Andrew On Mon, Nov 1, 2010 at 7:57 AM, Shane Conway wrote: > My two cents: > > That seems sensible; an alternative view wou

Re: [Rcpp-devel] Sugar

2010-11-01 Thread Romain Francois
Le 01/11/10 15:57, Shane Conway a écrit : My two cents: That seems sensible; an alternative view would be to say that sugar is in the same vein as the rest of Rcpp, might regularly be used in the same code, and the goal should be to keep everything as simple as possible (i.e. one library). I, f

Re: [Rcpp-devel] Sugar

2010-11-01 Thread Romain Francois
Le 01/11/10 16:00, Andrew Redd a écrit : Doesn't sugar require Rcpp vectors, which encapsulate R SEXP vectors? If that is the case you really cannot separate them at all since there is a direct dependency on R. -Andrew It is more like both Rcpp vectors and sugar functions both depend on the

[Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Douglas Bates
What is a good place to start reading about using the newly installed reference classes in R to interface with Rcpp? ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Douglas Bates
On Mon, Nov 1, 2010 at 10:26 AM, Douglas Bates wrote: > What is a good place to start reading about using the newly installed > reference classes in R to interface with Rcpp? To answer my own question, the "Rcpp Modules" vignette. ___ Rcpp-devel mailing

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Dirk Eddelbuettel
On 1 November 2010 at 10:26, Douglas Bates wrote: | What is a good place to start reading about using the newly installed | reference classes in R to interface with Rcpp? >From the R side, John usually points to ?ReferenceClasses, and so does the NEWS file for R 2.12.0. >From the Rcpp side, the

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Romain Francois
Le 01/11/10 16:34, Douglas Bates a écrit : On Mon, Nov 1, 2010 at 10:26 AM, Douglas Bates wrote: What is a good place to start reading about using the newly installed reference classes in R to interface with Rcpp? To answer my own question, the "Rcpp Modules" vignette. Perhaps it will be on

Re: [Rcpp-devel] problem with devel code (solved)

2010-11-01 Thread Romain Francois
I'm not sure what causes the error on the netbook. Is this a recent enough version of Rcpp ? Also, for the record the code below can now (well with the svn version) be written in a more sugary way (See also slide 25 of http://slidesha.re/cDIfp0) SEXP foo( SEXP x ){ NumericMatrix input( x )

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Douglas Bates
I should probably ask this question on R-devel as it is not directly an Rcpp question but the thread started here so ... I'm confused about accessor functions as described in help("setRefClass") under the argument "fields". It states The element in the list can alternatively be an _acc

Re: [Rcpp-devel] Errors when just including Rcpp.h

2010-11-01 Thread Andrew Redd
I've attached the file of the errors now. I've also tried to change the order of includes without much success. -Andrew On Fri, Oct 29, 2010 at 5:10 PM, Dirk Eddelbuettel wrote: > > On 29 October 2010 at 16:26, Andrew Redd wrote: > | I have a class that I am building that I want to interface t

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Dominick Samperi
On Mon, Nov 1, 2010 at 3:28 PM, Douglas Bates wrote: > I should probably ask this question on R-devel as it is not directly > an Rcpp question but the thread started here so ... > > I'm confused about accessor functions as described in > help("setRefClass") under the argument "fields". It states

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Dominick Samperi
On Mon, Nov 1, 2010 at 3:28 PM, Douglas Bates wrote: > I should probably ask this question on R-devel as it is not directly > an Rcpp question but the thread started here so ... > > I'm confused about accessor functions as described in > help("setRefClass") under the argument "fields". It states

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread John Chambers
On 11/1/10 12:28 PM, Douglas Bates wrote: I should probably ask this question on R-devel as it is not directly an Rcpp question but the thread started here so ... I'm confused about accessor functions as described in help("setRefClass") under the argument "fields". It states The e