Skip to content

Apparent fragility in Rcpp use when not calling importFrom(Rcpp, somesymbol) #1030

@eddelbuettel

Description

@eddelbuettel

I am currently running some reverse depends checks for a new RcppArmadillo minor release, and noticed a view package bonking in tests on function 'dataptr' not provided by package 'Rcpp'.

This relates to our file inst/include/Rcpp/routines.h which has it, but also carries a comment

// The 'attribute_hidden' used here is a simple precessor defined from
// ${R_HOME}/include/R_ext/Visibility.h -- it is empty when not supported
// by the compiler and otherwise '__attribute__ ((visibility ("hidden")))'

and that may recently have changed in R.

Do we care? Should we care?

Should we remove the now-no-longer empty attribute_hidden define in front of dataptr() and a number of other helpers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions