[Rcpp-devel] Export only C function symbols?

Iñaki Ucar iucar at fedoraproject.org
Mon Feb 4 14:42:35 CET 2019


On Mon, 4 Feb 2019 at 13:45, Watal M. Iwasaki <heavy.watal at gmail.com> wrote:
>
> Dear Dirk,
>
> Thank you for the prompt answer.
> Currently all the C++ functions with [[Rcpp::export]] tag are exposed to me by `devtools::load_all()` in the dev process. But some of them are only useful in other functions and undesired in the interactive environment. So I wondered if by any chance it is possible to control the level of exposure. It is not a big problem. Good to know the answer is no.

The "level of exposure" is controlled by the NAMESPACE in a package,
not by Rcpp. And in this case, by devtools. This is what I got from
the function's help:

export_all     If TRUE (the default), export all objects. If FALSE,
export only the objects that are listed as exports in the NAMESPACE
file.

Regards,
Iñaki


More information about the Rcpp-devel mailing list