From 3fd9f7d2d8a7ecb11f44d6c7e87dec6ae5192814 Mon Sep 17 00:00:00 2001 From: Max Sutton Date: Thu, 10 Mar 2022 11:49:32 +1100 Subject: [PATCH] Fix check() failing when Rtools not installed pkgbuild::local_build_tools() fails if Rtools is missing on Windows when `required` argument is TRUE, which is the default. This changes `required` to FALSE, which shouldn't through an error. Closes #174. --- R/package.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/package.R b/R/package.R index 5d95d9e..e40d0df 100644 --- a/R/package.R +++ b/R/package.R @@ -142,7 +142,7 @@ rcmdcheck <- function( # Add pandoc to the PATH, for R CMD build and R CMD check if (should_use_rs_pandoc()) local_path(Sys.getenv("RSTUDIO_PANDOC")) - pkgbuild::without_cache(pkgbuild::local_build_tools()) + pkgbuild::without_cache(pkgbuild::local_build_tools(required = FALSE)) targz <- build_package(path, check_dir, build_args = build_args, libpath = libpath, quiet = quiet)