10 Foo(
double x_,
double y_) :
x(x_),
y(y_){}
13 return new Foo( x, y) ;
18 void bla(
const Foo& other){
26RCPP_EXPOSED_CLASS(Foo)
31 .constructor<
double,
double>()
32 .method(
"clone", &Foo::clone )
34 .field(
"x", &Foo::x )
35 .field(
"y", &Foo::y )
37 .method(
"bla", &Foo::bla )
39 Rcpp::function(
"make_foo", &
make_foo ) ;
48 r<<
"Foo <- Mod$make_foo()";
50 r<<
"f <- Foo$clone()";
#define LOAD_ROOTR_MODULE(NAME)
ROOT R was implemented using the R Project library and the modules Rcpp and RInside
static TRInterface & Instance()
static method to get an TRInterface instance reference
This is a class to support deprecated method to pass function to R's Environment, based in Rcpp::Inte...