[Rcpp-devel] Export only C function symbols?
Dirk Eddelbuettel
edd at debian.org
Mon Feb 4 12:49:43 CET 2019
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 | edd at debian.org
More information about the Rcpp-devel
mailing list