ta-feira, 10 de Outubro de 2012 12:10
Assunto: Re: [Rcpp-devel] 'Nested' Rcpp functions using inline
Remember that the inline package is convenient for interactive
exploration during code development but usually the ultimate goal when
working with Rcpp is to produce a package including b
Jeffrey, thanks a lot!
De: Jeffrey Pollock
Para: Rubem Kaipper Ceratti
Cc: "rcpp-devel@lists.r-forge.r-project.org"
Enviadas: Quarta-feira, 10 de Outubro de 2012 11:59
Assunto: Re: [Rcpp-devel] 'Nested' Rcpp functions using inline
Remember that the inline package is convenient for interactive
exploration during code development but usually the ultimate goal when
working with Rcpp is to produce a package including both R and C++
code. When you start doing complicated things in the C++ code it is
probably time to look at crea
I think you need to use the `includes` argument of cxxfunction to include a
pure c++ function ie;
library(inline)
library(Rcpp)
inc <-'
int fun1(double x, double y) {
return (exp(x) - y) > 0 ? 1 : 0;
}
'
body <-'
NumericVector u = as(u_r);
do