To build binary packages on windows, Rtools (found at
setup_rtools(cache = TRUE, debug = FALSE)
TRUEwill used cached version of RTools.
TRUEprints a lot of additional information to help in debugging.
- Either a visible
TRUEif rtools is found, or an invisible
FALSEwith a diagnostic
message. As a side-effect the internal package variable
rtools_pathis updated to the paths to rtools binaries.
This code borrows heavily from RStudio's code for finding rtools. Thanks JJ!