* using log directory 'd:/Rcompile/CRANpkg/local/4.7/posterior.Rcheck' * using R Under development (unstable) (2026-06-16 r90166 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-06-17 15:17:52 UTC * checking for file 'posterior/DESCRIPTION' ... OK * this is package 'posterior' version '1.7.0' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'posterior' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [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 ... [14s] OK * checking Rd files ... [2s] OK * checking Rd metadata ... 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 ... [10s] 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 * checking for unstated dependencies in 'tests' ... OK * checking tests ... [51s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s] 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 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 * checking PDF version of manual ... [33s] OK * checking HTML version of manual ... [27s] OK * DONE Status: 3 ERRORs