On Thu, Mar 30, 2017 at 4:06 PM, Tim Keitt <tke...@utexas.edu> wrote:
> > On Thu, Mar 30, 2017 at 2:55 PM, Avraham Adler <avraham.ad...@gmail.com> > wrote: > >> If so, do I add >> them asa regards the functions *I* wrote in lamw.cpp or as regards the >> function wrappers that Rcpp wrote and the .R files call in >> RcppExports.R? >> > > I'm a bit confused about this as well. My impression is that the only > reason to register functions is so that *other* packages can call them. If > you do not want to make them available, you don't need to register them. Or > I could have that complete wrong. > > THK > > If you don't want to register anything, this snippet placed in init.c will > get you past CRAN checks currently: > > #include <R.h> > #include <Rinternals.h> > #include <R_ext/Rdynload.h> > R_CallMethodDef callMethods[] = {{NULL, NULL, 0}}; > R_CMethodDef cMethods[] = {{NULL, NULL, 0}}; > void > R_init_myLib(DllInfo *info) > { > R_registerRoutines(info, cMethods, callMethods, NULL, NULL); > R_useDynamicSymbols(info, FALSE); > } > http://www.keittlab.org/ > Hello, Tim. Thank you for the quick response. However, there are three packages which import the package, and one which links to it [1], which is why I have Rcpp-created headers in the /inst/include directory [2]. I do not want to do anything which jeopardizes the downstream users but I do want to be in compliance. Thanks, Avi [1] https://cran.r-project.org/web/packages/lamW/index.html [2] https://bitbucket.org/aadler/lamw/src/a3f5b043872b1761dd5140d77216842fcc3adad7/inst/include/
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel