Re: [Rcpp-devel] Evaluating a call in a particular environment

2010-05-20 Thread Dirk Eddelbuettel
On 20 May 2010 at 16:54, Douglas Bates wrote: | A short version of this question is "can I evaluate an Rcpp::Language | instance in an Rcpp::Environment instance"? Initially I thought this | was a given but on looking closer at the unit tests I don't see how | exactly it would be done. | | A sec

[Rcpp-devel] Evaluating a call in a particular environment

2010-05-20 Thread Douglas Bates
A short version of this question is "can I evaluate an Rcpp::Language instance in an Rcpp::Environment instance"? Initially I thought this was a given but on looking closer at the unit tests I don't see how exactly it would be done. A second short version of this question is "could someone, proba

Re: [Rcpp-devel] typedef and const

2010-05-20 Thread Romain Francois
Le 20/05/10 15:07, Douglas Bates a écrit : In the process of converting code to use the Rcpp classes I discovered that a combination of typedef and const does not work as I expected it to work. The background is that the C-based sparse matrix library called CHOLMOD (used in the Matrix package f

[Rcpp-devel] typedef and const

2010-05-20 Thread Douglas Bates
In the process of converting code to use the Rcpp classes I discovered that a combination of typedef and const does not work as I expected it to work. The background is that the C-based sparse matrix library called CHOLMOD (used in the Matrix package for R) declares a number of C structs such as c

Re: [Rcpp-devel] Rcpp modules

2010-05-20 Thread Dirk Eddelbuettel
On 20 May 2010 at 09:49, Romain Francois wrote: | Le 20/05/10 09:33, Dirk Eddelbuettel a écrit : | > | > On 19 May 2010 at 15:07, Romain Francois wrote: | > | One thing perhaps I'd like opinions about is the use if the name | > | "function" in : | > | | > | RCPP_MODULE(yada){ | > | using namespa

Re: [Rcpp-devel] Rcpp modules

2010-05-20 Thread Romain Francois
Le 20/05/10 09:33, Dirk Eddelbuettel a écrit : On 19 May 2010 at 15:07, Romain Francois wrote: | One thing perhaps I'd like opinions about is the use if the name | "function" in : | | RCPP_MODULE(yada){ | using namespace Rcpp ; | function( "hello" ,&hello ) ; | } | | Boost.Python use

Re: [Rcpp-devel] Rcpp modules

2010-05-20 Thread Dirk Eddelbuettel
On 19 May 2010 at 15:07, Romain Francois wrote: | One thing perhaps I'd like opinions about is the use if the name | "function" in : | | RCPP_MODULE(yada){ | using namespace Rcpp ; | function( "hello" , &hello ) ; | } | | Boost.Python uses "def" but this is too pythonic for me. OTOH