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

Comments

Projects
None yet
2 participants
@romainfrancois
Contributor

romainfrancois commented Sep 18, 2018

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

This comment has been minimized.

Show comment
Hide comment
@eddelbuettel

eddelbuettel Sep 18, 2018

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?

Member

eddelbuettel commented Sep 18, 2018

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

This comment has been minimized.

Show comment
Hide comment
@eddelbuettel

eddelbuettel Sep 19, 2018

Member

Closed via merge of #903

Member

eddelbuettel commented Sep 19, 2018

Closed via merge of #903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment