summaryrefslogtreecommitdiff
path: root/Examples/test-suite/r_sexp.i
blob: 9f786f428c1888f7ec3c854ac18fe271aa57d33a (plain)
1
2
3
4
5
6
7
8
9
10
%module r_sexp

extern "C" SEXP return_sexp(SEXP x);

%inline %{
SEXP return_sexp(SEXP x) {
  return x; //Rcpp NumericVector is automatically casted to SEXP
}
%}