Last updated on 2026-03-07 04:50:34 CET.
| Package | ERROR | OK |
|---|---|---|
| KMEANS.KNN | 2 | 12 |
Current CRAN status: ERROR: 2, OK: 12
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(KMEANS.KNN)
>
> test_check("KMEANS.KNN")
Saving _problems/test-KMEANS_FUNCTION-11.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 11 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-KMEANS_FUNCTION.R:11:3'): KMEANS_FUNCTION works ────────────────
Error in `new_centers[j, ] <- colMeans(cluster_points, na.rm = TRUE)`: incorrect number of subscripts on matrix
Backtrace:
▆
1. └─KMEANS.KNN::KMEANS_FUNCTION(...) at test-KMEANS_FUNCTION.R:11:3
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 11 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(KMEANS.KNN)
>
> test_check("KMEANS.KNN")
Saving _problems/test-KMEANS_FUNCTION-11.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 11 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-KMEANS_FUNCTION.R:11:3'): KMEANS_FUNCTION works ────────────────
Error in `new_centers[j, ] <- colMeans(cluster_points, na.rm = TRUE)`: incorrect number of subscripts on matrix
Backtrace:
▆
1. └─KMEANS.KNN::KMEANS_FUNCTION(...) at test-KMEANS_FUNCTION.R:11:3
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 11 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-windows-x86_64