CRAN Package Check Results for Package posterior

Last updated on 2026-11-21 00:52:27 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.8.0 10.92 169.55 180.47 ERROR
r-devel-linux-x86_64-debian-gcc 1.8.0 8.33 116.29 124.62 ERROR
r-devel-linux-x86_64-fedora-clang 1.8.0 117.78 ERROR
r-devel-linux-x86_64-fedora-gcc 1.8.0 9.00 120.18 129.18 ERROR
r-devel-windows-x86_64 1.7.0 25.00 213.00 238.00 ERROR
r-patched-linux-x86_64 1.7.0 14.43 152.36 166.79 OK
r-release-linux-x86_64 1.7.0 12.23 152.81 165.04 OK
r-release-macos-arm64 1.8.0 3.00 44.00 47.00 OK
r-release-macos-x86_64 1.8.0 9.00 457.00 466.00 OK
r-release-windows-x86_64 1.7.0 18.00 205.00 223.00 OK
r-oldrel-macos-arm64 1.8.0 4.00 63.00 67.00 OK
r-oldrel-macos-x86_64 1.8.0 9.00 382.00 391.00 OK
r-oldrel-windows-x86_64 1.8.0 26.00 262.00 288.00 OK

Check Details

Version: 1.8.0
Check: tests
Result: ERROR Running ‘testthat.R’ [38s/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 Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.8.0
Check: tests
Result: ERROR Running ‘testthat.R’ [26s/32s] 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.8.0
Check: tests
Result: ERROR Running ‘testthat.R’ [25s/27s] 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.8.0
Check: tests
Result: ERROR Running ‘testthat.R’ [27s/76s] 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 Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.7.0
Check: tests
Result: ERROR Running 'testthat.R' [55s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(posterior) This is posterior version 1.7.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-print-177.R Saving _problems/test-rvar-print-200.R [ FAIL 2 | WARN 4 | SKIP 5 | PASS 2023 ] ══ Skipped tests (5) ═══════════════════════════════════════════════════════════ • On CRAN (5): '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:222:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-rvar-print.R:173:3'): str(<rvar_factor>) works ─────────────── Expected some element of `out` to match regexp " - attr\\(\\*, \"foo\"\\)= chr \"bar\"". Actual text: ✖ │ rvar_factor<1,2>[3,4] a <0.00> c <0.22> e <0.22> g <0.22> i <0.22> ... ✖ │ - 24 levels: a b c d ... x ✖ │ - attr(*, "foo")=chr "bar" ── Failure ('test-rvar-print.R:196:3'): str(<rvar_ordered>) works ────────────── Expected some element of `out` to match regexp " - attr\\(\\*, \"foo\"\\)= chr \"bar\"". Actual text: ✖ │ rvar_ordered<1,2>[3,4] a <0.000> c <0.032> e <0.032> g <0.032> i <0.032> ... ✖ │ - 24 levels: a < b < c < d < ... < x ✖ │ - attr(*, "foo")=chr "bar" [ FAIL 2 | WARN 4 | SKIP 5 | PASS 2023 ] Error: ! Test failures. Execution halted Flavor: r-devel-windows-x86_64