When a new extendr or rextendr release requires changes to scaffolding, this function helps update those files to the new specification.
Usage
update_extendr(
path = ".",
crate_name = NULL,
lib_name = NULL,
revendor = TRUE,
quiet = FALSE
)Arguments
- path
File path to the package for which to generate wrapper code.
- crate_name
String that is used as the name of the Rust crate, specifically
[package] nameinCargon.toml. IfNULL(default), sanitized R package name is used instead.- lib_name
String that is used as the name of the Rust library, specifically
[lib] nameinCargo.toml. IfNULL(default), sanitized R package name is used instead.- revendor
boolean scalar, whether to clear vendor files and re-run
rextendr::vendor_pkgs()(default isTRUE).- quiet
Logical indicating whether any progress messages should be generated or not.
Details
Unfortunately, this process cannot be fully automated, so information is also printed to the console explaining what needs to be updated by hand. Usually, this will be accompanied by a more detailed blog post explaining changes.