Skip to content

srcpkgs

R Source Packages Manager

v0.2 · Oct 29, 2025 · GPL (>= 3)

Description

Manage a collection/library of R source packages. Discover, document, load, test source packages. Enable to use those packages as if they were actually installed. Quickly reload only what is needed on source code change. Run tests and checks in parallel.

Downloads

490

Last 30 days

7987th

1.4K

Last 90 days

3.2K

Last year

Trend: +7% (30d vs prior 30d)

CRAN Check Status

12 ERROR
2 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang ERROR
r-devel-linux-x86_64-fedora-gcc ERROR
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 ERROR
r-oldrel-macos-arm64 ERROR
r-oldrel-macos-x86_64 ERROR
r-oldrel-windows-x86_64 ERROR
r-patched-linux-x86_64 ERROR
r-release-linux-x86_64 ERROR
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 ERROR
Check details (24 non-OK)
ERROR r-devel-linux-x86_64-debian-clang

tests

Running ‘testthat.R’ [73s/84s]
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 7 | WARN 25 | SKIP 5 | PASS 589 ]
  
  ══ 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 ───────────────
...[truncated]...
ctor ('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)
  
  [ FAIL 7 | WARN 25 | SKIP 5 | PASS 589 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [53s/75s]
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 7 | WARN 25 | SKIP 5 | PASS 589 ]
  
  ══ 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 ───────────────
...[truncated]...
ctor ('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)
  
  [ FAIL 7 | WARN 25 | SKIP 5 | PASS 589 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-clang

examples

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
ERROR r-devel-linux-x86_64-fedora-clang

re-building of vignette outputs

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/rlang_error>
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
ERROR r-devel-linux-x86_64-fedora-clang

tests

Running ‘testthat.R’ [83s/166s]
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 ──────────────
...[truncated]...
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
ERROR r-devel-linux-x86_64-fedora-gcc

examples

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
ERROR r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

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/rlang_error>
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
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’ [84s/158s]
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 ──────────────
...[truncated]...
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
ERROR r-devel-macos-arm64

examples

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
ERROR r-devel-macos-arm64

re-building of vignette outputs

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/rlang_error>
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
ERROR r-devel-macos-arm64

tests

Running ‘testthat.R’ [12s/12s]
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 ───────────────
...[truncated]...
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
ERROR r-devel-windows-x86_64

examples

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
ERROR r-devel-windows-x86_64

re-building of vignette outputs

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/rlang_error>
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
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [54s]
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 ───────────────────
...[truncated]...
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
ERROR r-oldrel-macos-arm64

package dependencies

Package required but not available: ‘clitable’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-oldrel-macos-x86_64

package dependencies

Package required but not available: ‘clitable’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-oldrel-windows-x86_64

examples

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
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

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/rlang_error>
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
ERROR r-oldrel-windows-x86_64

tests

Running 'testthat.R' [72s]
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 ───────────────────
...[truncated]...
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
ERROR r-patched-linux-x86_64

tests

Running ‘testthat.R’ [70s/88s]
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 7 | WARN 25 | SKIP 5 | PASS 589 ]
  
  ══ 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 ───────────────
...[truncated]...
ctor ('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)
  
  [ FAIL 7 | WARN 25 | SKIP 5 | PASS 589 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [69s/86s]
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 7 | WARN 25 | SKIP 5 | PASS 589 ]
  
  ══ 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 ───────────────
...[truncated]...
ctor ('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)
  
  [ FAIL 7 | WARN 25 | SKIP 5 | PASS 589 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-windows-x86_64

examples

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
ERROR r-release-windows-x86_64

re-building of vignette outputs

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/rlang_error>
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
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [54s]
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 ───────────────────
...[truncated]...
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

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-oldrel-macos-arm64

package dependencies

Package required but not available: ‘clitable’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-oldrel-macos-x86_64

package dependencies

Package required but not available: ‘clitable’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.

Dependency Network

Dependencies Reverse dependencies cli clitable devtools pkgload testthat srcpkgs

Version History

new 0.2 Mar 10, 2026
updated 0.2 ← 0.1 diff Oct 28, 2025
new 0.1 May 14, 2024