Skip to content

Commit

Permalink
Merge pull request #182 from r-lib/rtools-arm64
Browse files Browse the repository at this point in the history
Find rtools on arm64
  • Loading branch information
gaborcsardi authored Jan 25, 2024
2 parents 3f0f882 + de8d629 commit 616592a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions R/rtools.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ has_rtools <- function(debug = FALSE) {
return(FALSE)
}

# R 4.3.0 or later on ARM64
if (grepl("aarch", R.version$platform)) {
rtools43_aarch64_home <- Sys.getenv("RTOOLS43_AARCH64_HOME", "C:\rtools43-aarch64")
if (file.exists(file.path(rtools43_aarch64_home, "usr", "bin"))) {
if (debug) {
cat("Found in Rtools 4.3 installation folder\n")
}
rtools_path_set(rtools(rtools43_aarch64_home, "4.3"))
return(TRUE)
}
return(FALSE)
}

# R 4.3.0 or later
if (getRversion() >= "4.3.0") {
rtools43_home <- Sys.getenv("RTOOLS43_HOME", "C:\\rtools43")
Expand Down

0 comments on commit 616592a

Please sign in to comment.