Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init hook #902

Closed
romainfrancois opened this issue Sep 18, 2018 · 2 comments
Closed

init hook #902

romainfrancois opened this issue Sep 18, 2018 · 2 comments

Comments

@romainfrancois
Copy link
Contributor

Could the R_init_{pkg} have the flexibility to call something after registering the routines, i.e. maybe a function decorated with an [[Rcpp::init]] attribute:

// [[Rcpp::init]]
void initialize(){
   // ...
}

or perhaps just recognize Rcpp_init_{pkg}

@eddelbuettel
Copy link
Member

That's so far a rough sketch but that should work, and could be helpful.

Care to work out a mocked minimal example that does this?

@eddelbuettel
Copy link
Member

Closed via merge of #903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants