Skip to content

Commit e2f91e4

Browse files
committed
Update toolchain check
1 parent 2d2ea7a commit e2f91e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/install.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,11 +818,13 @@ is_toolchain_installed <- function(app, path) {
818818
)
819819
app_path <- withr::with_path(
820820
c(
821-
toolchain_PATH_env_var()
821+
toolchain_PATH_env_var(),
822+
rtools_make_path()
822823
),
823824
repair_path(dirname(Sys.which(app)))
824825
)
825-
if (normalizePath(app_path) != normalizePath(rtools4x_toolchain_path())) {
826+
if (!(normalizePath(app_path) %in% c(normalizePath(rtools4x_toolchain_path()),
827+
normalizePath(rtools_make_path())))) {
826828
return(FALSE)
827829
}
828830
return(TRUE)

0 commit comments

Comments
 (0)