* using log directory ‘/data/localhost/ripley/R/packages/tests-donttest/BayesianMediationA.Rcheck’ * using R Under development (unstable) (2026-11-30 r91009) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-11-30 20:11:02 UTC * checking for file ‘BayesianMediationA/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘BayesianMediationA’ version ‘1.0.1’ * 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 ‘BayesianMediationA’ can be installed ... 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 ... 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 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 ... OK * checking Rd files ... NOTE checkRd: (-1) bma.bx.cy.Rd:69: Lost braces 69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}. | ^ * 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 ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘BayesianMediationA-Ex.R’ failed The error most likely occurred in: > ### Name: bma.bx.cy > ### Title: Bayesian Mediation Analysis > ### Aliases: bma.bx.cy > > ### ** Examples > > data("weight_behavior") > #n.iter and n.burnin are set to be very small, should be adjusted > #binary predictor > test.b.c<- bma.bx.cy(pred=weight_behavior[,3], m=weight_behavior[,c(14,12,13)], + y=weight_behavior[,1],n.iter=5,n.burnin = 1) module glm loaded Warning in (function (file, data = NULL, inits, n.chains = 1, n.adapt = 1000, : Non-numeric data values supplied for variable(s) mind Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Fully observed stochastic nodes: 3936 Unobserved stochastic nodes: 21 Total graph size: 7677 Initializing model > summary(test.b.c) For Predictor 1 : Estimated Relative Effects for Method 3: DE sweat sports exercises mean 0.8962 0.0461 0.0997 -0.0420 sd 0.1479 0.0456 0.0843 0.0326 q_0.025 0.6965 0.0059 0.0134 -0.0717 q_0.25 0.8712 0.0203 0.0625 -0.0632 q_0.5 0.9600 0.0352 0.0896 -0.0484 q_0.75 0.9850 0.0610 0.1268 -0.0272 q_0.975 0.9874 0.1049 0.2031 -0.0013 > ## No test: > #categorical predictor > test.ca.c<- bma.bx.cy(pred=weight_behavior[,4], m=weight_behavior[,12:14], + y=weight_behavior[,1],n.iter=5,n.burnin = 1) Warning in (function (file, data = NULL, inits, n.chains = 1, n.adapt = 1000, : Non-numeric data values supplied for variable(s) mind Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Fully observed stochastic nodes: 3936 Unobserved stochastic nodes: 21 Total graph size: 14436 Initializing model > summary(test.ca.c) For Predictor 1 : Estimated Relative Effects for Method 3: DE sports exercises sweat mean 2.5137 -0.2693 -0.0240 -0.0807 sd 3.3060 0.2910 0.0341 0.0712 q_0.025 0.4994 -0.6603 -0.0701 -0.1614 q_0.25 0.6603 -0.3207 -0.0268 -0.1167 q_0.5 1.0682 -0.1589 -0.0081 -0.0799 q_0.75 2.9217 -0.1074 -0.0053 -0.0440 q_0.975 6.9853 -0.0659 -0.0050 -0.0014 For Predictor 2 : Estimated Relative Effects for Method 3: DE sports exercises sweat mean 0.2427 0.0016 0.0240 -0.0212 sd 0.0704 0.0008 0.0062 0.0244 q_0.025 0.1802 0.0011 0.0158 -0.0515 q_0.25 0.2115 0.0012 0.0230 -0.0316 q_0.5 0.2258 0.0013 0.0258 -0.0171 q_0.75 0.2571 0.0018 0.0268 -0.0067 q_0.975 0.3339 0.0027 0.0291 0.0021 For Predictor 3 : Estimated Relative Effects for Method 3: DE sports exercises sweat mean 0.9503 0.3192 0.0100 0.3161 sd 5.2773 0.9100 0.0479 0.4452 q_0.025 -5.0888 -0.6402 -0.0461 0.0487 q_0.25 -0.7859 -0.0498 -0.0053 0.0502 q_0.5 1.0078 0.2378 0.0122 0.1197 q_0.75 2.7441 0.6068 0.0275 0.3855 q_0.975 6.8918 1.4170 0.0625 0.9176 For Predictor 4 : Estimated Relative Effects for Method 3: DE sports exercises sweat mean 0.9883 0.1205 -0.0495 0.0474 sd 0.2414 0.0567 0.0185 0.0473 q_0.025 0.8167 0.0714 -0.0734 -0.0016 q_0.25 0.8669 0.0918 -0.0565 0.0211 q_0.5 0.8987 0.1059 -0.0444 0.0429 q_0.75 1.0201 0.1346 -0.0374 0.0692 q_0.975 1.3122 0.1944 -0.0344 0.1041 For Predictor 5 : Estimated Relative Effects for Method 3: DE sports exercises sweat mean 0.9453 0.0523 -0.0238 0.0263 sd 0.0516 0.0253 0.0037 0.0273 q_0.025 0.8816 0.0336 -0.0280 -0.0014 q_0.25 0.9193 0.0356 -0.0262 0.0084 q_0.5 0.9565 0.0436 -0.0235 0.0240 q_0.75 0.9825 0.0602 -0.0211 0.0420 q_0.975 0.9898 0.0857 -0.0202 0.0578 > > #use covariate for y > test.b.c.2<- bma.bx.cy(pred=weight_behavior[,3], m=weight_behavior[,12:14], + y=weight_behavior[,1],cova=weight_behavior[,2],n.iter=10,n.burnin = 1) Warning in (function (file, data = NULL, inits, n.chains = 1, n.adapt = 1000, : Non-numeric data values supplied for variable(s) mind Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Fully observed stochastic nodes: 3894 Unobserved stochastic nodes: 22 Total graph size: 8678 Initializing model > summary(test.b.c.2) For Predictor 1 : Estimated Relative Effects for Method 3: DE sports exercises sweat mean 0.9180 0.0724 -0.0191 0.0287 sd 0.0292 0.0299 0.0090 0.0197 q_0.025 0.8662 0.0401 -0.0287 0.0001 q_0.25 0.9139 0.0462 -0.0239 0.0117 q_0.5 0.9211 0.0657 -0.0200 0.0342 q_0.75 0.9361 0.0958 -0.0180 0.0382 q_0.975 0.9570 0.1199 -0.0013 0.0558 > > #use covariate for mediators > test.b.c.3<- bma.bx.cy(pred=weight_behavior[,3], m=weight_behavior[,c(9,12:14)], + y=weight_behavior[,1],mcov=weight_behavior[,c(2,5)], + mclist = list(1,2),n.iter=5,n.burnin = 1) Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Fully observed stochastic nodes: 5024 Unobserved stochastic nodes: 27 Total graph size: 14406 Initializing model Deleting model Error in (function (file, data = NULL, inits, n.chains = 1, n.adapt = 1000, : Error in node M2[497,2] Node inconsistent with parents Calls: bma.bx.cy -> jags -> do.call -> Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [11s/11s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR, 1 NOTE See ‘/data/localhost/ripley/R/packages/tests-donttest/BayesianMediationA.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:46.64, 72.99 + 24.96