Skip to content
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

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

Open
eitsupi opened this issue Jun 26, 2023 · 2 comments

Comments

@eitsupi
Copy link
Contributor

eitsupi commented Jun 26, 2023

I have encountered this many times during my development work and it always seems to fail in the following place.

tryCatch(
# Call the wrapper generation in a separate R process to avoid the problem
# of loading and unloading the same name of a DLL (c.f. #64).
make_wrappers_externally(
module_name = as_valid_rust_name(pkg_name),
package_name = pkg_name,
outfile = outfile,
path = path,
use_symbols = TRUE,
quiet = quiet
),
error = function(e) {
cli::cli_abort(
c("Failed to generate wrapper functions.", x = e[["message"]]),
class = "rextendr_error"
)
}
)

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

@JosiahParry
Copy link
Contributor

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
Copy link
Contributor Author

eitsupi commented Aug 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants