* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/MVNBayesian.Rcheck’ * using R Under development (unstable) (2024-03-16 r86144) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 13.2.1 20231011 (Red Hat 13.2.1-4) GNU Fortran (GCC) 13.2.1 20231011 (Red Hat 13.2.1-4) * running under: Fedora Linux 38 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘MVNBayesian/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘MVNBayesian’ version ‘0.0.8-11’ * 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 ‘MVNBayesian’ can be installed ... 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 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 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 ... 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [23s/24s] OK * checking examples with --run-donttest ... [12s/12s] ERROR Running examples in ‘MVNBayesian-Ex.R’ failed The error most likely occurred in: > ### Name: MVN_BayesianIterator > ### Title: Parameter estimation using Bayesian iteration > ### Aliases: MVN_BayesianIterator > ### Keywords: MVN distribution Bayesian posteriori Gibbs sampling > > ### ** Examples > > library(mvtnorm) > > # Bayesian posteriori before iteration using dataset1 as example, > # c(80, 16, 3) as priori mean: > # View 2-norm of covariance matrix of Bayesian posteriori: > BPos_init <- MVN_BayesianPosteriori(dataset1, c(80,16,3)) > BPos_init $mean [,1] fac1 77.90837 fac2 14.01146 fac3 4.12498 $var fac1 fac2 fac3 fac1 0.5344668 -0.28698530 -0.18252696 fac2 -0.2869853 0.27097011 -0.02952175 fac3 -0.1825270 -0.02952175 0.20718560 > norm(as.matrix(BPos_init$var), type = "2") [1] 0.754647 > > # Bayesian posteriori after iteration using c(80,16,3) as priori > # Using 30 last samples generated by GibbsSampler for each step: > BPos_fina1 <- MVN_BayesianIterator(dataset1, c(80,16,3), 5000, 30) [1] "Finish at the 1 step(s) in iteration." > BPos_fina1 $mean [,1] fac1 78.150751 fac2 13.953245 fac3 3.949264 $var fac1 fac2 fac3 fac1 3.653455e-04 -5.056149e-05 -0.0002480831 fac2 -5.056149e-05 2.788208e-04 -0.0002846714 fac3 -2.480831e-04 -2.846714e-04 0.0008041804 > norm(as.matrix(BPos_fina1$var), type = "2") [1] 0.0009992176 > ## No test: > # Too small pseudo_nums setting can results in singular system, try: > MVN_BayesianIterator(dataset1, pseudo_nums=3) Warning in MVN_BayesianPosteriori(pseudo_data, colMeans(pseudo_data), var(pseudo_data)) : Caustion: No enough data for Bayesian Posteriori. Error in data_BayesP$mean : $ operator is invalid for atomic vectors Calls: MVN_BayesianIterator Execution halted * checking PDF 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 See ‘/data/blackswan/ripley/R/packages/tests-devel/MVNBayesian.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:10.75, 61.10 + 6.95