- using R version 4.5.2 Patched (2026-01-31 r89382)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 16.0.0 (clang-1600.0.26.6)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.7.8
- using session charset: UTF-8
- checking for file ‘Require/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘Require’ version ‘2.0.0’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘Require’ can be installed ... [4s/5s] OK
See the install log for details.
- 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking whether startup messages can be suppressed ... [0s/0s] 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 ... [6s/6s] OK
- checking Rd files ... [0s/0s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [0s/0s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [3s/5s] ERROR
Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # Point pak's pkgcache at a per-session writable cache BEFORE library(Require)
> # loads pak. Under R CMD check (CRAN policy), pkgcache aborts if R_USER_CACHE_DIR
> # is unset; without this every Require::Install() inside the test suite errors
> # with "Please install pak" because pak's namespace fails to load.
> if (!nzchar(Sys.getenv("R_USER_CACHE_DIR"))) {
+ .ucd <- tempfile("RequireUserCache_")
+ dir.create(.ucd, recursive = TRUE, showWarnings = FALSE)
+ Sys.setenv(R_USER_CACHE_DIR = .ucd)
+ rm(.ucd)
+ }
>
> library(Require)
> library(testthat)
Attaching package: 'testthat'
The following object is masked from 'package:Require':
setup
> test_check("Require")
Saving _problems/test-00pkgSnapshot_testthat-2.R
Saving _problems/test-02extract_testthat-3.R
Saving _problems/test-03helpers_testthat-3.R
Saving _problems/test-08modules_testthat-4.R
Saving _problems/test-10DifferentPkgs_testthat-2.R
Loading required namespace: pak
Failed with error: 'there is no package called 'pak''
Saving _problems/test-14coverage2_testthat-158.R
Saving _problems/test-15bugfixes_testthat-630.R
Saving _problems/test-15bugfixes_testthat-667.R
Loading required namespace: pak
Failed with error: 'there is no package called 'pak''
Saving _problems/test-15bugfixes_testthat-674.R
Saving _problems/test-17usePak-372.R
Saving _problems/test-17usePak-384.R
Saving _problems/test-17usePak-386.R
Saving _problems/test-17usePak-388.R
Saving _problems/test-17usePak-1014.R
Saving _problems/test-17usePak-1486.R
Saving _problems/test-19smallSnapshot_testthat-2.R
[ FAIL 16 | WARN 0 | SKIP 31 | PASS 374 ]
══ Skipped tests (31) ══════════════════════════════════════════════════════════
• On CRAN (15): 'test-01packages_testthat.R:12:3',
'test-04other_testthat.R:8:3', 'test-05packagesLong_testthat.R:3:3',
'test-06pkgDep_testthat.R:2:3', 'test-09pkgSnapshotLong_testthat.R:13:3',
'test-11misc_testthat.R:7:3', 'test-12offlineMode_testthat.R:9:3',
'test-12offlineMode_testthat.R:76:3',
'test-16installFailureMetadata_testthat.R:449:3',
'test-16installFailureMetadata_testthat.R:473:3',
'test-16installFailureMetadata_testthat.R:509:3',
'test-16installFailureMetadata_testthat.R:547:3',
'test-16installFailureMetadata_testthat.R:586:3',
'test-16installFailureMetadata_testthat.R:638:3',
'test-18nosudo_testthat.R:108:3'
• parentChain test uses non-pak pkgDep internals (1):
'test-16parentChain_integration_testthat.R:25:3'
• {pak} is not installed (15): 'test-15bugfixes_testthat.R:200:3',
'test-15bugfixes_testthat.R:246:3', 'test-15bugfixes_testthat.R:301:3',
'test-15bugfixes_testthat.R:364:3', 'test-15bugfixes_testthat.R:432:3',
'test-15bugfixes_testthat.R:790:3', 'test-15bugfixes_testthat.R:848:3',
'test-17usePak.R:155:3', 'test-17usePak.R:191:3', 'test-17usePak.R:255:3',
'test-17usePak.R:1067:3', 'test-17usePak.R:1110:3', 'test-17usePak.R:1134:3',
'test-17usePak.R:1158:3', 'test-17usePak.R:1218:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-00pkgSnapshot_testthat.R:2:3'): test 1 ─────────────────────────
Error: Please install pak (loadNamespace('pak') failed: there is no package called 'pak')
Backtrace:
▆
1. └─Require:::setupTest() at test-00pkgSnapshot_testthat.R:2:3
2. └─Require::Install(c("curl", "httr", "waldo")) at ./helper_0.R:25:3
3. └─Require::Require(...)
4. ├─base::withCallingHandlers(...)
5. └─Require:::pakDepsToPkgDT(...)
── Error ('test-02extract_testthat.R:3:3'): test 1 ─────────────────────────────
Error: Please install pak (loadNamespace('pak') failed: there is no package called 'pak')
Backtrace:
▆
1. └─Require:::setupTest() at test-02extract_testthat.R:3:3
2. └─Require::Install(c("curl", "httr", "waldo")) at ./helper_0.R:25:3
3. └─Require::Require(...)
4. ├─base::withCallingHandlers(...)
5. └─Require:::pakDepsToPkgDT(...)
── Error ('test-03helpers_testthat.R:3:3'): test 3 ─────────────────────────────
Error: Please install pak (loadNamespace('pak') failed: there is no package called 'pak')
Backtrace:
▆
1. └─Require:::setupTest() at test-03helpers_testthat.R:3:3
2. └─Require::Install(c("curl", "httr", "waldo")) at ./helper_0.R:25:3
3. └─Require::Require(...)
4. ├─base::withCallingHandlers(...)
5. └─Require:::pakDepsToPkgDT(...)
── Error ('test-08modules_testthat.R:4:3'): test 8 ─────────────────────────────
Error: Please install pak (loadNamespace('pak') failed: there is no package called 'pak')
Backtrace:
▆
1. └─Require:::setupTest() at test-08modules_testthat.R:4:3
2. └─Require::Install(c("curl", "httr", "waldo")) at ./helper_0.R:25:3
3. └─Require::Require(...)
4. ├─base::withCallingHandlers(...)
5. └─Require:::pakDepsToPkgDT(...)
── Error ('test-10DifferentPkgs_testthat.R:2:3'): test 10 ──────────────────────
Error: Please install pak (loadNamespace('pak') failed: there is no package called 'pak')
Backtrace:
▆
1. └─Require:::setupTest(needRequireInNewLib = TRUE) at test-10DifferentPkgs_testthat.R:2:3
2. └─Require::Install(c("curl", "httr", "waldo")) at ./helper_0.R:25:3
3. └─Require::Require(...)
4. ├─base::withCallingHandlers(...)
5. └─Require:::pakDepsToPkgDT(...)
── Error ('test-14coverage2_testthat.R:158:3'): pkgDepTopoSort with local packages ──
Error in `pkgDep(packages, recursive = TRUE, purge = purge, libPaths = libPaths, which = which, verbose = verbose, includeSelf = FALSE)`: Please install pak
Backtrace:
▆
1. └─Require::pkgDepTopoSort("data.table") at test-14coverage2_testthat.R:158:3
2. └─Require::pkgDep(...)
── Failure ('test-15bugfixes_testthat.R:630:3'): Require accepts a multi-line string of packages (issue #147) ──
Expected `all(res)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-15bugfixes_testthat.R:667:3'): Require accepts an unquoted `{...}` block ──
Expected `all(res)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Error ('test-15bugfixes_testthat.R:674:3'): pkgDepTopoSort's first arg is `packages` (consistent with Require) ──
Error in `pkgDep(packages, recursive = TRUE, purge = purge, libPaths = libPaths, which = which, verbose = verbose, includeSelf = FALSE)`: Please install pak
Backtrace:
▆
1. └─Require::pkgDepTopoSort(packages = "data.table") at test-15bugfixes_testthat.R:674:3
2. └─Require::pkgDep(...)
── Failure ('test-17usePak.R:371:3'): recovery mechanism adds loadOrder for packages absent from pkgDT but installed ──
Expected `any(recoverable)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
digest should be recoverable (installed version satisfies >= 0.1.0)
── Failure ('test-17usePak.R:383:3'): recovery mechanism adds loadOrder for packages absent from pkgDT but installed ──
Expected `pkg %in% recoverPkgs` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
digest must be in the set of recovered packages
── Failure ('test-17usePak.R:385:3'): recovery mechanism adds loadOrder for packages absent from pkgDT but installed ──
Expected `is.na(recoverDT$loadOrder[recoverDT$Package == pkg])` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
recovered digest must have a non-NA loadOrder so doLoads() will require() it
── Failure ('test-17usePak.R:387:3'): recovery mechanism adds loadOrder for packages absent from pkgDT but installed ──
Expected `isTRUE(recoverDT$installedVersionOK[recoverDT$Package == pkg])` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
recovered digest must have installedVersionOK = TRUE
── Failure ('test-17usePak.R:1013:3'): pinInstalledForPak rewrites installed plain refs to pkg@version ──
Expected `out[1L]` to be identical to `paste0("data.table@", dtVer)`.
Differences:
`actual`: "data.table"
`expected`: "data.table@1.18.4"
installed data.table must be pinned to its installed version
── Failure ('test-17usePak.R:1485:3'): pinInstalledForPak skips user-version-constrained packages ──
Expected `grepl("^data.table@", out[2])` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
bare user packages with no constraint must be pinned to installed version to keep deps stable
── Error ('test-19smallSnapshot_testthat.R:2:3'): small snapshot install pins each package to the requested version ──
Error: Please install pak (loadNamespace('pak') failed: there is no package called 'pak')
Backtrace:
▆
1. └─Require:::setupTest() at test-19smallSnapshot_testthat.R:2:3
2. └─Require::Install(c("curl", "httr", "waldo")) at ./helper_0.R:25:3
3. └─Require::Require(...)
4. ├─base::withCallingHandlers(...)
5. └─Require:::pakDepsToPkgDT(...)
[ FAIL 16 | WARN 0 | SKIP 31 | PASS 374 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/4s] OK
- checking PDF version of manual ... [3s/3s] OK
- DONE
Status: 1 ERROR
- using check arguments '--no-clean-on-error '