I've just used write_license_note() for the first time. Wonderful function! As I used it, I found the error message helpful since I didn't have the cargo-license library installed. Then it dawned on me that it might be useful to also include the command to install the library for those who may not be as familiar. Perhaps the function can be modified to something like
cli::cli_abort(
c(
"The {.code cargo license} command is required to run the {.fun write_license_note} function.",
"Please install cargo-license ({.url https://crates.io/crates/cargo-license}) first.",
i = "Run {.code cargo install cargo-license} from your terminal"
),
class = "rextendr_error"
)
I've just used
write_license_note()
for the first time. Wonderful function! As I used it, I found the error message helpful since I didn't have thecargo-license
library installed. Then it dawned on me that it might be useful to also include the command to install the library for those who may not be as familiar. Perhaps the function can be modified to something like