* using log directory 'd:/Rcompile/CRANpkg/local/3.5/hbbr.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'hbbr/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'hbbr' version '1.1.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'hbbr' can be installed ... OK * checking installed package size ... OK * checking package 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 R 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 ... [4s] OK * checking Rd files ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [123s] ERROR Running 'testthat.R' [122s] Running the tests in 'tests/testthat.R' failed. Complete output: > require(testthat) Loading required package: testthat > test_check("hbbr") Loading required package: hbbr Loading required package: R2jags Loading required package: rjags Loading required package: coda Linked to JAGS 4.2.0 Loaded modules: basemod,bugs Attaching package: 'R2jags' The following object is masked from 'package:coda': traceplot Package hbbr is loaded that implements ... hierarchical Bayesian benefit-risk assessment using DCE Hello from hbbrFit! Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 414 Unobserved stochastic nodes: 25 Total graph size: 7432 Initializing model Total Time Elapsed: 58 Seconds |**************************************************| summary of hbbr output |**************************************************| mean sd 2.5% 25% 50% 75% 97.5% Rhat n.eff bbar[1] 1.2446 1.028 -0.603 0.532 1.1801 1.9643 3.3610 1.14 21 bbar[2] 3.3954 1.470 0.670 2.350 3.4862 4.4501 6.1244 1.03 250 bbar[3] 7.3027 2.456 2.093 5.872 7.9623 9.1085 10.7877 1.01 510 bbar[4] 2.2793 0.930 0.522 1.623 2.2730 2.9046 4.1953 1.00 1900 bbar[5] 3.7077 1.154 1.208 2.927 3.8650 4.5796 5.6083 1.01 750 bbar[6] 4.4160 1.693 0.958 3.305 4.5914 5.5306 7.6043 1.02 450 bbar[7] 1.4463 0.915 -0.205 0.801 1.3991 2.0789 3.2960 1.01 190 bbar[8] 1.1539 1.134 -0.855 0.222 1.2530 1.9806 3.1558 1.01 150 bbar[9] 1.4368 1.325 -1.095 0.334 1.6489 2.4494 3.6141 1.04 50 bbar[10] -0.5412 0.799 -2.048 -1.089 -0.5762 0.0194 0.9890 1.05 50 bbar[11] -2.7694 1.338 -5.124 -3.718 -2.9603 -1.8181 -0.0911 1.04 58 bbar[12] -0.0815 0.704 -1.512 -0.566 -0.0948 0.4667 1.1737 1.13 18 bbar[13] -1.8009 1.216 -4.025 -2.667 -1.9796 -0.8065 0.4623 1.08 36 deviance 265.9556 25.410 221.331 248.087 263.6461 282.3294 320.2566 1.00 1100 -- 1. Failure: running test for hbbrFit (@test-hbbrFit.R#7) ------------------- abs(round(hbfit$bbar.means[1], 1) - 1.8) is not strictly less than 0.2. Difference: 0.4 Hello from hbbrAugFit! Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 1200 Unobserved stochastic nodes: 104 Total graph size: 15249 Initializing model Total Time Elapsed: 1.01 Minutes |**************************************************| | summary of augmented hbbr output | |**************************************************| mean sd 2.5% 25% 50% 75% 97.5% Rhat n.eff Del[1,1] 4.6364 0.606 3.638 4.281 4.6403 4.9975 5.829 1.01 140 Del[2,1] 14.9821 1.419 12.870 14.359 14.9895 15.6471 17.659 1.01 150 Del[3,1] 2.7593 0.432 1.962 2.492 2.7492 3.0330 3.563 1.01 240 Del[4,1] 7.3376 0.794 5.854 6.892 7.3503 7.8045 8.763 1.02 74 Del[5,1] -1.3813 0.398 -2.172 -1.648 -1.3885 -1.1212 -0.572 1.00 1200 Del[6,1] -10.0711 0.976 -11.779 -10.585 -10.0974 -9.6204 -8.457 1.02 98 Del[7,1] -4.8941 0.548 -5.904 -5.201 -4.8683 -4.6105 -3.982 1.03 52 Del[8,1] -7.4261 0.792 -8.793 -7.855 -7.4178 -7.0269 -6.101 1.03 53 Del[1,2] 1.3128 0.475 0.423 0.988 1.3062 1.6398 2.242 1.01 280 Del[2,2] 3.0192 0.890 1.204 2.424 3.0445 3.6365 4.716 1.01 120 Del[3,2] 0.1173 0.370 -0.630 -0.131 0.1117 0.3667 0.847 1.01 140 Del[4,2] 0.8624 0.583 -0.243 0.427 0.8763 1.2757 1.996 1.00 450 Del[5,2] -0.2774 0.414 -1.085 -0.548 -0.2783 -0.0011 0.518 1.01 530 Del[6,2] -1.4146 0.680 -2.747 -1.866 -1.4427 -0.9549 -0.107 1.02 97 Del[7,2] -1.0458 0.427 -1.872 -1.349 -1.0564 -0.7444 -0.208 1.00 1200 Del[8,2] -1.9414 0.603 -3.120 -2.350 -1.9364 -1.5208 -0.800 1.00 1200 Del[1,3] 1.6452 0.437 0.762 1.368 1.6466 1.9426 2.487 1.00 600 Del[2,3] 0.9082 0.810 -0.650 0.361 0.9218 1.4739 2.420 1.02 76 Del[3,3] 0.0454 0.373 -0.702 -0.189 0.0398 0.2900 0.783 1.00 640 Del[4,3] -0.6387 0.595 -1.790 -1.038 -0.6515 -0.2574 0.551 1.01 200 Del[5,3] -0.9018 0.404 -1.704 -1.163 -0.9020 -0.6206 -0.137 1.01 1200 Del[6,3] -1.0743 0.678 -2.371 -1.544 -1.0778 -0.6191 0.187 1.00 410 Del[7,3] 0.8921 0.399 0.115 0.624 0.8844 1.1684 1.669 1.02 66 Del[8,3] 0.7501 0.568 -0.393 0.380 0.7388 1.1214 1.874 1.01 110 deviance 546.3476 40.052 490.302 525.784 543.9091 561.9607 612.321 1.01 160 == testthat results =========================================================== [ OK: 3 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ] 1. Failure: running test for hbbrFit (@test-hbbrFit.R#7) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR