diff --git a/src/library/pkgdepends/DESCRIPTION b/src/library/pkgdepends/DESCRIPTION index 719d640c4..2d734e641 100644 --- a/src/library/pkgdepends/DESCRIPTION +++ b/src/library/pkgdepends/DESCRIPTION @@ -33,7 +33,7 @@ Config/testthat/edition: 3 Encoding: UTF-8 RoxygenNote: 7.3.1.9000 NeedsCompilation: no -Packaged: 2024-04-05 10:14:55 UTC; gaborcsardi +Packaged: 2024-04-23 21:39:51 UTC; gaborcsardi Author: Gábor Csárdi [aut, cre], Posit Software, PBC [cph, fnd] Maintainer: Gábor Csárdi diff --git a/src/library/pkgdepends/R/install-plan.R b/src/library/pkgdepends/R/install-plan.R index 73e6fb924..76667b31b 100644 --- a/src/library/pkgdepends/R/install-plan.R +++ b/src/library/pkgdepends/R/install-plan.R @@ -358,14 +358,7 @@ make_build_process <- function(path, pkg, tmp_dir, lib, vignettes, if (is_windows()) { zip_tool_path <- asNamespace("zip")$get_tool("zip") rtools <- get_rtools_path() - withr_local_path( - paste0( - dirname(zip_tool_path), - .Platform$path.sep, - if (!is.null(rtools)) paste0(rtools, .Platform$path.sep), - Sys.getenv("PATH") - ) - ) + withr_local_path(c(dirname(zip_tool_path), rtools)) } # nocov end