* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/healthcareai.Rcheck’ * using R Under development (unstable) (2022-11-24 r83383) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * checking for file ‘healthcareai/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘healthcareai’ version ‘2.5.1’ * 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 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 ‘healthcareai’ can be installed ... [28s/29s] 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [43s/45s] OK * checking Rd files ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [11s/11s] ERROR Running examples in ‘healthcareai-Ex.R’ failed The error most likely occurred in: > ### Name: evaluate > ### Title: Get model performance metrics > ### Aliases: evaluate evaluate.predicted_df evaluate.model_list > > ### ** Examples > > models <- machine_learn(pima_diabetes[1:40, ], + patient_id, + outcome = diabetes, + models = c("XGB", "RF"), + tune = FALSE, + n_folds = 3) Training new data prep recipe... Variable(s) ignored in prep_data won't be used to tune models: patient_id Error in setup_training(d, rlang::enquo(outcome), model_class, models, : All predictors must be numeric, but the following variables are not numeric. Consider using prep_data to get data ready for model training: weight_class Calls: machine_learn -> flash_models -> setup_training Execution halted * checking examples with --run-donttest ... [11s/12s] ERROR Running examples in ‘healthcareai-Ex.R’ failed The error most likely occurred in: > ### Name: evaluate > ### Title: Get model performance metrics > ### Aliases: evaluate evaluate.predicted_df evaluate.model_list > > ### ** Examples > > models <- machine_learn(pima_diabetes[1:40, ], + patient_id, + outcome = diabetes, + models = c("XGB", "RF"), + tune = FALSE, + n_folds = 3) Training new data prep recipe... Variable(s) ignored in prep_data won't be used to tune models: patient_id Error in setup_training(d, rlang::enquo(outcome), model_class, models, : All predictors must be numeric, but the following variables are not numeric. Consider using prep_data to get data ready for model training: weight_class Calls: machine_learn -> flash_models -> setup_training Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat-1.R’ Running ‘testthat-2.R’ Running ‘testthat-3.R’ Running ‘testthat-4.R’ Running ‘testthat-5.R’ [10s/10s] ERROR Running the tests in ‘tests/testthat-5.R’ failed. Complete output: > if (!identical(Sys.getenv("NOT_CRAN"), "true")) { + library(testthat) + library(healthcareai) + Sys.setenv("R_TESTS" = "") + test_check("healthcareai", filter = "cran_only") + } healthcareai version 2.5.1 Please visit https://docs.healthcare.ai for full documentation and vignettes. Join the community at https://healthcare-ai.slack.com [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cran_only.R:4'): the fundamentals work ───────────────────────── Error in `setup_training(d, rlang::enquo(outcome), model_class, models, metric, positive_class, n_folds)`: All predictors must be numeric, but the following variables are not numeric. Consider using prep_data to get data ready for model training: weight_class Backtrace: ▆ 1. └─healthcareai::machine_learn(...) at test-cran_only.R:4:2 2. └─healthcareai::flash_models(...) 3. └─healthcareai:::setup_training(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking PDF version of manual ... [11s/14s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 3 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/healthcareai.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 4:11.14, 216.94 + 17.97