- using R Under development (unstable) (2025-12-02 r89085)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘alookr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘alookr’ version ‘0.4.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 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 ‘alookr’ can be installed ... [26s/119s] OK
See the install log for details.
- 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 ... [7s/28s] OK
- checking whether the package can be loaded with stated dependencies ... [7s/29s] OK
- checking whether the package can be unloaded cleanly ... [6s/31s] OK
- checking whether the namespace can be loaded with stated dependencies ... [7s/24s] OK
- checking whether the namespace can be unloaded cleanly ... [7s/28s] OK
- checking loading without being on the library search path ... [7s/33s] 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 ... [35s/136s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [23s/78s] ERROR
Running examples in ‘alookr-Ex.R’ failed
The error most likely occurred in:
> ### Name: run_models
> ### Title: Fit binary classification model
> ### Aliases: run_models
>
> ### ** Examples
>
> library(dplyr)
Attaching package: ‘dplyr’
The following object is masked from ‘package:randomForest’:
combine
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
>
> # Divide the train data set and the test data set.
> sb <- rpart::kyphosis %>%
+ split_by(Kyphosis)
>
> # Extract the train data set from original data set.
> train <- sb %>%
+ extract_set(set = "train")
>
> # Extract the test data set from original data set.
> test <- sb %>%
+ extract_set(set = "test")
>
> # Sampling for unbalanced data set using SMOTE(synthetic minority over-sampling technique).
> train <- sb %>%
+ sampling_target(seed = 1234L, method = "ubSMOTE")
>
> # Cleaning the set.
> train <- train %>%
+ cleanse
── Checking unique value ─────────────────────────── unique value is one ──
No variables that unique value is one.
── Checking unique rate ─────────────────────────────── high unique rate ──
No variables that high unique rate.
── Checking character variables ─────────────────────── categorical data ──
No character variables.
>
> # Run the model fitting.
> result <- run_models(.data = train, target = "Kyphosis", positive = "present")
Warning in throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), :
Passed unrecognized parameters: verbose. This warning will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", :
Parameter 'eta' has been renamed to 'learning_rate'. This warning will become an error in a future version.
Error in `purrr::map()`:
ℹ In index: 6.
Caused by error in `process.y.margin.and.objective()`:
! Got numeric 'y' - supported objectives for this data are: reg:squarederror, reg:squaredlogerror, reg:logistic, reg:pseudohubererror, reg:absoluteerror, reg:quantileerror, count:poisson, reg:gamma, reg:tweedie. Was passed: binary:logistic
Backtrace:
▆
1. ├─alookr::run_models(.data = train, target = "Kyphosis", positive = "present")
2. │ └─... %>% ...
3. ├─tibble::tibble(...)
4. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
5. │ └─rlang::eval_tidy(xs[[j]], mask)
6. ├─purrr::map(., ~future::value(.x))
7. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ ├─purrr:::with_indexed_errors(...)
9. │ │ └─base::withCallingHandlers(...)
10. │ ├─purrr:::call_with_cleanup(...)
11. │ └─alookr (local) .f(.x[[i]], ...)
12. │ ├─future::value(.x)
13. │ └─future:::value.Future(.x)
14. │ └─future:::signalConditions(...)
15. │ └─base::stop(condition)
16. └─purrr (local) `<fn>`(`<smplErrr>`)
17. └─cli::cli_abort(...)
18. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [24s/90s] OK
- checking PDF version of manual ... [10s/40s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR