Running examples in ‘gtfs2gps-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: adjust_speed
> ### Title: Adjust the speeds of a gps-like table created with 'gtfs2gps'
> ### Aliases: adjust_speed
> 
> ### ** Examples
> 
> library(magrittr)
> poa <- read_gtfs(system.file("extdata/poa.zip", package="gtfs2gps")) %>%
+   gtfstools::filter_by_shape_id("T2-1") %>%
+   gtfstools::filter_by_weekday(c("monday", "wednesday")) %>%
+   filter_single_trip()
Unzipped the following files to /tmp/RtmpSan3BO/gtfsio:
  * agency.txt
  * calendar.txt
  * routes.txt
  * shapes.txt
  * stop_times.txt
  * stops.txt
  * trips.txt
Reading agency.txt
Reading calendar.txt
Reading routes.txt
Reading shapes.txt
Reading stop_times.txt
Reading stops.txt
Reading trips.txt
> 
> poa_gps <- gtfs2gps(poa)
Converting shapes to sf objects
Using 1 CPU cores
Processing the data

Attaching package: ‘purrr’

The following object is masked from ‘package:magrittr’:

    set_names


Attaching package: ‘data.table’

The following object is masked from ‘package:purrr’:

    transpose

Linking to GEOS 3.11.1, GDAL 3.6.2, PROJ 9.1.1; sf_use_s2() is TRUE
udunits database from /usr/share/xml/udunits/udunits2.xml
Some internal bug occurred while processing gtfs data.
Please give us a feedback by creating a GitHub issue
(https://github.com/ipeaGIT/gtfs2gps/issues/new)
and attaching a subset of your data created from the
code below:
################################################
$message
[1] "geometries - Expecting an integer vector for indexing"

$call
NULL

$cppstack

  1 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/sfheaders/libs/sfheaders.so(void Rcpp::stop<>(char const*)+0x37) [0x7f52ba5497d7]
   2 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/sfheaders/libs/sfheaders.so(sfheaders::cast::cast_sf(Rcpp::DataFrame_Impl<Rcpp::PreserveStorage>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool)+0x8ff) [0x7f52ba54f1ff]
   3 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/sfheaders/libs/sfheaders.so(rcpp_cast_sf(Rcpp::DataFrame_Impl<Rcpp::PreserveStorage>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)+0x19) [0x7f52ba54de69]
   4 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/sfheaders/libs/sfheaders.so(_sfheaders_rcpp_cast_sf+0x109) [0x7f52ba5325e9]
   5 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfb000) [0x7f52da4fb000]
   6 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14cc7f) [0x7f52da54cc7f]
   7 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   8 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   9 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   10 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   11 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   12 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   13 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   14 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   15 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   16 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   17 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   18 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   19 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   20 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14e588) [0x7f52da54e588]
   21 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14f206) [0x7f52da54f206]
   22 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1374f3) [0x7f52da5374f3]
   23 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   24 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14e588) [0x7f52da54e588]
   25 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14f206) [0x7f52da54f206]
   26 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1374f3) [0x7f52da5374f3]
   27 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   28 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14e588) [0x7f52da54e588]
   29 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14f206) [0x7f52da54f206]
   30 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1374f3) [0x7f52da5374f3]
   31 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   32 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14e588) [0x7f52da54e588]
   33 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14f206) [0x7f52da54f206]
   34 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1374f3) [0x7f52da5374f3]
   35 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   36 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   37 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   38 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   39 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   40 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   41 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   42 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   43 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   44 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   45 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   46 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   47 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   48 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   49 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   50 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   51 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   52 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   53 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   54 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x4c2) [0x7f52da5335d2]
   55 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x157cc9) [0x7f52da557cc9]
   56 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x415) [0x7f52da533525]
   57 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x15784b) [0x7f52da55784b]
   58 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x415) [0x7f52da533525]
   59 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   60 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   61 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(R_forceAndCall+0x200) [0x7f52da555b20]
   62 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/purrr/libs/purrr.so(+0x5533) [0x7f52ba1fa533]
   63 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/purrr/libs/purrr.so(+0x5854) [0x7f52ba1fa854]
   64 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfc7cc) [0x7f52da4fc7cc]
   65 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xfd34c) [0x7f52da4fd34c]
   66 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x61b) [0x7f52da53372b]
   67 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/purrr/libs/purrr.so(+0x38ea) [0x7f52ba1f88ea]
   68 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(R_ExecWithCleanup+0x1a4) [0x7f52da4e22c4]
   69 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/purrr/libs/purrr.so(+0x3777) [0x7f52ba1f8777]
   70 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0xf9ba9) [0x7f52da4f9ba9]
   71 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14cc7f) [0x7f52da54cc7f]
   72 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   73 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   74 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   75 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   76 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   77 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14e588) [0x7f52da54e588]
   78 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14f206) [0x7f52da54f206]
   79 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1374f3) [0x7f52da5374f3]
   80 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   81 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14e588) [0x7f52da54e588]
   82 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x14f206) [0x7f52da54f206]
   83 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x1374f3) [0x7f52da5374f3]
   84 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   85 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   86 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   87 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   88 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   89 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   90 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   91 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   92 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   93 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   94 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   95 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x13a215) [0x7f52da53a215]
   96 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x204) [0x7f52da533314]
   97 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(+0x154cea) [0x7f52da554cea]
   98 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_applyClosure+0x1e2) [0x7f52da54ee52]
   99 : /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libR.so(Rf_eval+0x4c2) [0x7f52da5335d2]

ids <- c('T2-1')
data <- gtfstools::filter_by_shape_id(poa, ids)
gtfs2gps::write_gtfs(data, 'shapes_with_error.zip')
################################################
0 out of 1 shapes (0%) were properly processed.
0 out of 1 trips (0%) were properly processed.
Error in Ops.units(output$speed, units::set_units(0, "km/h")) : 
  both operands of the expression should be "units" objects
Calls: gtfs2gps -> unique -> which -> Ops.units
Execution halted