- using R Under development (unstable) (2026-11-25 r90991)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 23.1.5 (2)
Debian flang version 23.1.5 (2)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-11-27 10:27:31 UTC
- checking for file ‘posterior/DESCRIPTION’ ... OK
- this is package ‘posterior’ version ‘1.8.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [3s/4s] 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 ‘posterior’ 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/1s] 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/1s] OK
- checking whether startup messages can be suppressed ... [1s/2s] 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 ... [30s/39s] OK
- checking Rd files ... [1s/2s] 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 R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [7s/9s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [39s/48s] ERROR
Running ‘testthat.R’ [39s/47s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(posterior)
This is posterior version 1.8.0
Attaching package: 'posterior'
The following objects are masked from 'package:stats':
mad, sd, var
The following objects are masked from 'package:base':
%in%, match
>
> test_check("posterior")
Saving _problems/test-rvar-cast-109.R
Saving _problems/test-rvar-cast-147.R
Saving _problems/test-rvar-summaries-over-draws-19.R
Saving _problems/test-rvar-summaries-over-draws-108.R
Saving _problems/test-rvar-summaries-within-draws-121.R
[ FAIL 5 | WARN 4 | SKIP 7 | PASS 2280 ]
══ Skipped tests (7) ═══════════════════════════════════════════════════════════
• On CRAN (7): 'test-print.R:55:3', 'test-print.R:114:3', 'test-rstar.R:113:3',
'test-rvar-print.R:207:3', 'test-subset_draws.R:243:3',
'test-uniformity_test.R:43:3', 'test-uniformity_test.R:54:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-rvar-cast.R:106:3'): as_rvar_factor works ──────────────────────
Error in `attributes(.Data) <- c(attributes(.Data), attrib)`: adding class "factor" to an invalid object
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-rvar-cast.R:106:3
2. │ └─testthat::quasi_label(enquo(expected), expected.label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─base::structure(...)
── Error ('test-rvar-cast.R:144:3'): as_rvar_ordered works ─────────────────────
Error in `attributes(.Data) <- c(attributes(.Data), attrib)`: adding class "factor" to an invalid object
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-rvar-cast.R:144:3
2. │ └─testthat::quasi_label(enquo(expected), expected.label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─base::structure(...)
── Error ('test-rvar-summaries-over-draws.R:16:18'): numeric summaries work ────
Error in `attributes(.Data) <- c(attributes(.Data), attrib)`: adding class "factor" to an invalid object
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-rvar-summaries-over-draws.R:20:3
2. │ └─testthat::quasi_label(enquo(expected), expected.label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─posterior (local) ordered_out(c(2, 6, 10, 14, 18, 22))
5. └─base::structure(...) at test-rvar-summaries-over-draws.R:16:18
── Error ('test-rvar-summaries-over-draws.R:103:3'): range works ───────────────
Error in `attributes(.Data) <- c(attributes(.Data), attrib)`: adding class "factor" to an invalid object
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-rvar-summaries-over-draws.R:103:3
2. │ └─testthat::quasi_label(enquo(expected), expected.label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─base::structure(...)
── Error ('test-rvar-summaries-within-draws.R:118:3'): rvar_quantile works ─────
Error in `attributes(.Data) <- c(attributes(.Data), attrib)`: adding class "factor" to an invalid object
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-rvar-summaries-within-draws.R:118:3
2. │ └─testthat::quasi_label(enquo(expected), expected.label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─posterior::rvar_ordered(...)
5. │ └─posterior::rvar_factor(...)
6. │ └─base::is.factor(x)
7. └─base::structure(...)
[ FAIL 5 | WARN 4 | SKIP 7 | PASS 2280 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [19s/26s] OK
- checking PDF version of manual ... [13s/17s] OK
- checking HTML version of manual ... [7s/9s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR