extendr / rextendr

An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically
https://extendr.github.io/rextendr/
Other
175 stars 25 forks source link

`rextendr::document` failes if rextendr is not installed (but loaded by `devtools::load_all`) #295

Open eitsupi opened 1 year ago

eitsupi commented 1 year ago

I have encountered this many times during my development work and it always seems to fail in the following place. https://github.com/extendr/rextendr/blob/1a43843b191536ab057949b1c40ca3e9e9949b90/R/register_extendr.R#L90-L107

It seems that make_wrappers_externally is not working, but I have not been able to determine the cause.

JosiahParry commented 11 months ago

Do you have a reprex? Would this bug only affect folks who are developing rextendr? Normal folks who would install.packages() would not be affected, right?

eitsupi commented 11 months ago

Do you have a reprex? Would this bug only affect folks who are developing rextendr? Normal folks who would install.packages() would not be affected, right?

Yes, it always reproduces in my environment when I run devtools::test() after running devtools::load_all() on Ubuntu.