Re: [R] Getting Rcpp SEXP data in C++

2011-09-13 Thread Joshua Ulrich
Worik, On Mon, Sep 12, 2011 at 10:54 PM, Worik R wrote: > Friends > > I am looking at Rcpp and I am a bit stuck on a simple matter. > Rcpp questions will likely get more attention on the Rcpp-devel list: http://lists.r-forge.r-project.org/mailman/listinfo/rcpp-devel > (I am calling R from c++, i

[R] Getting Rcpp SEXP data in C++

2011-09-12 Thread Worik R
Friends I am looking at Rcpp and I am a bit stuck on a simple matter. (I am calling R from c++, if there is a better way...) Given this simple example using the TTR package and the SMA function which returns a simple moving average Rcpp::NumericVector rv; for(int i = 0; i < 100; i++){