- using R version 4.5.2 (2025-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-12) 14.3.0
GNU Fortran (Debian 14.3.0-12) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘evprof/DESCRIPTION’ ... OK
- this is package ‘evprof’ version ‘1.2.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 ‘evprof’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [3s/4s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/4s] OK
- checking loading without being on the library search path ... [2s/4s] OK
- checking whether startup messages can be suppressed ... [2s/4s] 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 ... [13s/19s] OK
- checking Rd files ... [1s/1s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/2s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [6s/9s] ERROR
Running examples in ‘evprof-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cut_sessions
> ### Title: Cut outliers based on minimum and maximum limits of
> ### ConnectionHours and ConnectionStartDateTime variables
> ### Aliases: cut_sessions
>
> ### ** Examples
>
> library(dplyr)
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
> # Localize the outlying sessions above a certain threshold
> california_ev_sessions %>%
+ sample_frac(0.05) %>%
+ plot_points(start = 3)
Warning: Removed 3 rows containing missing values or values outside the scale range
(`geom_point()`).
>
> # For example sessions that start before 5 AM or that are
> # longer than 20 hours are considered outliers
> sessions_clean <- california_ev_sessions %>%
+ sample_frac(0.05) %>%
+ cut_sessions(
+ start = 3,
+ connection_hours_max = 20,
+ connection_start_min = 5
+ )
> plot_points(sessions_clean, start = 3)
Error in if (any(hour(time_dt) < start)) { :
missing value where TRUE/FALSE needed
Calls: plot_points -> convert_time_dt_to_plot_dt
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [25s/32s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [25s/31s]
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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s/11s] OK
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [1s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs