On 4 February 2019 at 16:45, Watal M. Iwasaki wrote:
| Hi all,
| 
| Adding `[[Rcpp::export]]` tag to a package function leads to the following
| outcomes:
| 
| 1. Definition of "RcppExport SEXP _mypkg_myfun()" in RcppExports.cpp (hence
| in dll)
| 2. Definition of "myfun() {.Call(`_mypkg_myfun`)}" in RcppExports.R
| 
| It is totally fine. Just out of curiosity, is it possible to suppress the
| latter reaction and get only `_mypkg_myfun` for .Call-ing?

Not currently, and why would you want that?

All those R functions do really is set up .Call() for you -- as well as we
can with proper registration and no lookup.

You could post-process and remove RcppExports.R, and you could also use Rcpp
and all it does without ever calling compileAttributes().

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
_______________________________________________
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

Reply via email to