Re: [Rcpp-devel] RInside input pointers to arrays

2015-10-14 Thread Dirk Eddelbuettel
On 14 October 2015 at 15:12, Allison Irvine wrote: | I am trying to figure out how to avoid creating a copy of an array in | c++ to a Rcpp::NumericVector or std::vector in order to use the data in | an embedded R instance (RInside object). It is clear that one can copy | an array in C++ to a Rc

[Rcpp-devel] RInside input pointers to arrays

2015-10-14 Thread Allison Irvine
I am trying to figure out how to avoid creating a copy of an array in c++ to a Rcpp::NumericVector or std::vector in order to use the data in an embedded R instance (RInside object). It is clear that one can copy an array in C++ to a Rcpp::NumericVector, then assign a variable in the embedded R