* using log directory 'd:/Rcompile/CRANpkg/local/4.5/pkgbuild.Rcheck' * using R Under development (unstable) (2024-10-19 r87247 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'pkgbuild/DESCRIPTION' ... OK * this is package 'pkgbuild' version '1.4.4' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'pkgbuild' can be installed ... OK See 'https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/pkgbuild-00install.html' for details. * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [5s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [1s] ERROR Running examples in 'pkgbuild-Ex.R' failed The error most likely occurred in: > ### Name: has_build_tools > ### Title: Are build tools are available? > ### Aliases: has_build_tools check_build_tools with_build_tools > ### local_build_tools > > ### ** Examples > > has_build_tools(debug = TRUE) [1] FALSE > check_build_tools() Error: Could not find tools necessary to compile a package Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem. Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [39s] ERROR Running 'build-tools.R' [0s] Running 'testthat.R' [38s] Running the tests in 'tests/build-tools.R' failed. Complete output: > library(pkgbuild) > > check_build_tools(debug = TRUE) Error: Could not find tools necessary to compile a package Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem. Execution halted Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(pkgbuild) > > test_check("pkgbuild") [ FAIL 5 | WARN 0 | SKIP 15 | PASS 125 ] ══ Skipped tests (15) ══════════════════════════════════════════════════════════ • On CRAN (11): 'test-build-process.R:23:3', 'test-build-process.R:43:3', 'test-build.R:192:5', 'test-exclude.R:11:3', 'test-exclude.R:66:3', 'test-exclude.R:110:3', 'test-exclude.R:125:3', 'test-exclude.R:134:3', 'test-exclude.R:143:3', 'test-style.R:3:3', 'test-utils.R:115:3' • On Windows (1): 'test-exclude.R:154:3' • is_windows() && !has_rtools() is TRUE (2): 'test-compiler.R:6:5', 'test-compiler.R:19:5' • is_windows() && !is.null(scan_path_for_rtools()) is not TRUE (1): 'test-rtools.R:3:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-build-process.R:69:3'): source builds return correct filenames ── Error: Could not find tools necessary to compile a package Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem. Backtrace: ▆ 1. └─pkgbuild_process$new("testWithSrc", dest_path = tmp, register_routines = FALSE) at test-build-process.R:69:3 2. └─pkgbuild (local) initialize(...) 3. └─pkgbuild:::rcb_init(...) 4. └─pkgbuild:::build_setup(...) 5. └─pkgbuild:::build_setup_source(...) 6. └─pkgbuild::check_build_tools(quiet = TRUE) ── Error ('test-build.R:125:3'): source builds return correct filenames ──────── Error: Could not find tools necessary to compile a package Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem. Backtrace: ▆ 1. └─pkgbuild::build(...) at test-build.R:125:3 2. └─pkgbuild:::build_setup(...) 3. └─pkgbuild:::build_setup_source(...) 4. └─pkgbuild::check_build_tools(quiet = TRUE) ── Failure ('test-build_tools.R:4:5'): tests always run in environment with dev tools ── has_build_tools() is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─pkgbuild::without_cache(...) at test-build_tools.R:3:3 2. └─testthat::expect_true(has_build_tools()) at test-build_tools.R:4:5 ── Failure ('test-build_tools.R:5:5'): tests always run in environment with dev tools ── has_rtools() (`actual`) not equal to is_windows() (`expected`). `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─pkgbuild::without_cache(...) at test-build_tools.R:3:3 2. └─testthat::expect_equal(has_rtools(), is_windows()) at test-build_tools.R:5:5 ── Failure ('test-compile_dll.R:3:3'): can compile a DLL and clean up afterwards ── `compile_dll("testWithSrc", quiet = TRUE, register_routines = FALSE)` threw an unexpected error. Message: Could not find tools necessary to compile a package Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem. Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-compile_dll.R:3:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─pkgbuild::compile_dll("testWithSrc", quiet = TRUE, register_routines = FALSE) 8. └─pkgbuild::check_build_tools(quiet = TRUE) [ FAIL 5 | WARN 0 | SKIP 15 | PASS 125 ] Error: Test failures Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 2 ERRORs