- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘gtfstools/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘gtfstools’ version ‘1.4.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] 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 serialization versions ... OK
- checking whether package ‘gtfstools’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘g++-15 (Debian 15.2.0-11) 15.2.0’
- 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [7s/9s] 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 ... [1s/2s] ERROR
Running examples in ‘gtfstools-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: convert_sf_to_shapes
> ### Title: Convert a simple feature object into a 'shapes' table
> ### Aliases: convert_sf_to_shapes
>
> ### ** Examples
>
> ## Don't show:
> old_dt_threads <- data.table::setDTthreads(1)
> on.exit(data.table::setDTthreads(old_dt_threads), add = TRUE)
> ## End(Don't show)
> data_path <- system.file("extdata/spo_gtfs.zip", package = "gtfstools")
> gtfs <- read_gtfs(data_path)
>
> # first converting existing shapes table into a sf object
> shapes_sf <- convert_shapes_to_sf(gtfs)
> head(shapes_sf)
Simple feature collection with 6 features and 1 field
Geometry type: LINESTRING
Dimension: XY
Bounding box: xmin: -46.98404 ymin: -23.73644 xmax: -46.63535 ymax: -23.19474
Geodetic CRS: WGS 84
shape_id geometry
1 17846 LINESTRING (-46.63535 -23.5...
2 17847 LINESTRING (-46.87255 -23.1...
3 17848 LINESTRING (-46.64073 -23.5...
4 17849 LINESTRING (-46.98404 -23.5...
5 17850 LINESTRING (-46.77604 -23.5...
6 17851 LINESTRING (-46.69711 -23.7...
>
> # by default converts all shapes
> result <- convert_sf_to_shapes(shapes_sf)
Error in `[.data.table`(shapes_points, , `:=`(shape_dist_traveled, cumsum(dist_to_prev_point)), :
attempt access index 3/3 in VECTOR_ELT
Calls: convert_sf_to_shapes -> calculate_shape_dist_traveled -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [1s/1s] OK
Running ‘testthat.R’ [0s/1s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [10s/16s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘filtering.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘filtering.Rmd’
--- re-building ‘gtfstools.Rmd’ using rmarkdown
Quitting from gtfstools.Rmd:119-125 [unnamed-chunk-9]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 9/9 in VECTOR_ELT
---
Backtrace:
▆
1. └─gtfstools::get_trip_segment_duration(spo_gtfs, unit = "s")
2. ├─durations[, `:=`(segment, seq.int(1, .N, length.out = .N)), by = trip_id]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'gtfstools.Rmd' failed with diagnostics:
attempt access index 9/9 in VECTOR_ELT
--- failed re-building ‘gtfstools.Rmd’
--- re-building ‘validating.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘validating.Rmd’
SUMMARY: processing the following file failed:
‘gtfstools.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [2s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs