- using R version 4.5.2 (2025-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-10) 14.3.0
GNU Fortran (Debian 14.3.0-10) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘testdat/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘testdat’ version ‘0.4.3’
- 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 serialization versions ... OK
- checking whether package ‘testdat’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/2s] OK
- checking whether startup messages can be suppressed ... [1s/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 ... [8s/12s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [3s/4s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/16s] ERROR
Running ‘testthat.R’ [12s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(testdat)
>
> test_check("testdat")
Saving _problems/test-expect-labels-17.R
Saving _problems/test-expect-labels-24.R
Saving _problems/test-expect-labels-32.R
Saving _problems/test-expect-labels-39.R
Saving _problems/test-expect-labels-49.R
Saving _problems/test-expect-labels-56.R
Saving _problems/test-expect-labels-62.R
Saving _problems/test-expect-labels-68.R
Saving _problems/test-expect-labels-76.R
Saving _problems/test-expect-labels-82.R
Saving _problems/test-expect-labels-88.R
Saving _problems/test-expect-labels-98.R
Saving _problems/test-expect-labels-106.R
Saving _problems/test-expect-labels-112.R
Saving _problems/test-expect-labels-118.R
Saving _problems/test-expect-labels-124.R
Saving _problems/test-expect-proportion-9.R
Saving _problems/test-expect-proportion-10.R
Saving _problems/test-expect-proportion-16.R
Saving _problems/test-expect-proportion-17.R
Saving _problems/test-expect-proportion-27.R
Saving _problems/test-expect-proportion-28.R
Saving _problems/test-expect-proportion-29.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-proportion-41.R
Saving _problems/test-expect-unique-14.R
Saving _problems/test-expect-unique-15.R
Saving _problems/test-expect-unique-26.R
Saving _problems/test-expect-unique-27.R
Saving _problems/test-expect-unique-28.R
Saving _problems/test-expect-unique-40.R
Saving _problems/test-expect-unique-41.R
Saving _problems/test-expect-unique-44.R
Saving _problems/test-expect-unique-45.R
Saving _problems/test-expect-unique-48.R
Saving _problems/test-expect-unique-49.R
Saving _problems/test-expect-unique-58.R
Saving _problems/test-expect-unique-59.R
Saving _problems/test-expect-value-7.R
Saving _problems/test-expect-value-8.R
Saving _problems/test-expect-value-9.R
Saving _problems/test-expect_base-2.R
Saving _problems/test-expect_base-3.R
Saving _problems/test-expect_base-7.R
Saving _problems/test-expect_base-8.R
Saving _problems/test-expect_datacomp-5.R
Saving _problems/test-expect_datacomp-6.R
Saving _problems/test-expect_datacomp-23.R
Saving _problems/test-expect_datacomp-25.R
Saving _problems/test-expect_datacomp-27.R
Saving _problems/test-expect_datacomp-29.R
Saving _problems/test-expect_depends-7.R
Saving _problems/test-expect_depends-14.R
Saving _problems/test-expect_depends-22.R
Saving _problems/test-expect_depends-30.R
Saving _problems/test-expect_depends-39.R
Saving _problems/test-expect_depends-48.R
Saving _problems/test-expect_exclusive-19.R
Saving _problems/test-expect_exclusive-20.R
Saving _problems/test-expect_generic-3.R
Saving _problems/test-expect_generic-4.R
Saving _problems/test-expect_generic-6.R
Saving _problems/test-expect_generic-7.R
Saving _problems/test-expect_make-10.R
Saving _problems/test-expect_make-11.R
Saving _problems/test-expect_make-12.R
Saving _problems/test-expect_make-13.R
Saving _problems/test-expect_make-26.R
Saving _problems/test-expect_make-27.R
Saving _problems/test-expect_make-28.R
Saving _problems/test-expect_make-29.R
Saving _problems/test-expect_make-31.R
Saving _problems/test-expect_make-32.R
Saving _problems/test-expect_range-8.R
Saving _problems/test-expect_range-9.R
Saving _problems/test-expect_range-10.R
Saving _problems/test-expect_range-14.R
Saving _problems/test-expect_range-15.R
Saving _problems/test-expect_range-19.R
Saving _problems/test-expect_range-20.R
Saving _problems/test-expect_range-21.R
Saving _problems/test-expect_range-22.R
Saving _problems/test-reporter_excel-8.R
Saving _problems/test-reporter_excel-9.R
Saving _problems/test-reporter_excel-46.R
Saving _problems/test-reporter_excel-47.R
Saving _problems/test-testdata-9.R
[ FAIL 95 | WARN 0 | SKIP 0 | PASS 111 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-expect-labels.R:12:3'): Basic use ────────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:19:3'): Basic use ────────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:27:3'): Basic use ────────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-labels.R:34:3'): Basic use ────────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-labels.R:44:3'): Weak label checks work ───────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:51:3'): Weak label checks work ───────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:58:3'): Weak label checks work ───────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:64:3'): Weak label checks work ───────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:71:3'): Weak label checks work ───────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-labels.R:78:3'): Weak label checks work ───────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-labels.R:84:3'): Weak label checks work ───────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-labels.R:93:3'): All records fail where variable labels don't match ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-labels.R:102:3'): Test only fails when there is a label discrepancy for values present in the data ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:108:3'): Test only fails when there is a label discrepancy for values present in the data ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:114:3'): Test only fails when there is a label discrepancy for values present in the data ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-labels.R:120:3'): Test only fails when there is a label discrepancy for values present in the data ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-proportion.R:9:3'): prop_gte ──────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:10:3'): prop_gte ─────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-proportion.R:16:3'): prop_gte ─────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:17:3'): prop_gte ─────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-proportion.R:27:3'): proportion missing ───────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:28:3'): proportion missing ───────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-proportion.R:29:3'): proportion missing ───────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-proportion.R:41:7'): proportion valid values ──────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-unique.R:14:3'): expect_unique_across ─────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-unique.R:15:3'): expect_unique_across ─────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-unique.R:26:3'): expect_unique_combine ────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-unique.R:27:3'): expect_unique_combine ────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-unique.R:28:3'): expect_unique_combine ────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-unique.R:40:3'): exclude argument works as expected ───
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-unique.R:41:3'): exclude argument works as expected ───
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-unique.R:44:3'): exclude argument works as expected ───
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-unique.R:45:3'): exclude argument works as expected ───
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-unique.R:48:3'): exclude argument works as expected ───
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-unique.R:49:3'): exclude argument works as expected ───
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-unique.R:58:3'): exclude argument works correctly with multiple vars in expect_unique() ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-unique.R:59:3'): exclude argument works correctly with multiple vars in expect_unique() ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-value.R:7:3'): expect_values ──────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect-value.R:8:3'): expect_values ──────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect-value.R:9:3'): expect_values ──────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_base.R:2:3'): basic examples ──────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_base.R:3:3'): basic examples ──────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_base.R:7:3'): NA check results are handled correctly ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_base.R:8:3'): NA check results are handled correctly ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_datacomp.R:5:3'): expect_valmatch ─────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_datacomp.R:6:3'): expect_valmatch ─────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_datacomp.R:23:3'): expect_subset ──────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_datacomp.R:25:3'): expect_subset ──────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_datacomp.R:27:3'): expect_subset ──────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_datacomp.R:29:3'): expect_subset ──────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_depends.R:7:3'): expect_depends works ─────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_depends.R:14:3'): expect_depends works ────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_depends.R:22:3'): expect_depends works ────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_depends.R:30:3'): expect_depends works ────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_depends.R:39:3'): expect_depends works ────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_depends.R:48:3'): expect_depends works ────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_exclusive.R:19:3'): Exclusive check works ─────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_exclusive.R:20:3'): Exclusive check works ─────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_generic.R:3:3'): basic examples ───────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_generic.R:4:3'): basic examples ───────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_generic.R:6:3'): basic examples ───────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_generic.R:7:3'): basic examples ───────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_make.R:10:3'): basic examples ─────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_make.R:11:3'): basic examples ─────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_make.R:12:3'): basic examples ─────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_make.R:13:3'): basic examples ─────────────────────────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_make.R:26:3'): automatically generated expectations ───
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_make.R:27:3'): automatically generated expectations ───
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_make.R:28:3'): automatically generated expectations ───
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_make.R:29:3'): automatically generated expectations ───
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_make.R:31:3'): automatically generated expectations ───
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_make.R:32:3'): automatically generated expectations ───
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_range.R:8:3'): min max works with only min and max provided ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_range.R:9:3'): min max works with only min and max provided ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_range.R:10:3'): min max works with only min and max provided ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_range.R:14:3'): min max works with real numbers ───────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_range.R:15:3'): min max works with real numbers ───────
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_range.R:19:3'): min max works additional valid values provided ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_range.R:20:3'): min max works additional valid values provided ──
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-expect_range.R:21:3'): min max works additional valid values provided ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-expect_range.R:22:3'): min max works additional valid values provided ──
Expected exactly one failure and no successes.
Actually failed 2 times
── Failure ('test-reporter_excel.R:8:3'): excel_results ────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-reporter_excel.R:9:3'): excel_results ────────────────────────
Expected exactly one success and no failures.
Actually succeeded 2 times
── Failure ('test-reporter_excel.R:46:3'): excel_results ───────────────────────
Expected `x_xl_summary` to equal `xl_summary`.
Differences:
Component "tests": Mean relative difference: 0.5
Component "failed": Mean relative difference: 0.5
── Failure ('test-reporter_excel.R:47:3'): excel_results ───────────────────────
Expected `x_xl_failing` to equal `xl_failing`.
Differences:
Attributes: < Component "row.names": Numeric: lengths (4, 2) differ >
Component "context": Lengths (4, 2) differ (string compare on first 2)
Component "test": Lengths (4, 2) differ (string compare on first 2)
Component "status": Lengths (4, 2) differ (string compare on first 2)
Component "variable": Lengths (4, 2) differ (string compare on first 2)
Component "variable": 'is.NA' value mismatch: 0 in current 1 in target
Component "description": Lengths (4, 2) differ (string compare on first 2)
Component "description": 1 string mismatch
Component "failed_records": Numeric: lengths (4, 2) differ
...
── Failure ('test-testdata.R:9:3'): set_testdata/get_testdata work correctly ───
Expected exactly one failure and no successes.
Actually failed 2 times
[ FAIL 95 | WARN 0 | SKIP 0 | PASS 111 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s/8s] OK
- checking PDF version of manual ... [7s/11s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR