Skip to content

R: hide unexported functions #13

@gaborcsardi

Description

@gaborcsardi

From @gaborcsardi on October 7, 2013 16:26

To avoid name clashes with other packages. See http://cran.us.r-project.org/doc/manuals/r-devel/R-exts.html#Controlling-visibility

Essentially, we need to add

PKG_CFLAGS=$(C_VISIBILITY)
PKG_FFLAGS=$(F77_VISIBILITY)

to Makevars, and then prefix each entry point with attribute_visible, e.g (from the docs):

void attribute_visible R_init_stats(DllInfo *dll)
...

Copied from original issue: igraph/igraph#525

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions