* using log directory 'd:/Rcompile/CRANpkg/local/4.6/srcpkgs.Rcheck' * using R version 4.6.0 alpha (2026-03-28 r89738 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-03-30 20:40:15 UTC * checking for file 'srcpkgs/DESCRIPTION' ... OK * this is package 'srcpkgs' version '0.2' * 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 'srcpkgs' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [1s] 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 ... [4s] 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 line endings in Makefiles ... OK * checking for GNU extensions in Makefiles ... OK * checking include directives in Makefiles ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [22s] ERROR Running examples in 'srcpkgs-Ex.R' failed The error most likely occurred in: > ### Name: pkgs_install > ### Title: installs a list of source packages > ### Aliases: pkgs_install > > ### ** Examples > > pkg <- setup_and_get_dummy_srcpkg() > dest <- tempfile() > pkgs_install(pkg, dest) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [53s] ERROR Running 'testthat.R' [53s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > suppressPackageStartupMessages(library(srcpkgs)) > > test_check("srcpkgs") [ FAIL 10 | WARN 3 | SKIP 5 | PASS 576 ] ══ Skipped tests (5) ═══════════════════════════════════════════════════════════ • On CRAN (5): 'test-pkg_check.R:5:3', 'test-pkg_test.R:75:1', 'test-pkgs_check.R:5:3', 'test-pkgs_test.R:2:1', 'test-pkgs_test.R:66:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-pkg_meta.R:44:3'): fetch_srcpkgs_meta ──────────────────────── Expected `is.data.frame(df)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Failure ('test-pkg_meta.R:45:3'): fetch_srcpkgs_meta ──────────────────────── Expected `df$package` to be identical to "pkg1". Differences: `actual` is NULL `expected` is a character vector ('pkg1') ── Failure ('test-pkg_meta.R:46:3'): fetch_srcpkgs_meta ──────────────────────── Expected `df$attached` to be FALSE. Differences: `actual` is NULL `expected` is a logical vector (FALSE) ── Failure ('test-pkg_meta.R:54:3'): fetch_srcpkgs_meta ──────────────────────── Expected `fetch_srcpkgs_meta()$package` to be identical to "pkg1". Differences: `actual` is NULL `expected` is a character vector ('pkg1') ── Failure ('test-pkg_meta.R:66:3'): fetch_srcpkgs_meta ──────────────────────── Expected `is.data.frame(df)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Failure ('test-pkg_meta.R:67:3'): fetch_srcpkgs_meta ──────────────────────── Expected `all(c("pkg1", "pkg2") %in% df$package)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Error ('test-pkg_meta.R:69:3'): fetch_srcpkgs_meta ────────────────────────── Error in `expect_setequal(df$attached, c(TRUE, FALSE))`: `object` must be a vector, not `NULL`. Backtrace: ▆ 1. └─testthat::expect_setequal(object = df$attached) at test-pkg_meta.R:69:3 2. └─testthat:::check_vector(act$val, error_arg = "object") 3. └─testthat:::stop_input_type(x, "a vector", arg = error_arg, call = error_call) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test-pkgs_install.R:10:3'): .pkgs_install ─────────────────────────── Error: ! error in pak subprocess Caused by error in `get_user_cache_dir()`: ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README Backtrace: ▆ 1. └─srcpkgs::pkgs_install("GG", LIB, src_pkgs = src_pkgs, quiet = TRUE) at test-pkgs_install.R:10:3 2. ├─srcpkgs:::fast_unlist(lapply(pkgs_to_install, .process_pkg)) 3. │ └─base::unlist(x, recursive, use.names) 4. └─base::lapply(pkgs_to_install, .process_pkg) 5. └─srcpkgs (local) FUN(X[[i]], ...) 6. └─srcpkgs:::pkg_install_nodeps(pkg$path, lib, quiet = quiet, ...) 7. ├─withr::with_libpaths(...) 8. │ └─base::force(code) 9. └─devtools::install(...) 10. └─(function() {... 11. ├─base::withCallingHandlers(...) 12. └─pak::local_install_deps(...) 13. └─pak:::remote(...) 14. └─err$throw(res$error) ── Error ('test-pkgs_install.R:43:3'): pkg_install_nodeps ────────────────────── Error: ! error in pak subprocess Caused by error in `get_user_cache_dir()`: ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-pkgs_install.R:43: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. └─srcpkgs:::pkg_install_nodeps(src_pkgs$ZZ$path, LIB, quiet = TRUE) 8. ├─withr::with_libpaths(...) 9. │ └─base::force(code) 10. └─devtools::install(...) 11. └─(function() {... 12. ├─base::withCallingHandlers(...) 13. └─pak::local_install_deps(...) 14. └─pak:::remote(...) 15. └─err$throw(res$error) ── Failure ('test-plan.R:12:3'): execute_plan ────────────────────────────────── Expected `nrow(plan)` to equal `nrow(mat2)`. Differences: `actual`: 7 `expected`: 5 [ FAIL 10 | WARN 3 | SKIP 5 | PASS 576 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [74s] ERROR Error(s) in re-building vignettes: --- re-building 'demo.Rmd' using rmarkdown --- finished re-building 'demo.Rmd' --- re-building 'getting_started.Rmd' using rmarkdown --- finished re-building 'getting_started.Rmd' --- re-building 'testing_and_checking.Rmd' using rmarkdown Quitting from testing_and_checking.Rmd:176-179 [checking] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! ! error in pak subprocess Caused by error in `get_user_cache_dir()`: ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README --- Backtrace: ▆ 1. └─srcpkgs::pkgs_check(small_collection, quiet = TRUE) 2. └─srcpkgs::pkgs_install(pkgs, lib, src_pkgs = src_pkgs, quiet = TRUE) 3. ├─srcpkgs:::fast_unlist(lapply(pkgs_to_install, .process_pkg)) 4. │ └─base::unlist(x, recursive, use.names) 5. └─base::lapply(pkgs_to_install, .process_pkg) 6. └─srcpkgs (local) FUN(X[[i]], ...) 7. └─srcpkgs:::pkg_install_nodeps(pkg$path, lib, quiet = quiet, ...) 8. ├─withr::with_libpaths(...) 9. │ └─base::force(code) 10. └─devtools::install(...) 11. └─(function() {... 12. ├─base::withCallingHandlers(...) 13. └─pak::local_install_deps(...) 14. └─pak:::remote(...) 15. └─err$throw(res$error) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'testing_and_checking.Rmd' failed with diagnostics: ! error in pak subprocess Caused by error in `get_user_cache_dir()`: ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README --- failed re-building 'testing_and_checking.Rmd' SUMMARY: processing the following file failed: 'testing_and_checking.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 3 ERRORs