Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_MABM_route not working with development tibble package #15

Open
adamdsmith opened this issue Aug 14, 2019 · 0 comments
Open

plot_MABM_route not working with development tibble package #15

adamdsmith opened this issue Aug 14, 2019 · 0 comments
Assignees

Comments

@adamdsmith
Copy link
Owner

adamdsmith commented Aug 14, 2019

This is not a problem with plot_MABM_route, but rather an apparent bug introduced in the development version of tibble. An issue has been filed there.

It relates specifically to this section of plot_MABM_route:

MABM/R/plot_MABM_route.R

Lines 71 to 78 in 764d88b

gps <- st_read(gps, quiet = TRUE)
calls <- st_read(calls, quiet = TRUE)
# Add elapsed time to GPS data set
gps <- mutate(gps,
# elapsed time since last fix
t_seg = c(0, diff(lubridate::decimal_date(lubridate::ymd_hms(dt)))) * 525960,
t_elapsed = round(cumsum(t_seg), 1))

dplyr::mutate, and tibble in particular, is not handling the sf geometry at the moment...

This is simply a waiting game which should be resolved soon.

@adamdsmith adamdsmith self-assigned this Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant