-
Notifications
You must be signed in to change notification settings - Fork 285
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
cpp11 dynlib #1921
cpp11 dynlib #1921
Conversation
I think it would be better to follow a similar process to |
ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also add a news bullet and a test? (Probably something in "use_cpp11() creates files/dirs, edits DESCRIPTION and .gitignore")
@hadley it should be ok now |
Thanks! |
I have reverted this because I need to release usethis under a CRAN deadline and CI has been failing ever since this PR was merged. This change creates a test-time dependency on cpp11 and decor, neither of which usethis has a direct or indirect dependency on. I've fiddled around with the failing tests a bit, but there's no easy way, e.g. via a simple mock, to patch this up quickly, because the dependencies are needed for the
|
thanks for letting me know |
I suspect this should just be |
Hi @hadley
These minimal changes allow the user to just write functions of the form
Immediately after using
use_cpp11()
.With this change the user can run
devtools::load_all()
andhello(1)
will work. Otherwise it sayspkgname_hello
not found.Semi-related to r-lib/cpp11#341