-
Notifications
You must be signed in to change notification settings - Fork 26
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
Test use_extendr()
on CI
#54
Comments
Sounds good. I think we can use |
Thanks, I have some questions. I think we should do this outside of the repository. d <- tempfile()
dir.create(d)
setwd(d) Shouldn't this be done in usethis::use_build_ignore(".*\\.o$", escape = FALSE) What's the intent of these two devtools::install()
rextendr::register_extendr()
devtools::document() |
@yutannihilation, First If your solution is better, I have no objections. |
Ah, I see. Sorry, I was a bit confused.
I mean, if I understand correctly, it doesn't. You need to call |
@yutannihilation, |
Yes, it works, but I think it's because (Sorry, I didn't follow the discussions around the wrapper generation, so I might be wrong...) |
@yutannihilation,
does not work for me -- last |
Here is the last working example: |
What do you mean by "works" here? But, sorry, the steps I proposed was incorrect... It seems we definitely need double # Generate NAMESPACE from the default wrapper created by use_extendr()
devtools::document()
# Install the package so that register_extendr() can find `wrap__make_testpkg_wrappers`.
devtools::install()
# Re-generate R/extendr-wrappers.R
rextendr::register_extendr()
# Re-generate documentation
devtools::document() |
@yutannihilation, |
Thanks (and sorry for taking your time), but I'm rethinking the mechanism to generate the wrapper R code, so could you wait for a while? |
Just to confirm: With the current setup, this is the correct sequence if you want to test both rextendr::use_extendr()
devtools::document()
devtools::install()
rextendr::register_extendr()
devtools::document() |
@Ilia-Kosenkov |
@yutannihilation, |
Is this already solved by #61? |
I missed the latest comment here. |
Thanks for confirming, let's close this. |
In light of #53, I suggest adding a separate step that creates an empty package and adds extendr dependencies.
If we add a simple test (
expect_equal(hello_world(), "Hello world!")
), then R CMD check will reveal any potential problems with extendr setup.The text was updated successfully, but these errors were encountered: