- using R version 4.5.2 Patched (2026-01-31 r89382)
- using platform: x86_64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘Require/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘Require’ version ‘2.1.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 ... [12s/16s] 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 ... [20s/26s] OK
- checking Rd files ... [1s/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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [123s/212s] ERROR
Running ‘testthat.R’ [123s/212s]
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-15bugfixes_testthat-630.R
Saving _problems/test-15bugfixes_testthat-667.R
Loading required namespace: pak
Saving _problems/test-17usePak-387.R
Saving _problems/test-17usePak-392.R
Saving _problems/test-17usePak-404.R
Saving _problems/test-17usePak-457.R
Saving _problems/test-17usePak-469.R
Saving _problems/test-17usePak-471.R
Saving _problems/test-17usePak-473.R
Saving _problems/test-17usePak-1127.R
Saving _problems/test-17usePak-1604.R
[ FAIL 11 | WARN 0 | SKIP 21 | PASS 669 ]
══ Skipped tests (21) ══════════════════════════════════════════════════════════
• On CRAN (20): 'test-00pkgSnapshot_testthat.R:17:3',
'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-08modules_testthat.R:18:3', 'test-09pkgSnapshotLong_testthat.R:27:3',
'test-10DifferentPkgs_testthat.R:11:3', 'test-11misc_testthat.R:7:3',
'test-12offlineMode_testthat.R:9:3', 'test-12offlineMode_testthat.R:79:3',
'test-16installFailureMetadata_testthat.R:448:3',
'test-16installFailureMetadata_testthat.R:471:3',
'test-16installFailureMetadata_testthat.R:507:3',
'test-16installFailureMetadata_testthat.R:546:3',
'test-16installFailureMetadata_testthat.R:586:3',
'test-16installFailureMetadata_testthat.R:638:3',
'test-18nosudo_testthat.R:108:3', 'test-19smallSnapshot_testthat.R:5:3',
'test-21snapshotInstallPackages_testthat.R:199:3'
• parentChain test uses non-pak pkgDep internals (1):
'test-16parentChain_integration_testthat.R:25:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── 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
── Failure ('test-17usePak.R:387:3'): step-3b does not remove a package whose installed version satisfies the constraint ──
Expected `is.na(instVer2)` to be FALSE.
Differences:
`actual`: TRUE
`expected`: FALSE
digest must be in installed.packages()
── Failure ('test-17usePak.R:391:3'): step-3b does not remove a package whose installed version satisfies the constraint ──
Expected `satisfiedByInstalled` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
installed digest should satisfy >= 0.1.0
── Failure ('test-17usePak.R:403:3'): step-3b does not remove a package whose installed version satisfies the constraint ──
Expected `trulyBad` to be FALSE.
Differences:
`actual`: TRUE
`expected`: FALSE
digest is installed at a satisfying version; it must NOT be in trulyBad
── Failure ('test-17usePak.R:456: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:468: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:470: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:472: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:1126: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.6.1"
installed data.table must be pinned to its installed version
── Failure ('test-17usePak.R:1603: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
[ FAIL 11 | WARN 0 | SKIP 21 | PASS 669 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [13s/15s] OK
- checking PDF version of manual ... [8s/11s] OK
- DONE
Status: 1 ERROR