Re: [Rcpp-devel] Handling NULL values

2011-06-17 Thread Serge Iovleff
Hi Dirck, Thanks for your answer. I did not take care that in a Rcpp list when I access to the element like this algoOptions_["nbTry"] I get a SEXP element Thanks Serge Le 17.06.2011 13:30, Dirk Eddelbuettel a écrit : [resending, this time with CC to list. --Dirk] Hi Serge, On 17 June 20

Re: [Rcpp-devel] Makefile CPP flag

2011-06-17 Thread Dirk Eddelbuettel
[resending, this time with CC to list. --Dirk] On 17 June 2011 at 12:11, [email protected] wrote: | How can I assure an include directory of a library on UNIX likes, wherever that library is installed on the user machine? The answer, as you know, is to use configure. | Both, Makevars and Ma

Re: [Rcpp-devel] Handling NULL values

2011-06-17 Thread Dirk Eddelbuettel
[resending, this time with CC to list. --Dirk] Hi Serge, On 17 June 2011 at 09:56, Serge Iovleff wrote: | How can I test if a member of a list is a NULL value ? Recall that Rcpp is 'merely' a higher-level C++ interface playing along and on top of the R API itself --- so for questions like this

[Rcpp-devel] Makefile CPP flag

2011-06-17 Thread soeren . vogel
Hello How can I assure an include directory of a library on UNIX likes, wherever that library is installed on the user machine? Both, Makevars and Makevars.win are from Rcpp.package.skeleton(). I have added PKG_CPPFLAGS = '-I/opt/local/include' to Makevars to point to the boost sources on the

[Rcpp-devel] Handling NULL values

2011-06-17 Thread Serge Iovleff
Hi rcpp-devel, How can I test if a member of a list is a NULL value ? I have this kind of R code # create a list with all the parameters for initializing the algorithms `initAlgo`<-function( algo="EM"