Running ‘spelling.R’
  Running ‘testthat.R’ [34s/49s]
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")
  Trying with MinPts = 200 and eps = 0.66
  Too much nosie (3.8 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 0.99
  Solution found: MinPts= 200 , eps = 0.918
  Trying with MinPts = 200 and eps = 3.3
  Too much nosie (17.6 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 4.95
  Solution found: MinPts= 200 , eps = 4.77
  Trying with MinPts = 200 and eps = 0.66
  Too much nosie (3.8 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 0.99
  Solution found: MinPts= 200 , eps = 0.918
  Trying with MinPts = 200 and eps = 0.66
  Too much nosie (3.8 %). Consider a higher eps.
  Trying with MinPts = 200 and eps = 0.99
  Solution found: MinPts= 200 , eps = 0.918
  The considered time-cycles are:
  
  
  |Timecycle |months |wdays |
  |:---------|:------|:-----|
  |1         |1-12   |1-5   |
  |2         |1-12   |6-7   |
  [ FAIL 5 | WARN 0 | SKIP 4 | PASS 34 ]
  
  ══ 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-exploration.R:34:3'): Points plot ──────────────────────────────
  Error in `NextMethod(.Generic)`: NAs are not allowed in subscripted assignments
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-exploration.R:34:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─ggplot2::is.ggplot(plot_points(sessions, log = FALSE))
    5. └─evprof::plot_points(sessions, log = FALSE)
    6.   └─evprof:::convert_time_dt_to_plot_dt(...)
    7.     ├─base::`[<-`(`*tmp*`, next_day_idx, value = `<date>`)
    8.     ├─base::`[<-.Date`(`*tmp*`, next_day_idx, value = `<date>`)
    9.     │ └─base::.Date(NextMethod(.Generic), oldClass(x))
   10.     └─base::NextMethod(.Generic)
  ── Error ('test-exploration.R:43:3'): Density 2D plots ─────────────────────────
  Error in `NextMethod(.Generic)`: NAs are not allowed in subscripted assignments
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-exploration.R:43:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─ggplot2::is.ggplot(plot_density_2D(sessions, by = "wday", log = FALSE))
    5. └─evprof::plot_density_2D(sessions, by = "wday", log = FALSE)
    6.   └─evprof:::convert_time_dt_to_plot_dt(...)
    7.     ├─base::`[<-`(`*tmp*`, next_day_idx, value = `<date>`)
    8.     ├─base::`[<-.Date`(`*tmp*`, next_day_idx, value = `<date>`)
    9.     │ └─base::.Date(NextMethod(.Generic), oldClass(x))
   10.     └─base::NextMethod(.Generic)
  ── Error ('test-exploration.R:64:3'): Density 3D plots ─────────────────────────
  Error in `NextMethod(.Generic)`: NAs are not allowed in subscripted assignments
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-exploration.R:64:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─"plotly" %in% class(plot_density_3D(sessions, log = FALSE))
    5. └─evprof::plot_density_3D(sessions, log = FALSE)
    6.   └─evprof:::convert_time_dt_to_plot_num(...)
    7.     └─evprof:::convert_time_dt_to_plot_dt(time_dt, start)
    8.       ├─base::`[<-`(`*tmp*`, next_day_idx, value = `<date>`)
    9.       ├─base::`[<-.Date`(`*tmp*`, next_day_idx, value = `<date>`)
   10.       │ └─base::.Date(NextMethod(.Generic), oldClass(x))
   11.       └─base::NextMethod(.Generic)
  ── Error ('test-preprocessing.R:17:3'): The outliers are removed by cutting ────
  Error in `NextMethod(.Generic)`: NAs are not allowed in subscripted assignments
  Backtrace:
      ▆
   1. └─evprof::cut_sessions(sessions, connection_start_max = 24, log = FALSE) at test-preprocessing.R:17:3
   2.   └─evprof:::convert_time_dt_to_plot_num(...)
   3.     └─evprof:::convert_time_dt_to_plot_dt(time_dt, start)
   4.       ├─base::`[<-`(`*tmp*`, next_day_idx, value = `<date>`)
   5.       ├─base::`[<-.Date`(`*tmp*`, next_day_idx, value = `<date>`)
   6.       │ └─base::.Date(NextMethod(.Generic), oldClass(x))
   7.       └─base::NextMethod(.Generic)
  ── Error ('test-preprocessing.R:34:3'): kNN plots ──────────────────────────────
  Error in `NextMethod(.Generic)`: NAs are not allowed in subscripted assignments
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-preprocessing.R:34:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─ggplot2::is.ggplot(plot_kNNdist(sessions, log = FALSE))
    5. └─evprof::plot_kNNdist(sessions, log = FALSE)
    6.   └─evprof:::convert_time_dt_to_plot_num(...)
    7.     └─evprof:::convert_time_dt_to_plot_dt(time_dt, start)
    8.       ├─base::`[<-`(`*tmp*`, next_day_idx, value = `<date>`)
    9.       ├─base::`[<-.Date`(`*tmp*`, next_day_idx, value = `<date>`)
   10.       │ └─base::.Date(NextMethod(.Generic), oldClass(x))
   11.       └─base::NextMethod(.Generic)
  
  [ FAIL 5 | WARN 0 | SKIP 4 | PASS 34 ]
  Error: Test failures
  Execution halted