Thank you! It works great!
Here is what I did:
src <- '
using namespace Rcpp;
double y = 9;
NumericVector z(1);
z[0] = 100.1;
f1(y, z);
z[0] = z[0] + 1;
return z;
'
f2 <- cxxfunction(signature(), body = src, plugin = "Rcpp", includes =
"#include ")
This is my c
On Mon, Jun 4, 2012 at 4:19 AM, Marie Auger-Methe
wrote:
> Hi list,
> I am writing a Rcpp function (referred as f2). To be able to debug it, I am
> currently using inline to write f2. f2 uses a function that I've wrote and
> is now part of a package that I have made (referred as f1). f1 is an Rcp
Hi list,
I am writing a Rcpp function (referred as f2). To be able to debug it, I
am currently using inline to write f2. f2 uses a function that I've
wrote and is now part of a package that I have made (referred as f1). f1
is an Rcpp function that is not called within R but only called from
R