-
Notifications
You must be signed in to change notification settings - Fork 28
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
rcmdcheck::check()
fails on Windows when Rtools is not installed
#174
Comments
As a workaround, you can build the source package first, and then call |
I tried the suggested workaround (output below), but Another concern is that such a workaround would be different to well-documented and recommended workflows (e.g. r-pkgs Automated checking), which could make it difficult for newer contributors. Code
|
pkgbuild::local_build_tools() fails if Rtools is missing on Windows when `required` argument is TRUE, which is the default. This changes `required` to FALSE, which shouldn't through an error. Closes r-lib#174.
Description
rcmdcheck::check()
now throws an error and stops checking the package on Windows when Rtools is not installed.Previous working behaviour
Previously (rcmdcheck v1.3.3),
check()
would issue a warning about missing Rtools, but still complete the checking of the package.Cause
The cause seems to be the
pkgbuild::local_build_tools()
call introduced for #111 , which was seemingly done for convenience.Here is the line in the latest version, where the issue remains:
rcmdcheck/R/package.R
Line 145 in a38200c
local_build_tools()
has an argumentrequired
which isTRUE
by default and is called as such. The description of therequired
argument is:Possible solutions
There are a couple of ways that I've thought of to fix this regression. There are likely others:
rcmdcheck::check()
could calllocal_build_tools(required = FALSE)
, but I don't know if this would break the new intended behaviour introduced in Usepkgbuild::with_build_tools()
in rcmcheck #111.An option could be added which would set the
required
argument to false: e.g.options("rcmdcheck.rtools.required" = FALSE)
The text was updated successfully, but these errors were encountered: