12 lines
276 B
C++
12 lines
276 B
C++
#include "rcpp_hello_world.h"
|
|
|
|
SEXP rcpp_hello_world(){
|
|
using namespace Rcpp ;
|
|
|
|
CharacterVector x = CharacterVector::create( "foo", "bar" ) ;
|
|
NumericVector y = NumericVector::create( 0.0, 1.0 ) ;
|
|
List z = List::create( x, y ) ;
|
|
|
|
return z ;
|
|
}
|