rcmdcheck::check()
fails on Windows when Rtools is not installed
#174
Labels
bug
an unexpected problem or unintended behavior
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: