Last updated on 2025-12-19 14:50:39 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.0 | 3.70 | 34.43 | 38.13 | NOTE | |
| r-devel-linux-x86_64-debian-gcc | 0.1.0 | 2.45 | 25.64 | 28.09 | NOTE | |
| r-devel-linux-x86_64-fedora-clang | 0.1.0 | 7.00 | 55.82 | 62.82 | NOTE | |
| r-devel-linux-x86_64-fedora-gcc | 0.1.0 | 6.00 | 48.09 | 54.09 | ERROR | |
| r-devel-windows-x86_64 | 0.1.0 | 5.00 | 51.00 | 56.00 | NOTE | |
| r-patched-linux-x86_64 | 0.1.0 | 3.65 | 30.34 | 33.99 | NOTE | |
| r-release-linux-x86_64 | 0.1.0 | 3.50 | 30.67 | 34.17 | NOTE | |
| r-release-macos-arm64 | 0.1.0 | NOTE | ||||
| r-release-macos-x86_64 | 0.1.0 | 2.00 | 29.00 | 31.00 | NOTE | |
| r-release-windows-x86_64 | 0.1.0 | 5.00 | 49.00 | 54.00 | NOTE | |
| r-oldrel-macos-arm64 | 0.1.0 | NOTE | ||||
| r-oldrel-macos-x86_64 | 0.1.0 | 2.00 | 27.00 | 29.00 | NOTE | |
| r-oldrel-windows-x86_64 | 0.1.0 | 6.00 | 60.00 | 66.00 | NOTE |
Version: 0.1.0
Check: Rd files
Result: NOTE
checkRd: (-1) getSegsExtra.Rd:14: Lost braces
14 | \item{data}{data.table returned from function /code{tdtr}}
| ^
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘topdowntimeratio-Ex.R’ failed
The error most likely occurred in:
> ### Name: getSegments
> ### Title: Get Segments
> ### Aliases: getSegments
>
> ### ** Examples
>
> df <- data.frame(entity_id = rep(1, 12),
+ timestamp = c(1, 2, 4, 10, 14, 18, 20, 21, 24, 25, 28, 29),
+ lon = c(5.1299311, 5.129979, 5.129597, 5.130028, 5.130555, 5.131083,
+ 5.132101, 5.132704, 5.133326, 5.133904, 5.134746, 5.135613),
+ lat = c(52.092839, 52.092827, 52.092571, 52.092292, 52.092076, 52.091821,
+ 52.091420, 52.091219, 52.091343, 52.091651, 52.092138, 52.092698))
> # First generate segments
> res30 <- tdtr(df,
+ group_col = NULL,
+ max_error = 30)
Error in `[.data.table`(data, , `:=`(seg_start_lat = lat[1L], seg_start_lon = lon[1L], :
attempt access index 10/10 in VECTOR_ELT
Calls: tdtr -> controlLoop -> setup -> [ -> [.data.table
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [3s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(topdowntimeratio)
Attaching package: 'topdowntimeratio'
The following object is masked from 'package:testthat':
setup
>
> test_check("topdowntimeratio")
Saving _problems/test-segments-13.R
Saving _problems/test-segments-21.R
Saving _problems/test-segments-48.R
Saving _problems/test-tsiter-21.R
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 5 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-segments.R:13:3'): getSegments returns correct number of segments ──
Error in ``[.data.table`(data, , `:=`(seg_start_lat = lat[1L], seg_start_lon = lon[1L], seg_start_time = timestamp_numeric[1L], seg_end_lat = lat[.N], seg_end_lon = lon[.N], seg_end_time = timestamp_numeric[.N]), segment_id)`: attempt access index 10/10 in VECTOR_ELT
Backtrace:
▆
1. ├─topdowntimeratio::getSegments(tdtr(df, n_segs = 1, group_col = NULL)) at test-segments.R:13:3
2. └─topdowntimeratio::tdtr(df, n_segs = 1, group_col = NULL)
3. └─topdowntimeratio:::controlLoop(...)
4. └─topdowntimeratio::setup(data)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-segments.R:21:3'): segment distance is correct ─────────────────
Error in ``[.data.table`(data, , `:=`(seg_start_lat = lat[1L], seg_start_lon = lon[1L], seg_start_time = timestamp_numeric[1L], seg_end_lat = lat[.N], seg_end_lon = lon[.N], seg_end_time = timestamp_numeric[.N]), segment_id)`: attempt access index 10/10 in VECTOR_ELT
Backtrace:
▆
1. ├─topdowntimeratio::getSegments(tdtr(df, n_segs = 2, group_col = NULL)) at test-segments.R:21:3
2. └─topdowntimeratio::tdtr(df, n_segs = 2, group_col = NULL)
3. └─topdowntimeratio:::controlLoop(...)
4. └─topdowntimeratio::setup(data)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-segments.R:48:3'): getSegsExtra returns correct number of segments ──
Error in ``[.data.table`(data, , `:=`(seg_start_lat = lat[1L], seg_start_lon = lon[1L], seg_start_time = timestamp_numeric[1L], seg_end_lat = lat[.N], seg_end_lon = lon[.N], seg_end_time = timestamp_numeric[.N]), segment_id)`: attempt access index 10/10 in VECTOR_ELT
Backtrace:
▆
1. ├─topdowntimeratio::getSegsExtra(tdtr(df, n_segs = 1, group_col = NULL)) at test-segments.R:48:3
2. │ └─data.table::copy(data)
3. └─topdowntimeratio::tdtr(df, n_segs = 1, group_col = NULL)
4. └─topdowntimeratio:::controlLoop(...)
5. └─topdowntimeratio::setup(data)
6. ├─...[]
7. └─data.table:::`[.data.table`(...)
── Error ('test-tsiter.R:12:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(data, , `:=`(seg_start_lat = lat[1L], seg_start_lon = lon[1L], seg_start_time = timestamp_numeric[1L], seg_end_lat = lat[.N], seg_end_lon = lon[.N], seg_end_time = timestamp_numeric[.N]), segment_id)`: attempt access index 10/10 in VECTOR_ELT
Backtrace:
▆
1. └─topdowntimeratio::tdtr(...) at test-tsiter.R:12:1
2. └─topdowntimeratio:::controlLoop(...)
3. └─topdowntimeratio::setup(data)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 5 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc