Skip to content
Prev 386 / 10988 Next

[Rcpp-devel] Keep variables in C++ environment

On 01/27/2010 05:29 PM, Mattias Nystr?m wrote:
With the new api, i.e. the classes in the Rcpp namespace it is 
definitely possible. This was one of the goals.

So if you do something like this :

Rcpp::CharacterVector x(2) ;
x[0] = "foo" ;
x[1] = "bar" ;

You can then put x wherever you like and use it when you come back.

With the classic api, it is not possible I think. Dirk might prove me wrong.
That's the right list.