ipeaGIT/gtfstools

`{bit64}` required but not installed in recent builds

dhersz opened this issue · 2 comments

`{bit64}` required but not installed in recent builds

This is an spurious warning.

It's raised when reading Berlin's GTFS, because the stop_id field contains some very large numbers. But this field is actually read as character.

The warning is raised in this specific gtfsio line:

https://github.com/r-transit/gtfsio/blob/19684e3942892d2d1dd25c547b5a7c2116aaa9fb/R/import_gtfs.R#L279-L281

  sample_dt <- data.table::fread(file.path(tmpdir, file_txt), nrows = 1)

The "full" data.table is read with the correct column classes, but this one leaves data.table to guess how it should read. It then reads stop_id as integer, and the warning is raised. Adding colClasses = "character" to this line should resolve the issue.

I'll be closing this after the next gtfsio's CRAN submission.