[Rcpp-devel] RcppArmadillo questions

Vinh Nguyen vinhdizzo at gmail.com
Thu Jun 10 19:35:25 CEST 2010


Thanks Dirk.  I've been using the package skeleton method, and added
PKG_CXXFLAGS = $(shell $(R_HOME)/bin/Rscript -e "Rcpp:::CxxFlags()" )
$(shell Rscript -e "cat( '-I',
 system.file('include', package = 'RcppArmadillo'), sep = '' )" )

into the Makevars file per Romain's suggestion.
RcppArmadillo:::CxxFlags() is going to help.

Maybe I'm not seeing this, but will you guys implement the above into
Rcpp.package.skeleton()?  I don't think it is currently implemented
(correct me if I'm wrong).  Once that's available developing/debugging
code the R CMD SHLIB is quite easy once the Makevars file is
generated.

Thanks for an awesome package!  I can go into C++ and do crazy loops
with near ease as if I was in R.

Vinh

On Thu, Jun 10, 2010 at 9:21 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> Vinh,
>
> Please have a look at RcppArmadillo 0.2.2 which should helpfully be easier to
> use in the cases you tried, ie outside of a package.  A quick example is on
> my blog at http://dirk.eddelbuettel.com/blog/
>
> --
>  Regards, Dirk
>


More information about the Rcpp-devel mailing list