File: rcpp_hello_world.cpp

package info (click to toggle)
rcpp 1.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,560 kB
  • sloc: ansic: 44,118; cpp: 40,958; sh: 53; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
#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 ;
}