* using log directory 'd:/Rcompile/CRANpkg/local/4.4/MixStable.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'MixStable/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'MixStable' version '0.1.0' * 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 'MixStable' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [6s] OK * checking whether the package can be loaded with stated dependencies ... [5s] OK * checking whether the package can be unloaded cleanly ... [5s] OK * checking whether the namespace can be loaded with stated dependencies ... [5s] OK * checking whether the namespace can be unloaded cleanly ... [5s] OK * checking loading without being on the library search path ... [5s] 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 ... [21s] OK * checking Rd files ... [2s] 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 ... [0s] OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... NONE * checking for unstated dependencies in 'tests' ... OK * checking tests ... [20m] ERROR Running 'test_ecf.R' [12s] Running 'test_ecf_2.R' [6s] Running 'test_em.R' [11s] Running 'test_em_2.R' [6s] Running 'test_em_3.R' [11s] Running 'test_function.R' [19s] Running 'test_gibbs.R' [113s] Running 'test_helper.R' [5s] Running 'test_helper_2.R' [40s] Running 'test_helper_3.R' [5s] Running 'test_integrals.R' [6s] Running 'test_mcculloch_2.R' [5s] Running 'test_mle.R' [16m] Running 'test_normalization.R' [5s] Running the tests in 'tests/test_ecf.R' failed. Complete output: > # Clean environment and load libraries > rm(list = ls()) # Clear environment to avoid conflicts > > # Source files > library(MixStable) Attaching package: 'MixStable' The following object is masked from 'package:graphics': clip > > # 📊 Generate synthetic data using explicit package reference > X <- stabledist::rstable(1200, alpha = 1.2, beta = 0.5, gamma = 1, delta = 3, pm = 1) > u_vals <- seq(0.1, 1, length.out = 10) > > # Add some diagnostic information > cat("Data summary:\n") Data summary: > cat("Length:", length(X), "\n") Length: 1200 > cat("Range:", range(X), "\n") Range: -1436.901 153.0839 > cat("Mean:", mean(X), "SD:", sd(X), "\n") Mean: 1.3582 SD: 42.31066 > cat("u_vals:", u_vals, "\n\n") u_vals: 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 > > # 🧮 Estimate parameters with error handling > safe_estimate <- function(func, data, u, name) { + cat("Running", name, "...\n") + result <- tryCatch({ + func(data, u) + }, error = function(e) { + cat("Error in", name, ":", e$message, "\n") + return(NULL) + }, warning = function(w) { + cat("Warning in", name, ":", w$message, "\n") + suppressWarnings(func(data, u)) + }) + return(result) + } > > # Run estimations with error handling > result_CDF <- safe_estimate(CDF, X, u_vals, "CDF") Running CDF ... > result_ecf_regression <- safe_estimate(ecf_regression, X, u_vals, "ECF Regression") Running ECF Regression ... Warning in ECF Regression : NaNs produced Error in model.frame.default(formula = residuals1 ~ pred1, drop.unused.levels = TRUE) : variable lengths differ (found for 'pred1') Calls: safe_estimate ... tryCatch -> tryCatchList -> tryCatchOne -> Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [21s] OK * DONE Status: 1 ERROR