extendr / rextendr

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

feat(template): adds configure scripts #308

Closed eitsupi closed 1 year ago

eitsupi commented 1 year ago

From https://cran.r-project.org/web/packages/using_rust.html

The configure/configure.win script should check for the presence of commands cargo and rustc, and check their versions if required. This includes checking for system versions on the path and personal versions in ~/.cargo/bin (which are often not on the path). The Linux servers on the CRAN check farm use system versions, and Linux distributions are often slow to update these so version requirements need to be conservative.

configure scripts are copied from prqlr 0.5.0

JosiahParry commented 1 year ago

This change would be another step towards making it easier to get packages on CRAN—stil harder than it ought to.

This PR looks cut and dry to me and would be an overall win.