Re: [Rcpp-devel] RcppArmadillo questions

2010-06-10 Thread Vinh Nguyen
On Thu, Jun 10, 2010 at 11:00 AM, Dirk Eddelbuettel 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', > |  sys

Re: [Rcpp-devel] RcppArmadillo questions

2010-06-10 Thread Dirk Eddelbuettel
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

Re: [Rcpp-devel] RcppArmadillo questions

2010-06-10 Thread Vinh Nguyen
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:

Re: [Rcpp-devel] RcppArmadillo questions

2010-06-10 Thread Dirk Eddelbuettel
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 ___ Rcpp-devel mailing lis

Re: [Rcpp-devel] RcppArmadillo questions

2010-05-27 Thread Romain Francois
Le 27/05/10 17:24, Vinh Nguyen a écrit : Two questions: 1. The main difference when using RcppArmadillo and Rcpp is the header declaration and the return type for the function right? extern "C" SEXP fastLm(SEXP ys, SEXP Xs) {} RcppArmadillo takes this extern stuff whereas Rcpp takes RcppExpor

Re: [Rcpp-devel] RcppArmadillo questions

2010-05-27 Thread Douglas Bates
On Thu, May 27, 2010 at 11:24 AM, Vinh Nguyen wrote: > Two questions: > > 1.  The main difference when using RcppArmadillo and Rcpp is the > header declaration and the return type for the function right? > extern "C" SEXP fastLm(SEXP ys, SEXP Xs) {} > RcppArmadillo takes this extern stuff whereas

[Rcpp-devel] RcppArmadillo questions

2010-05-27 Thread Vinh Nguyen
Two questions: 1. The main difference when using RcppArmadillo and Rcpp is the header declaration and the return type for the function right? extern "C" SEXP fastLm(SEXP ys, SEXP Xs) {} RcppArmadillo takes this extern stuff whereas Rcpp takes RcppExport? RcppExport SEXP newRcppVectorExample(SEXP