* using log directory 'd:/Rcompile/CRANpkg/local/4.4/caret.Rcheck' * using R Under development (unstable) (2024-03-24 r86185 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * using option '--no-vignettes' * checking for file 'caret/DESCRIPTION' ... OK * this is package 'caret' version '6.0-94' * 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 'caret' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 13.2.0' * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [3s] OK * checking whether the package can be unloaded cleanly ... [4s] OK * checking whether the namespace can be loaded with stated dependencies ... [3s] 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 ... [42s] OK * checking Rd files ... [4s] NOTE checkRd: (-1) NEWS.Rd:96: Lost braces 96 | \item code{train} now removes duplicate models in the tuning grid. Duplicates could occur for models with discrete parameters. | ^ checkRd: (-1) calibration.Rd:46: Lost braces; missing escapes or markup? 46 | formula. This argument is not used for \code{xyplot.calibration}. For {ggplot.calibration}, \code{data} | ^ * 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 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [9s] ERROR Running examples in 'caret-Ex.R' failed The error most likely occurred in: > ### Name: confusionMatrix.train > ### Title: Estimate a Resampled Confusion Matrix > ### Aliases: confusionMatrix.train confusionMatrix.rfe confusionMatrix.sbf > ### Keywords: utilities > > ### ** Examples > > > > data(iris) > TrainData <- iris[,1:4] > TrainClasses <- iris[,5] > > knnFit <- train(TrainData, TrainClasses, + method = "knn", + preProcess = c("center", "scale"), + tuneLength = 10, + trControl = trainControl(method = "cv")) * checking for unstated dependencies in 'tests' ... OK * checking tests ... [5s] ERROR Running 'testthat.R' [4s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(caret) Loading required package: ggplot2 Loading required package: lattice > > test_check("caret") * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... [37s] OK * checking HTML version of manual ... [24s] OK * DONE Status: 2 ERRORs, 1 NOTE