|
Rcpp Version 0.9.10
|
00001 // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*- 00002 00003 // This is a rewrite of the 'Writing R Extensions' section 5.10.1 example 00004 00005 #include <Rcpp.h> 00006 // using namespace Rcpp ; 00007 00008 SEXP overhead_cpp(SEXP a, SEXP b) { 00009 return R_NilValue ; 00010 } 00011 00012 extern "C" void R_init_overhead_1(DllInfo *info){ 00013 00014 R_CallMethodDef callMethods[] = { 00015 {"overhead_cpp", (DL_FUNC) &overhead_cpp, 2}, 00016 {NULL, NULL, 0} 00017 }; 00018 00019 R_registerRoutines(info, NULL, callMethods, NULL, NULL); 00020 } 00021