diff --git a/R/rtools.R b/R/rtools.R index ba39a2d..9537025 100644 --- a/R/rtools.R +++ b/R/rtools.R @@ -32,7 +32,7 @@ has_rtools <- function(debug = FALSE) { # R 4.5.0 or later on ARM64 if (getRversion() >= "4.5.0" && grepl("aarch", R.version$platform)) { - rtools45_aarch64_home <- Sys.getenv("RTOOLS45_AARCH64_HOME", "C:\rtools45-aarch64") + rtools45_aarch64_home <- Sys.getenv("RTOOLS45_AARCH64_HOME", "C:\\rtools45-aarch64") if (file.exists(file.path(rtools45_aarch64_home, "usr", "bin"))) { if (debug) { cat("Found in Rtools 4.5 (aarch64) installation folder\n") @@ -57,7 +57,7 @@ has_rtools <- function(debug = FALSE) { # R 4.4.0 or later on ARM64 if (getRversion() >= "4.4.0" && getRversion() < "4.5.0" && grepl("aarch", R.version$platform)) { - rtools44_aarch64_home <- Sys.getenv("RTOOLS44_AARCH64_HOME", "C:\rtools44-aarch64") + rtools44_aarch64_home <- Sys.getenv("RTOOLS44_AARCH64_HOME", "C:\\rtools44-aarch64") if (file.exists(file.path(rtools44_aarch64_home, "usr", "bin"))) { if (debug) { cat("Found in Rtools 4.4 (aarch64) installation folder\n") @@ -83,7 +83,7 @@ has_rtools <- function(debug = FALSE) { # R 4.3.0 or later on ARM64 if (getRversion() >= "4.3.0" && getRversion() < "4.4.0" && grepl("aarch", R.version$platform)) { - rtools43_aarch64_home <- Sys.getenv("RTOOLS43_AARCH64_HOME", "C:\rtools43-aarch64") + 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 (aarch64) installation folder\n")