MotusRBook `getGPS()' error on real data

I am trying to run getGPS() function using example from this section ‘5.5.3 Add GPS data’ in the Motus R book using our data. I cannot get it to work. In my example, df.247.alltags.sub is big (5,435,956 observations) but it does have posixt datetimes.

with gps_index <- getGPS(proj.247.sql.motus, data = df.247.alltags.sub, by = "closest") I get

Error: Problem with mutate() column gpsID.

i gpsID = purrr::map_int(...).

x can only subtract from “POSIXt” objects

Run rlang::last_error() to see where the error occurred.

with gps_index <- getGPS(proj.247.sql.motus, data = df.247.alltags.sub, by = "daily") I get

Error: Problem with mutate() column timeBin.

i timeBin = as.integer(.data$ts/by).

x ‘/’ not defined for “POSIXt” objects

Run rlang::last_error() to see where the error occurred.