[Rcpp-devel] Export only C function symbols?

Iñaki Ucar iucar at fedoraproject.org
Mon Feb 4 15:30:51 CET 2019


On Mon, 4 Feb 2019 at 14:59, Watal M. Iwasaki <heavy.watal at gmail.com> wrote:
>
> Dear Iñaki,
>
> Thanks for the comments. But I know the switch you mentioned. The levels I was talking are within the unexported functions. Here are my imaginary levels:
>
> 1. Listed in NAMESPACE; always visible
> 2. Not listed in NAMESPACE; exposed by load_all(export_all = TRUE) or :::
> 3. Not listed in NAMESPACE; only accessible from .Call()

Compiled functions are only accessible from .Call if you don't use
symbol registration (see 5.4 Registering native routines). But AFAIK,
this is required by CRAN, and thus Rcpp automatically generates symbol
registration for you.

Iñaki


More information about the Rcpp-devel mailing list