Skip to content

Extending Rcpp after including Rcpp.h #952

@rstub

Description

@rstub

I learned something new on SO today: https://stackoverflow.com/a/55225006/8416610 Apparently it is possible to extend Rcpp with RCPP_EXPOSED_CLASS even after Rcpp.h has been included. Unsurprisingly @romainfrancois knew about that before: http://romainfrancois.blog.free.fr/index.php?post/2012/10/25/Rcpp-modules-more-flexible

Suggestion: Update the "Extending Rcpp" vignette to #include <Rcpp.h> instead of #include RcppCommon.h(sic) when discussing RCPP_EXPOSED_AS and RCPP_EXPOSED_WRAP. One might even draw attention to this quite useful feature.

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