- using R Under development (unstable) (2025-02-14 r87716)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
- running under: Fedora Linux 40 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘bayestestR/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘bayestestR’ version ‘0.15.2’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘bayestestR’ can be installed ... [22s/28s] OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking whether startup messages can be suppressed ... 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 ... [57s/76s] OK
- checking Rd files ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [29s/39s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [18m/12m] ERROR
Running ‘testthat.R’ [18m/12m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(bayestestR)
>
> test_check("bayestestR")
Starting 2 test processes
Superclass process has cloneable=FALSE, but subclass r_session has cloneable=TRUE. A subclass cannot be cloneable when its superclass is not cloneable, so cloning will be disabled for r_session.
Superclass process has cloneable=FALSE, but subclass r_session has cloneable=TRUE. A subclass cannot be cloneable when its superclass is not cloneable, so cloning will be disabled for r_session.
[ FAIL 4 | WARN 16 | SKIP 79 | PASS 220 ]
══ Skipped tests (79) ══════════════════════════════════════════════════════════
• On CRAN (73): 'test-bayesfactor_parameters.R:56:3',
'test-bayesfactor_parameters.R:94:3', 'test-bayesfactor_restricted.R:36:3',
'test-bayesian_as_frequentist.R:1:1', 'test-blavaan.R:2:3',
'test-brms.R:2:3', 'test-brms.R:38:3', 'test-brms.R:57:3',
'test-brms.R:81:3', 'test-check_prior.R:4:3', 'test-check_prior.R:66:3',
'test-check_prior.R:104:3', 'test-ci.R:33:3', 'test-ci.R:50:3',
'test-contr.R:2:3', 'test-contr.R:25:3', 'test-contr.R:59:3',
'test-data.frame-with-rvar.R:3:3', 'test-data.frame-with-rvar.R:74:3',
'test-describe_posterior.R:3:3', 'test-describe_posterior.R:249:3',
'test-describe_posterior.R:266:3', 'test-describe_posterior.R:284:3',
'test-describe_posterior.R:321:3', 'test-describe_prior.R:2:3',
'test-bayesfactor_models.R:58:3', 'test-bayesfactor_models.R:85:3',
'test-bayesfactor_models.R:122:3', 'test-effective_sample.R:2:3',
'test-equivalence_test.R:1:1', 'test-hdi.R:3:3', 'test-hdi.R:25:3',
'test-hdi.R:43:3', 'test-hdi.R:61:3', 'test-map_estimate.R:23:3',
'test-map_estimate.R:36:3', 'test-marginaleffects.R:1:1',
'test-p_direction.R:38:3', 'test-p_direction.R:70:3', 'test-p_map.R:24:3',
'test-p_map.R:39:3', 'test-p_rope.R:2:3', 'test-p_significance.R:38:3',
'test-p_significance.R:50:3', 'test-p_significance.R:84:3',
'test-point_estimate.R:2:3', 'test-point_estimate.R:18:3',
'test-posterior.R:2:3', 'test-posterior.R:22:3', 'test-posterior.R:42:3',
'test-posterior.R:62:3', 'test-posterior.R:82:3', 'test-posterior.R:103:3',
'test-print.R:2:3', 'test-emmGrid.R:132:3', 'test-emmGrid.R:142:3',
'test-emmGrid.R:172:3', 'test-emmGrid.R:188:3', 'test-emmGrid.R:224:3',
'test-emmGrid.R:234:3', 'test-rope.R:2:3', 'test-rope.R:40:3',
'test-rope.R:83:3', 'test-rstanarm.R:2:3', 'test-rstanarm.R:50:3',
'test-rstanarm.R:69:3', 'test-rstanarm.R:89:3', 'test-rstanarm.R:109:3',
'test-si.R:33:3', 'test-spi.R:3:3', 'test-spi.R:25:3', 'test-spi.R:42:3',
'test-spi.R:60:3'
• On Linux (5): 'test-BFBayesFactor.R:1:1', 'test-ci.R:2:3',
'test-describe_posterior.R:111:3', 'test-rope.R:98:3',
'test-weighted_posteriors.R:1:1'
• TODO: check hard-coded values (1): 'test-check_prior.R:27:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bayesfactor_models.R:35:3'): bayesfactor_models BIC ──────────
update(BFM2, reference = 1)$log_BF (`actual`) not equal to c(0, -2.8, -6.2, -57.4) (`expected`).
`actual`: 0.00 -9.82 -12.10 -57.18
`expected`: 0.00 -2.80 -6.20 -57.40
── Failure ('test-bayesfactor_models.R:208:3'): bayesfactor_inclusion | LMM ────
bfinc_all$log_BF (`actual`) not equal to c(NaN, 57.651, -2.352, -4.064, -4.788) (`expected`).
`actual`: NaN 55.8 -10.0 -10.9 -10.5
`expected`: NaN 57.7 -2.4 -4.1 -4.8
── Failure ('test-bayesfactor_models.R:213:3'): bayesfactor_inclusion | LMM ────
bfinc_matched$p_posterior (`actual`) not equal to c(1, 0.875, 0.125, 0.009, 0.002) (`expected`).
`actual`: 1.00 1.00 0.00 0.00 0.00
`expected`: 1.00 0.88 0.12 0.01 0.00
── Failure ('test-bayesfactor_models.R:214:3'): bayesfactor_inclusion | LMM ────
bfinc_matched$log_BF (`actual`) not equal to c(NaN, 58.904, -3.045, -3.573, -1.493) (`expected`).
`actual`: NaN 57.2 -10.7 -11.0 0.2
`expected`: NaN 58.9 -3.0 -3.6 -1.5
[ FAIL 4 | WARN 16 | SKIP 79 | PASS 220 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [16s/21s] OK
- checking PDF version of manual ... [13s/17s] OK
- checking HTML version of manual ... [7s/11s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR