Skip to content

Commit

Permalink
Fix Rtools detection on older Windows / Rtools
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Oct 28, 2024
1 parent eac4e28 commit a16d8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rtools.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ has_rtools <- function(debug = FALSE) {
}

# R 4.2.x or later and ucrt?
ucrt <- is_ucrt()
if (getRversion() >= "4.2.0" && getRversion() < "4.3.0") {
ucrt <- is_ucrt()
if (ucrt) {
rtools42_home <- Sys.getenv("RTOOLS42_HOME", "C:\\rtools42")
if (file.exists(file.path(rtools42_home, "usr", "bin"))) {
Expand Down

0 comments on commit a16d8fb

Please sign in to comment.