CRAN Package Check Results for Package posterior

Last updated on 2026-06-18 01:52:55 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.7.0 12.48 161.10 173.58 ERROR
r-devel-linux-x86_64-debian-gcc 1.7.0 7.79 106.56 114.35 ERROR
r-devel-linux-x86_64-fedora-clang 1.7.0 20.00 312.82 332.82 OK
r-devel-linux-x86_64-fedora-gcc 1.7.0 20.00 322.00 342.00 OK
r-devel-windows-x86_64 1.7.0 18.00 202.00 220.00 ERROR
r-patched-linux-x86_64 1.7.0 16.57 149.68 166.25 OK
r-release-linux-x86_64 1.7.0 12.45 150.16 162.61 OK
r-release-macos-arm64 1.7.0 3.00 39.00 42.00 OK
r-release-macos-x86_64 1.7.0 8.00 167.00 175.00 OK
r-release-windows-x86_64 1.7.0 17.00 206.00 223.00 OK
r-oldrel-macos-arm64 1.7.0 3.00 49.00 52.00 OK
r-oldrel-macos-x86_64 1.7.0 8.00 141.00 149.00 OK
r-oldrel-windows-x86_64 1.7.0 22.00 261.00 283.00 OK

Check Details

Version: 1.7.0
Check: examples
Result: ERROR Running examples in ‘posterior-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: rvar_apply > ### Title: Random variable resulting from a function applied over margins > ### of an array or random variable > ### Aliases: rvar_apply > > ### ** Examples > > > set.seed(3456) > x <- rvar_rng(rnorm, 24, mean = 1:24) > dim(x) <- c(2,3,4) > > # we can find the distributions of marginal means of the above array > # using rvar_mean along with rvar_apply > rvar_apply(x, 1, rvar_mean) Error in attributes(newX) <- list(dim = c(prod(d.call), d2)) : dims [product 24] do not match the length of object [0] Calls: rvar_apply -> apply Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 1.7.0
Check: tests
Result: ERROR Running ‘testthat.R’ [36s/48s] 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-apply-10.R Saving _problems/test-rvar-apply-23.R Saving _problems/test-rvar-apply-39.R Saving _problems/test-rvar-apply-73.R [ FAIL 4 | WARN 0 | SKIP 5 | PASS 2005 ] ══ 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 ════════════════════════════════════════════════════════════════ ── Error ('test-rvar-apply.R:10:3'): base apply family functions work ────────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 12] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:10:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::apply(x, 1, function(x) sum(draws_of(x))) ── Error ('test-rvar-apply.R:23:3'): base apply family functions work with rvar_factor ── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 12] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:23:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::apply(x, 1, function(x) sum(draws_of(x) == "a")) ── Error ('test-rvar-apply.R:39:3'): rvar_apply works ────────────────────────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 18] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:39:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─posterior::rvar_apply(x, 1, rvar_mean) 5. └─base::apply(.x, .margin, .f, ...) ── Error ('test-rvar-apply.R:73:3'): rvar_apply works with rvar_factor ───────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 18] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(rvar_apply(x, 1, identity), x) at test-rvar-apply.R:73:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─posterior::rvar_apply(x, 1, identity) 5. └─base::apply(.x, .margin, .f, ...) [ FAIL 4 | WARN 0 | SKIP 5 | PASS 2005 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.7.0
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘pareto_diagnostics.Rmd’ using rmarkdown --- finished re-building ‘pareto_diagnostics.Rmd’ --- re-building ‘posterior.Rmd’ using rmarkdown --- finished re-building ‘posterior.Rmd’ --- re-building ‘rvar.Rmd’ using rmarkdown Quitting from rvar.Rmd:588-590 [apply] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: ! dims [product 24] do not match the length of object [0] --- Backtrace: ▆ 1. └─base::apply(x, c(1, 2), length) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'rvar.Rmd' failed with diagnostics: dims [product 24] do not match the length of object [0] --- failed re-building ‘rvar.Rmd’ SUMMARY: processing the following file failed: ‘rvar.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 1.7.0
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/29s] 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-apply-10.R Saving _problems/test-rvar-apply-23.R Saving _problems/test-rvar-apply-39.R Saving _problems/test-rvar-apply-73.R [ FAIL 4 | WARN 0 | SKIP 5 | PASS 2005 ] ══ 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 ════════════════════════════════════════════════════════════════ ── Error ('test-rvar-apply.R:10:3'): base apply family functions work ────────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 12] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:10:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::apply(x, 1, function(x) sum(draws_of(x))) ── Error ('test-rvar-apply.R:23:3'): base apply family functions work with rvar_factor ── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 12] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:23:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::apply(x, 1, function(x) sum(draws_of(x) == "a")) ── Error ('test-rvar-apply.R:39:3'): rvar_apply works ────────────────────────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 18] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:39:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─posterior::rvar_apply(x, 1, rvar_mean) 5. └─base::apply(.x, .margin, .f, ...) ── Error ('test-rvar-apply.R:73:3'): rvar_apply works with rvar_factor ───────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 18] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(rvar_apply(x, 1, identity), x) at test-rvar-apply.R:73:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─posterior::rvar_apply(x, 1, identity) 5. └─base::apply(.x, .margin, .f, ...) [ FAIL 4 | WARN 0 | SKIP 5 | PASS 2005 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.7.0
Check: examples
Result: ERROR Running examples in 'posterior-Ex.R' failed The error most likely occurred in: > ### Name: rvar_apply > ### Title: Random variable resulting from a function applied over margins > ### of an array or random variable > ### Aliases: rvar_apply > > ### ** Examples > > > set.seed(3456) > x <- rvar_rng(rnorm, 24, mean = 1:24) > dim(x) <- c(2,3,4) > > # we can find the distributions of marginal means of the above array > # using rvar_mean along with rvar_apply > rvar_apply(x, 1, rvar_mean) Error in attributes(newX) <- list(dim = c(prod(d.call), d2)) : dims [product 24] do not match the length of object [0] Calls: rvar_apply -> apply Execution halted Flavor: r-devel-windows-x86_64

Version: 1.7.0
Check: tests
Result: ERROR Running 'testthat.R' [51s] 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-apply-10.R Saving _problems/test-rvar-apply-23.R Saving _problems/test-rvar-apply-39.R Saving _problems/test-rvar-apply-73.R [ FAIL 4 | WARN 0 | SKIP 5 | PASS 2005 ] ══ 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 ════════════════════════════════════════════════════════════════ ── Error ('test-rvar-apply.R:10:3'): base apply family functions work ────────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 12] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:10:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::apply(x, 1, function(x) sum(draws_of(x))) ── Error ('test-rvar-apply.R:23:3'): base apply family functions work with rvar_factor ── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 12] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:23:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::apply(x, 1, function(x) sum(draws_of(x) == "a")) ── Error ('test-rvar-apply.R:39:3'): rvar_apply works ────────────────────────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 18] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-rvar-apply.R:39:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─posterior::rvar_apply(x, 1, rvar_mean) 5. └─base::apply(.x, .margin, .f, ...) ── Error ('test-rvar-apply.R:73:3'): rvar_apply works with rvar_factor ───────── Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: dims [product 18] do not match the length of object [0] Backtrace: ▆ 1. ├─testthat::expect_equal(rvar_apply(x, 1, identity), x) at test-rvar-apply.R:73:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─posterior::rvar_apply(x, 1, identity) 5. └─base::apply(.x, .margin, .f, ...) [ FAIL 4 | WARN 0 | SKIP 5 | PASS 2005 ] Error: ! Test failures. Execution halted Flavor: r-devel-windows-x86_64

Version: 1.7.0
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building 'pareto_diagnostics.Rmd' using rmarkdown --- finished re-building 'pareto_diagnostics.Rmd' --- re-building 'posterior.Rmd' using rmarkdown --- finished re-building 'posterior.Rmd' --- re-building 'rvar.Rmd' using rmarkdown Quitting from rvar.Rmd:588-590 [apply] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `attributes(newX) <- list(dim = c(prod(d.call), d2))`: ! dims [product 24] do not match the length of object [0] --- Backtrace: ▆ 1. └─base::apply(x, c(1, 2), length) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'rvar.Rmd' failed with diagnostics: dims [product 24] do not match the length of object [0] --- failed re-building 'rvar.Rmd' SUMMARY: processing the following file failed: 'rvar.Rmd' Error: Vignette re-building failed. Execution halted Flavor: r-devel-windows-x86_64