CRAN Package Check Results for Maintainer ‘Danielle McCool <d.m.mccool at uu.nl>’

Last updated on 2025-12-28 01:49:06 CET.

Package ERROR NOTE
topdowntimeratio 1 12

Package topdowntimeratio

Current CRAN status: ERROR: 1, NOTE: 12

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-windows-x86_64

Version: 0.1.0
Check: tests
Result: ERROR Running 'spelling.R' [0s] Running 'testthat.R' [2s] 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-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.