Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [17s/23s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(evprof)
  > 
  > test_check("evprof")
  Saving _problems/test-preprocessing-36.R
  Trying with MinPts = 200 and eps = 0.66
  Too much nosie (4 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 0.99
  Solution found: MinPts= 200 , eps = 0.99
  Trying with MinPts = 200 and eps = 3.3
  Too much nosie (18 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 4.95
  Solution found: MinPts= 200 , eps = 4.95
  Trying with MinPts = 200 and eps = 0.66
  Too much nosie (4 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 0.99
  Solution found: MinPts= 200 , eps = 0.99
  Trying with MinPts = 200 and eps = 0.66
  Too much nosie (4 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 0.99
  Solution found: MinPts= 200 , eps = 0.99
  The considered time-cycles are:
  
  
  |Timecycle |months |wdays |
  |:---------|:------|:-----|
  |1         |1-12   |1-5   |
  |2         |1-12   |6-7   |
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 48 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-clustering.R:16:3', 'test-clustering.R:26:3',
    'test-modelling.R:104:3', 'test-modelling.R:135:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-preprocessing.R:34:3'): kNN plots ──────────────────────────────
  Error in `kNN(x, k, sort = TRUE, ...)`: data/distances cannot contain NAs for kNN (with kd-tree)!
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-preprocessing.R:34:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─ggplot2::is_ggplot(plot_kNNdist(sessions, log = FALSE))
    5. │ └─S7::S7_inherits(x, class_ggplot)
    6. ├─evprof::plot_kNNdist(sessions, log = FALSE)
    7. │ ├─ggplot2::ggplot(...)
    8. │ └─tibble::tibble(...)
    9. │   └─tibble:::tibble_quos(xs, .rows, .name_repair)
   10. │     └─rlang::eval_tidy(xs[[j]], mask)
   11. ├─base::sort(...)
   12. └─dbscan::kNNdist(...)
   13.   └─dbscan::kNN(x, k, sort = TRUE, ...)
  
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted