- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘gtfs2gps/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘gtfs2gps’ version ‘2.1-3’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- 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 ‘gtfs2gps’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 21.1.7 (1)’
- 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 ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [1s/2s] 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 ... [9s/12s] OK
- checking Rd files ... [0s/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 line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [7s/9s] ERROR
Running examples in ‘gtfs2gps-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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 /home/hornik/tmp/scratch/RtmpzRxU5b/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
- checking for unstated dependencies in ‘demo’ ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [80s/84s] ERROR
Running ‘testthat.R’ [80s/84s]
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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [12s/14s] 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
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs