* using log directory ‘/srv/hornik/tmp/CRAN_pretest/SLOS.Rcheck’ * using R Under development (unstable) (2024-12-17 r87446) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.1 (1) Debian flang-new version 19.1.1 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘SLOS/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘SLOS’ version ‘1.0.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/4s] NOTE Maintainer: ‘Joana da Matta ’ New submission Possibly misspelled words in DESCRIPTION: Peres (16:48, 16:214, 16:417) SLOSR (16:470) SRU (16:527) al (16:57, 16:223, 16:426) et (16:54, 16:220, 16:423) multicentre (16:296) * 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 ‘SLOS’ can be installed ... [25s/100s] WARNING Found the following significant warnings: Warning: namespace ‘caret’ is not available and has been replaced Warning: namespace ‘caretEnsemble’ is not available and has been replaced See ‘/srv/hornik/tmp/CRAN_pretest/SLOS.Rcheck/00install.out’ for details. * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... NOTE Author field differs from that derived from Authors@R Author: ‘Igor Peres’ Authors@R: ‘Igor Peres [aut], Joana da Matta [cre]’ * checking top-level files ... NOTE Non-standard file/directory found at top level: ‘cran-comments.md’ * 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 ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] 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 ... [3s/3s] NOTE SLOS: no visible global function definition for ‘%>%’ SLOS: no visible binding for global variable ‘UnitCode’ SLOS: no visible binding for global variable ‘soma_los_obs’ SLOS: no visible binding for global variable ‘soma_los_esp’ predict_and_evaluate: no visible global function definition for ‘predict’ predict_and_evaluate: no visible binding for global variable ‘small_model’ Undefined global functions or variables: %>% UnitCode predict small_model soma_los_esp soma_los_obs Consider adding importFrom("stats", "predict") to your NAMESPACE file. Found the following calls to data() loading into the global environment: File ‘SLOS/R/02-Prediction.R’: data("SampledData", package = "SLOS") See section ‘Good practice’ in ‘?data’. * 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [0s/0s] OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... NONE * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [24s/83s] ERROR Running ‘testthat.R’ [24s/83s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(SLOS) > > test_check("SLOS") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 2 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-Evaluation.R:5:3'): SLOS generates expected outputs ──────────── Error in `UseMethod("predict")`: no applicable method for 'predict' applied to an object of class "caretStack" Backtrace: ▆ 1. ├─base::suppressWarnings(SLOS::SLOS(mock_data)) at test-Evaluation.R:5:3 2. │ └─base::withCallingHandlers(...) 3. └─SLOS::SLOS(mock_data) 4. └─SLOS::predict_and_evaluate(data) 5. └─stats::predict(small_model, newdata = data) ── Error ('test-Prediction.R:3:3'): predict_and_evaluate works as expected ───── Error in `UseMethod("predict")`: no applicable method for 'predict' applied to an object of class "caretStack" Backtrace: ▆ 1. └─SLOS::predict_and_evaluate(sampled_data) at test-Prediction.R:3:3 2. └─stats::predict(small_model, newdata = data) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 2 ] Error: Test failures Execution halted * checking PDF version of manual ... [2s/2s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 WARNING, 4 NOTEs