|
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 #include <R.h> 00005 #include <Rdefines.h> 00006 #include <R_ext/Rdynload.h> 00007 00008 SEXP overhead_c(SEXP a, SEXP b) { 00009 return R_NilValue ; 00010 } 00011 00012 void R_init_overhead_2(DllInfo *info){ 00013 00014 R_CallMethodDef callMethods[] = { 00015 {"overhead_c", (DL_FUNC) &overhead_c, 2}, 00016 {NULL, NULL, 0} 00017 }; 00018 00019 R_registerRoutines(info, NULL, callMethods, NULL, NULL); 00020 } 00021