-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: System checks on SystemRequirements
(cargo, rustc, msrv)
#379
Conversation
…o and rustc versions for CRAN compliance.
…_note.Rd`, and update NAMESPACE.
07dbf5d
to
6b6be3d
Compare
Just wanted to say, this looks impressive already. Keep up the good work @albersonmiranda! |
@Ilia-Kosenkov After extendr/extendr#844 it is now passing R CMD Check locally and it's ready to review. |
I got it that the version in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great improvement on the existing configure and configure.win approach.
{fio} is already on CRAN using this approach. Excited to see it enable more robust pre-installation checks in the future as well.
systemRequirements
SystemRequirements
(cargo, rustc, msrv)
What type of PR is this? (check all applicable)
Description
This PR updates
use_cran_defaults()
to checkSystemRequirements
field inDESCRIPTION
and perform a system check for bothRust
andCargo
tools. If any of them is not found, build fails with a message to install them. If they are found, it checks for the minimum version ofrustc
. If it is lower than specified inSystemRequirements
, build fails with a message stating both installed and minimum version required. Finally, if all tests pass, it prints the version ofcargo
andrustc
found, which will be used to build the package.Related Tickets & Documents
systemRequirements
#378Added/updated tests?
Goal is code coverage percentage at 80% and above.
have not been included
Release checklist