Running ‘testthat.R’ [79s/90s]
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 ───────────────────────────
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  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 ──────────────────────
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  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