Last updated on 2025-12-28 05:50:36 CET.
| Package | ERROR | OK |
|---|---|---|
| gtfs2gps | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 2.1-3
Check: examples
Result: ERROR
Running examples in 'gtfs2gps-Ex.R' failed
The error most likely occurred in:
> ### Name: gps_as_sflinestring
> ### Title: Converts a GPS-like data.table to a LineString Simple Feature
> ### (sf) object
> ### Aliases: gps_as_sflinestring
>
> ### ** Examples
>
> library(gtfs2gps)
>
> poa <- read_gtfs(system.file("extdata/poa.zip", package = "gtfs2gps"))
Unzipped the following files to D:/temp/2025_12_24_01_50_00_27005/RtmpWmOT8D/gtfsio:
* agency.txt
* calendar.txt
* routes.txt
* shapes.txt
* stop_times.txt
* stops.txt
* trips.txt
Reading agency
Reading calendar
Reading routes
Reading shapes
Reading stop_times
Reading stops
Reading trips
> poa_subset <- gtfstools::filter_by_shape_id(poa, c("T2-1", "A141-1")) |>
+ filter_single_trip()
>
> poa_gps <- gtfs2gps(poa_subset)
Converting shapes to sf objects
Using 1 CPU cores
Processing the data
Some 'speed' values are NA in the returned data.
>
> poa_gps_sf <- gps_as_sflinestring(poa_gps)
Error in `[.data.table`(dt, , `:=`(numbers, .N), by = .(shape_id, trip_id, :
attempt access index 14/14 in VECTOR_ELT
Calls: gps_as_sflinestring -> [ -> [.data.table
Execution halted
Flavor: r-devel-windows-x86_64
Version: 2.1-3
Check: tests
Result: ERROR
Running 'testthat.R' [56s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(gtfs2gps)
gtfs2gps version 2.1-3 is now loaded
>
> test_check("gtfs2gps")
Saving _problems/test_gps_as_sflinestring-12.R
Saving _problems/test_simplify_shapes-7.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 114 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_gps_as_sflinestring.R:12:3'): gps_as_sflinestring ──────────────
Error in ``[.data.table`(dt, , `:=`(numbers, .N), by = .(shape_id, trip_id, stop_id, stop_sequence, trip_number))`: attempt access index 15/15 in VECTOR_ELT
Backtrace:
▆
1. └─gtfs2gps::gps_as_sflinestring(for_gps) at test_gps_as_sflinestring.R:12:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_simplify_shapes.R:7:5'): simplify_shapes ───────────────────────
Error in ``[.data.table`(gtfs_st_simpl, , `:=`(shape_pt_sequence, 1:.N), by = shape_id)`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─gtfs2gps:::simplify_shapes(poa, 1e-05) at test_simplify_shapes.R:7:5
2. ├─gtfs_st_simpl[, `:=`(shape_pt_sequence, 1:.N), by = shape_id]
3. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 114 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 2.1-3
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'intro_to_gtfs2gps.Rmd' using rmarkdown
Quitting from intro_to_gtfs2gps.Rmd:80-93 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 14/14 in VECTOR_ELT
---
Backtrace:
▆
1. └─gtfs2gps::gps_as_sflinestring(poa_gps60)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'intro_to_gtfs2gps.Rmd' failed with diagnostics:
attempt access index 14/14 in VECTOR_ELT
--- failed re-building 'intro_to_gtfs2gps.Rmd'
SUMMARY: processing the following file failed:
'intro_to_gtfs2gps.Rmd'
Error: Vignette re-building failed.
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.