* using log directory ‘/home/hornik/tmp/CRAN_special_noSuggests/micd.Rcheck’ * using R Under development (unstable) (2025-10-21 r88963) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-15 (Debian 15.2.0-4) 15.2.0 GNU Fortran (Debian 15.2.0-4) 15.2.0 * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘micd/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘micd’ version ‘1.1.2’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [5s/6s] OK * 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 serialization versions ... OK * checking whether package ‘micd’ can be installed ... [9s/9s] OK * checking package directory ... OK * checking for future file timestamps ... 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 ... [2s/2s] OK * checking whether the package can be loaded with stated dependencies ... [2s/2s] OK * checking whether the package can be unloaded cleanly ... [2s/2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK * checking whether the namespace can be unloaded cleanly ... [2s/2s] OK * checking loading without being on the library search path ... [3s/3s] 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 ... [13s/13s] OK * checking Rd files ... [0s/0s] 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 examples ... [13s/13s] ERROR Running examples in ‘micd-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: getSuff > ### Title: Obtain 'suffStat' for conditional independence testing > ### Aliases: getSuff > > ### ** Examples > > > # Example 1: continuous variables, no missing values ===================== > data(windspeed) > dat1 <- as.matrix(windspeed) > > ## analyse data > gaussCItest(1, 2, NULL, suffStat = getSuff(windspeed, test = "gaussCItest")) [1] 1.219773e-90 > mixCItest(1, 2, NULL, suffStat = windspeed) [1] 1.219773e-90 > > ## Example 2: continuous variables, multiple imputation =================== > dat2 <- mice::ampute(windspeed)$amp > > ## delete some observations > set.seed(123) > > ## Impute missing values under normal model > imp2 <- mice(dat2, method = "norm", printFlag = FALSE) > > ## analyse imputed data > gaussMItest(1, 2, c(4,5), suffStat = getSuff(imp2, test="gaussMItest")) [1] 9.956884e-17 > mixMItest(1, 2, c(4,5), suffStat = getSuff(imp2, test="mixMItest")) [1] 9.956884e-17 > mixMItest(1, 2, c(4,5), suffStat = mice::complete(imp2, action="all")) [1] 9.956884e-17 > flexMItest(1, 2, c(4,5), suffStat = getSuff(imp2, test="flexMItest")) [1] 9.956884e-17 > > ## Example 3: discrete variables, multiple imputation ===================== > ## simulate factor variables > n <- 200 > set.seed(789) > x <- factor(sample(0:2, n, TRUE)) # factor, 3 levels > y <- factor(sample(0:3, n, TRUE)) # factor, 4 levels > z <- factor(sample(0:1, n, TRUE)) # factor, 2 levels > dat3 <- data.frame(x,y,z) > > ## delete some observations of z > dat3[sample(1:n, 40), 3] <- NA > > ## impute missing values under saturated model > form <- make.formulas.saturated(dat3) > imp3 <- mice::mice(dat3, method = "logreg", formulas = form, printFlag = FALSE) > > ## analyse imputed data > disMItest(1, 3, 2, suffStat = getSuff(imp3, test="disMItest")) [1] 0.9449046 > disMItest(1, 3, 2, suffStat = mice::complete(imp3, action = "all")) [1] 0.9449046 > mixMItest(1, 3, 2, suffStat = getSuff(imp3, test="mixMItest")) [1] 0.9449046 > mixMItest(1, 3, 2, suffStat = mice::complete(imp3, action = "all")) [1] 0.9449046 > flexMItest(1, 3, 2, suffStat = getSuff(imp3, test="flexMItest")) [1] 0.9449046 > > # Example 4: mixed variables, multiple imputation ========================= > dat4 <- toenail2[1:400, ] > set.seed(123) > dat4[sample(400, 20), 2] <- NA > dat4[sample(400, 30), 4] <- NA > > ## impute missing values using random forests > imp4 <- mice(dat4, method="rf", m = 3, printFlag = FALSE) Error in loadNamespace(x) : there is no package called ‘ranger’ Calls: mice ... sampler -> sampler.univ -> do.call -> mice.impute.rf -> f Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [8s/8s] OK Running ‘testsCI.R’ [3s/3s] Running ‘testsMI.R’ [3s/3s] Running ‘testthat.R’ [3s/3s] * checking PDF version of manual ... [4s/4s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR