Skip to content

Commit

Permalink
Update toolchain check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 23, 2024
1 parent 2d2ea7a commit e2f91e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -818,11 +818,13 @@ is_toolchain_installed <- function(app, path) {
)
app_path <- withr::with_path(
c(
toolchain_PATH_env_var()
toolchain_PATH_env_var(),
rtools_make_path()
),
repair_path(dirname(Sys.which(app)))
)
if (normalizePath(app_path) != normalizePath(rtools4x_toolchain_path())) {
if (!(normalizePath(app_path) %in% c(normalizePath(rtools4x_toolchain_path()),
normalizePath(rtools_make_path())))) {
return(FALSE)
}
return(TRUE)
Expand Down

0 comments on commit e2f91e4

Please sign in to comment.