-
-
Notifications
You must be signed in to change notification settings - Fork 208
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible package.skeleton issue affecting Rcpp, RcppArmadillo, RStudio (!!), ... #1087
Comments
I just pushed a simpler / better fix in a new branch. In essence we seem to need to keep a fake symbol around, and already cleaned up after it at the end. Now, it seems, R changed and somehow that symbol ends up in the NAMESPACE. So ... we clean that too. That, plus ensuring an @kevinushey Can you remind how it works from RStudio when we create a package? Does it call the Rcpp function? |
Hmm, it looks like the behavior in
Compare with R 3.6:
So this might warrant a closer look at what |
Looks like this was changed here: wch/r-source@36b27d9#diff-a1b94fcea8b8818d4371aabf04dc2b3c |
Yes, and for the narrow case of an empty package I now have it fixed by
Question is what, if anything, to do with the more complicated usage patterns the skeleton helpers support "in theory" and which (as far as I can tell) nobody uses... |
Good catch on the commit to R. We should probably stick our heads together, take another look on the weekend or Monday, or report to them. Looks like a bug, doesn't it? |
With @dmurdoch kindly waving the cluebat at me we can assume the beahvior will stay so I think the simple PR here can be merged too. |
So I just did the live webinar on Rcpp and got to show live how package generation now fails (from RStudio) for both Rcpp and RcppArmadillo 馃槩
It looks the
NAMESPACE
file now gets an 'echo' from a temp function we create but which is no longer there when the package is finished. And misses an actualexportPatter()
.So a simple first fix for RcppArmadillo could be (done and tested)
do not print the
fake
one but add the pattern. Is my fear justified that the RStudio generator may need this too? Paging @kevinushey ....The text was updated successfully, but these errors were encountered: