-
Notifications
You must be signed in to change notification settings - Fork 75
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
Incorrectly specified init.c routine registration? #274
Comments
Didn't mean to close. Here is the corrected version. I'd PR but I don't think I can push to github from work.
|
Well it builds at CRAN and on win-builder so my first reaction would be to blame local problems... |
If you changed |
Ooh good point. I'm just seeing that your I deleted the Did |
And |
Ah, now things are making sense. Yes, removing Running it now locally to ensure it builds, but I think this might be a worthwhile change as the next time someone runs |
Things look good after removing And I believe here is that Rcpp commit that adds the leading underscore as an FYI. |
A few other repos had similar changes of removing |
It's okay. Thanks for being responsive. If you give me a few minutes I think I can actually submit a PR. |
Closes #274. Remove src/init.c and use the newer version of compileAt…
I've been trying to build on Windows 7 with R 3.4.1 and keep running into:
After much suffering, I found that in your
init.c
file you are registering routines using:Rblpapi_authenticate_Impl
but Rcpp exports these as_Rblpapi_authenticate_Impl
. Don't you need to be consistent for this to work correctly?I went ahead and cloned and prefixed everything with underscores and it seems to build correctly now.
(Keep in mind I know a decent amount about R, but essentially nothing about C/C++ so this is the result of speculation + reading the R Extensions section on this)
Extra side note) I looked at how
dplyr
does this and they define their call entries and register the routines in theirRcppExports.cpp
file. They also don't have thatextern SEXP ...
piece. Not sure if that part is necessary or not, as again I essentially know nothing in this space.https://github.com/tidyverse/dplyr/blob/master/src/RcppExports.cpp
The text was updated successfully, but these errors were encountered: