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
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
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:
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
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
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