CRAN Package Check Results for Package kmscv

Last updated on 2023-01-30 09:54:15 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 2.22 23.72 25.94 OK
r-devel-linux-x86_64-debian-gcc 0.1.0 1.70 18.46 20.16 OK
r-devel-linux-x86_64-fedora-clang 0.1.0 33.81 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.0 31.65 ERROR
r-devel-windows-x86_64 0.1.0 12.00 52.00 64.00 OK
r-patched-linux-x86_64 0.1.0 1.92 23.82 25.74 OK
r-release-linux-x86_64 0.1.0 1.49 24.51 26.00 OK
r-release-macos-arm64 0.1.0 16.00 OK
r-release-macos-x86_64 0.1.0 22.00 OK
r-release-windows-x86_64 0.1.0 7.00 55.00 62.00 OK
r-oldrel-macos-arm64 0.1.0 17.00 OK
r-oldrel-macos-x86_64 0.1.0 22.00 OK
r-oldrel-windows-ix86+x86_64 0.1.0 6.00 48.00 54.00 OK

Check Details

Version: 0.1.0
Check: examples
Result: ERROR
    Running examples in ‘kmscv-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: kms_cv
    > ### Title: K-Means Based Cross-Validation
    > ### Aliases: kms_cv
    >
    > ### ** Examples
    >
    > library(kmscv)
    >
    > kms_cv(iris,k = 5,centers = NULL,max_center = 20,alpha = .1,seed = 1)
    Warning in kms_cv(iris, k = 5, centers = NULL, max_center = 20, alpha = 0.1, :
     Dropping 1 columns, numerics are used only.
    Error in `map2()`:
    ℹ In index: 1.
    Caused by error in `dplyr::slice_sample()`:
    ! `n` must be a round number, not the number 7.6.
    Backtrace:
     ▆
     1. └─kmscv::kms_cv(...)
     2. └─purrr::map2_dfr(...)
     3. └─purrr::map2(.x, .y, .f, ...)
     4. └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
     5. ├─purrr:::with_indexed_errors(...)
     6. │ └─base::withCallingHandlers(...)
     7. ├─purrr:::call_with_cleanup(...)
     8. └─kmscv (local) .f(.x[[i]], .y[[i]], ...)
     9. ├─dplyr::slice_sample(.x, n = .y)
     10. └─dplyr:::slice_sample.data.frame(.x, n = .y)
     11. └─dplyr:::get_slice_size(n = n, prop = prop, allow_outsize = replace)
     12. └─dplyr:::check_slice_n_prop(n, prop, error_call = error_call)
     13. └─rlang::abort(...)
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc