Skip to content

Replace ATTRIB in three places #1429

@eddelbuettel

Description

@eddelbuettel

@ltierney just now on r-devel:

As part of clarifying and tightening the R API for packages the
non-API entry points ATTRIB and SET_ATTRIB will be removed from
installed header files and, where possible, hidden from package
access. Both expose internal structure that might need to be changed
and also make it too easy to inadvertently break consistency
assumptions about the values of some attributes. Using these
functions is will now result in check NOTEs. These check NOTEs will
soon be replaced by WARNINGs; this will probably happen by the end of
January. The 'Working with attributes' section in the 'Writing R
Extensions' list some alternatives. Additional functions for working
with attributes, without exposing internal attributes structure, could
be added if they are needed.

We have three spots we can likely replace

edd@paul:~/git/rcpp(master)$ ag ATTRIB inst/include/ src/
inst/include/Rcpp/proxy/AttributeProxy.h
82:        SEXP attrs = ATTRIB( static_cast<const CLASS&>(*this).get__());
91:        SEXP attrs = ATTRIB(static_cast<const CLASS&>(*this).get__());

inst/include/Rcpp/DataFrame.h
71:            SEXP att = ATTRIB( Parent::get__() )  ;
edd@paul:~/git/rcpp(master)$ 

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