Skip to content

[Rcpp-devel] RcppArmadillo questions

4 messages · Vinh Nguyen, Dirk Eddelbuettel

#
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:
#
On 10 June 2010 at 10:35, Vinh Nguyen wrote:
| 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.

I do not understand your question.  Can you try to restate it more carefully?
#
On Thu, Jun 10, 2010 at 11:00 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
Sorry for the confusion.  There is no issue -- I was confusing myself
when I saw RcppArmadillo:::CxxFlags(); thought it through now.  Also,
I didn't realize there was an RcppArmadillo.package.skeleton().