- using R Under development (unstable) (2026-06-06 r90114)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.1.0-1) 16.1.0
GNU Fortran (Debian 16.1.0-1) 16.1.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-06-07 12:20:29 UTC
- checking for file ‘contingencytables/DESCRIPTION’ ... OK
- this is package ‘contingencytables’ version ‘3.1.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/2s] OK
- 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 ‘contingencytables’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 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 ... [20s/28s] 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 examples ... [19s/23s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [14s/17s] ERROR
Running ‘testthat.R’ [14s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> testthat::test_check("contingencytables")
Loading required package: contingencytables
Welcome to contingencytables 3.1.0.
Please run ?chapX or list_functions(x) to see the functions related to chapter X.
Saving _problems/test-biggerstaff-25.R
Saving _problems/test-ch2-18.R
Saving _problems/test-ch3-18.R
Saving _problems/test-ch4-7.R
Saving _problems/test-ch5-8.R
Saving _problems/test-ch6-12.R
Saving _problems/test-ch7-121.R
[ FAIL 7 | WARN 9 | SKIP 0 | PASS 724 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-biggerstaff.R:22:3'): Brad's version of multiple_hypergeometric_pdf() solves NA issues ──
Error in `file(file, if (append) "a" else "w")`: cannot open the connection
Backtrace:
▆
1. └─testthat::expect_output(...) at test-biggerstaff.R:22:3
2. └─testthat:::quasi_capture(...)
3. └─testthat (local) .capture(...)
4. └─testthat::capture_output_lines(code, print, width = width)
5. └─testthat:::eval_with_output(code, print = print, width = width)
6. └─withr::with_output_sink(path, withVisible(code))
7. └─withr:::set_output_sink(file = new, append = append, split = split)
8. └─withr:::output_sink(file = file, append = append, split = split)
9. └─base::sink(file = file, append = append, type = "output", split = split)
10. └─base::file(file, if (append) "a" else "w")
── Error ('test-ch2.R:15:3'): Chapter 2 functions basically work ───────────────
Error in `file(file, if (append) "a" else "w")`: cannot open the connection
Backtrace:
▆
1. └─testthat::expect_output(...) at test-ch2.R:15:3
2. └─testthat:::quasi_capture(...)
3. └─testthat (local) .capture(...)
4. └─testthat::capture_output_lines(code, print, width = width)
5. └─testthat:::eval_with_output(code, print = print, width = width)
6. └─withr::with_output_sink(path, withVisible(code))
7. └─withr:::set_output_sink(file = new, append = append, split = split)
8. └─withr:::output_sink(file = file, append = append, split = split)
9. └─base::sink(file = file, append = append, type = "output", split = split)
10. └─base::file(file, if (append) "a" else "w")
── Error ('test-ch3.R:15:3'): Chapter 3 functions basically work ───────────────
Error in `file(file, if (append) "a" else "w")`: cannot open the connection
Backtrace:
▆
1. └─testthat::expect_output(...) at test-ch3.R:15:3
2. └─testthat:::quasi_capture(...)
3. └─testthat (local) .capture(...)
4. └─testthat::capture_output_lines(code, print, width = width)
5. └─testthat:::eval_with_output(code, print = print, width = width)
6. └─withr::with_output_sink(path, withVisible(code))
7. └─withr:::set_output_sink(file = new, append = append, split = split)
8. └─withr:::output_sink(file = file, append = append, split = split)
9. └─base::sink(file = file, append = append, type = "output", split = split)
10. └─base::file(file, if (append) "a" else "w")
── Error ('test-ch4.R:4:3'): Chapter 4 functions basically work ────────────────
Error in `file(file, if (append) "a" else "w")`: cannot open the connection
Backtrace:
▆
1. └─testthat::expect_output(...) at test-ch4.R:4:3
2. └─testthat:::quasi_capture(...)
3. └─testthat (local) .capture(...)
4. └─testthat::capture_output_lines(code, print, width = width)
5. └─testthat:::eval_with_output(code, print = print, width = width)
6. └─withr::with_output_sink(path, withVisible(code))
7. └─withr:::set_output_sink(file = new, append = append, split = split)
8. └─withr:::output_sink(file = file, append = append, split = split)
9. └─base::sink(file = file, append = append, type = "output", split = split)
10. └─base::file(file, if (append) "a" else "w")
── Error ('test-ch5.R:5:3'): Chapter 5 functions basically work ────────────────
Error in `file(file, if (append) "a" else "w")`: cannot open the connection
Backtrace:
▆
1. └─testthat::expect_output(...) at test-ch5.R:5:3
2. └─testthat:::quasi_capture(...)
3. └─testthat (local) .capture(...)
4. └─testthat::capture_output_lines(code, print, width = width)
5. └─testthat:::eval_with_output(code, print = print, width = width)
6. └─withr::with_output_sink(path, withVisible(code))
7. └─withr:::set_output_sink(file = new, append = append, split = split)
8. └─withr:::output_sink(file = file, append = append, split = split)
9. └─base::sink(file = file, append = append, type = "output", split = split)
10. └─base::file(file, if (append) "a" else "w")
── Error ('test-ch6.R:9:3'): Chapter 6 functions basically work ────────────────
Error in `file(file, if (append) "a" else "w")`: cannot open the connection
Backtrace:
▆
1. └─testthat::expect_output(...) at test-ch6.R:9:3
2. └─testthat:::quasi_capture(...)
3. └─testthat (local) .capture(...)
4. └─testthat::capture_output_lines(code, print, width = width)
5. └─testthat:::eval_with_output(code, print = print, width = width)
6. └─withr::with_output_sink(path, withVisible(code))
7. └─withr:::set_output_sink(file = new, append = append, split = split)
8. └─withr:::output_sink(file = file, append = append, split = split)
9. └─base::sink(file = file, append = append, type = "output", split = split)
10. └─base::file(file, if (append) "a" else "w")
── Error ('test-ch7.R:115:3'): Chapter 7 functions basically work ──────────────
Error in `file(file, if (append) "a" else "w")`: cannot open the connection
Backtrace:
▆
1. └─testthat::expect_output(...) at test-ch7.R:115:3
2. └─testthat:::quasi_capture(...)
3. └─testthat (local) .capture(...)
4. └─testthat::capture_output_lines(code, print, width = width)
5. └─testthat:::eval_with_output(code, print = print, width = width)
6. └─withr::with_output_sink(path, withVisible(code))
7. └─withr:::set_output_sink(file = new, append = append, split = split)
8. └─withr:::output_sink(file = file, append = append, split = split)
9. └─base::sink(file = file, append = append, type = "output", split = split)
10. └─base::file(file, if (append) "a" else "w")
[ FAIL 7 | WARN 9 | SKIP 0 | PASS 724 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [8s/9s] OK
- checking HTML version of manual ... [6s/10s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR