* using log directory 'd:/Rcompile/CRANpkg/local/4.4/IRon.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 'IRon/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'IRon' version '0.1.4' * 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 'IRon' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 13.3.0' * 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 ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [4s] OK * checking whether the package can be unloaded cleanly ... [4s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] 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 ... [10s] OK * checking Rd files ... [1s] 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 ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... [14s] ERROR Running examples in 'IRon-Ex.R' failed The error most likely occurred in: > ### Name: sera > ### Title: Squared Error-Relevance Area (SERA) > ### Aliases: sera > > ### ** Examples > > library(IRon) > library(rpart) > > if(requireNamespace("rpart")) { + + #' data(accel) + + form <- acceleration ~ . + + ind <- sample(1:nrow(accel),0.75*nrow(accel)) + + train <- accel[ind,] + test <- accel[-ind,] + + ph <- phi.control(accel$acceleration) + + m <- rpart::rpart(form, train) + preds <- as.vector(predict(m,test)) + + trues <- test$acceleration + phi.trues <- phi(test$acceleration,ph) + + sera(trues,preds,phi.trues) + sera(trues,preds,phi.trues,pl=TRUE, m.name="Regression Trees") + sera(trues,preds,phi.trues,pl=TRUE, return.err=TRUE) + + } Error in `ggplot2::geom_smooth()`: ! Problem while computing stat. ℹ Error occurred in the 1st layer. Caused by error in `get()`: ! object 'scam' of mode 'function' was not found Backtrace: ▆ 1. ├─IRon::sera(trues, preds, phi.trues, pl = TRUE, m.name = "Regression Trees") 2. │ ├─base::print(...) 3. │ └─ggplot2 (local) `print.ggplot2::ggplot`(...) 4. │ ├─ggplot2::ggplot_build(x) 5. │ └─ggplot2 (local) `ggplot_build.ggplot2::ggplot`(x) 6. │ └─ggplot2:::by_layer(...) 7. │ ├─rlang::try_fetch(...) 8. │ │ ├─base::tryCatch(...) 9. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. │ │ └─base::withCallingHandlers(...) 13. │ └─ggplot2 (local) f(l = layers[[i]], d = data[[i]]) 14. │ └─l$compute_statistic(d, layout) 15. │ └─ggplot2 (local) compute_statistic(..., self = self) 16. │ └─self$stat$setup_params(data, self$stat_params) 17. │ └─ggplot2 (local) setup_params(...) 18. │ └─base::match.fun(method) 19. │ └─base::get(as.character(FUN), mode = "function", envir = envir) 20. └─base::.handleSimpleError(...) 21. └─rlang (local) h(simpleError(msg, call)) 22. └─handlers[[1L]](cnd) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) Execution halted * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR