Running examples in 'track2KBA-Ex.R' failed
The error most likely occurred in:

> ### Name: mapTrips
> ### Title: Make simple maps of foraging trips
> ### Aliases: mapTrips
> 
> ### ** Examples
> 
> ## make some play data
> dataGroup <- data.frame(Longitude = rep(c(1:10, 10:1), 2), 
+                         Latitude =  rep(c(1:10, 10:1), 2),
+                         ID = c(rep("A", 20), rep("B", 20)),
+                         DateTime = as.character(
+                         lubridate::ymd_hms("2021-01-01 00:00:00") +
+                         lubridate::hours(0:19))
+ )
> colony <- data.frame(
+  Longitude = dataGroup$Longitude[1], Latitude = dataGroup$Latitude[1]
+ )
> Trips <- tripSplit(dataGroup,
+                    colony=colony,
+                    innerBuff=2,
+                    returnBuff=20,
+                    duration=1,
+                    nests = FALSE,
+                    rmNonTrip = TRUE
+ )
> ## Visualize trips
> mapTrips(Trips, colony)                   # add colony location to each facet
Trips colored by completeness. Indicate colorBy=='trip' to color by
    trips.
Error in `dplyr::mutate()`:
i In argument: `colID = as.character(x = factor(x = .data$tripID, labels
  = seq_len(length.out = n_distinct(x = .data$tripID))))`.
i In group 1: `ID = "A"`.
Caused by error in `n_distinct()`:
! Arguments in `...` must be passed by position, not name.
x Problematic argument:
* x = tripID
Backtrace:
     x
  1. +-track2KBA::mapTrips(Trips, colony)
  2. | \-... %>% ...
  3. +-dplyr::mutate(...)
  4. +-dplyr:::mutate.data.frame(...)
  5. | \-dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  6. |   +-base::withCallingHandlers(...)
  7. |   \-dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  8. |     \-mask$eval_all_mutate(quo)
  9. |       \-dplyr (local) eval()
 10. +-base::factor(x = .data$tripID, labels = seq_len(length.out = n_distinct(x = .data$tripID)))
 11. \-dplyr::n_distinct(x = .data$tripID)
 12.   \-rlang::check_dots_unnamed()
 13.     \-rlang:::action_dots(...)
 14.       +-base (local) try_dots(...)
 15.       \-rlang (local) action(...)
Execution halted