-
Notifications
You must be signed in to change notification settings - Fork 14
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
Files that registerFunctions registers #8
Comments
I am not sure if I understand -- *also, functions within |
Sorry. I didn't understand that. If there is a package that uses this can you point it out - an actual example of it in action would be helpful. |
I use it in Kmisc itself :) But the process isn't completely automated. The basic idea is, when I want to build the package, I do: Rcpp::compileAttributes()
Kmisc::registerFunctions() and then do the regular Note that this only works for functions using the |
But I think the above only works as explained if you do Alternatively, if I simply use I wonder if I am doing something silly. |
The registration work disables dynamic symbol lookup. Unfortunately this means that the R wrappers generated by Perhaps this script could be 'nice' and fix up an associated |
"so you need to generate your own." Always? Maybe I am not following here, but in some very limited testing I did, just doing As for having a nicer script: that would be nice. But in the meantime maybe adding a paragraph to the documentation of But then, couldn't |
It would be nice if one could tell
registerFunctions
which functions to register since you might want to keep some of them private while having others public, i.e. you might not wish to register all of them. Perhaps it could input a pattern and only filenames matching that pattern would be scanned for functions to register. For example, we might only want those filenames of the form"^extern_.*\\.cpp$"
to be scanned.The text was updated successfully, but these errors were encountered: