RossDwyer / VTrack

V-Track: software for analysing and visualising animal movement from acoustic telemetry detections
https://cran.r-project.org/web/packages/VTrack/index.html
13 stars 5 forks source link

HRSummary(), a fix for a left_join error #25

Open lucaspgriffin opened 1 year ago

lucaspgriffin commented 1 year ago

Believe there is an issue occurring from dplyr updates.

Error in left_join(): ! ... must be empty. ✖ Problematic argument: • all.x = T

Error occurs at: full <- left_join(full, fullout, by = c("Tag.ID"), all.x = T)

To fix: full <- left_join(full, fullout, by = c("Tag.ID"))

lucaspgriffin commented 1 year ago

Update: issue was also resolved by downloading an older version of dplyr. However, the function used to produce RasterBricks but now is not, likely an issue with other updates from required packages.

devtools::install_github("tidyverse/dplyr@v1.0.0") packageVersion("dplyr")

Beyond manually changing functions (HRSummary and HRprocess), others could try reverting other versions of adehabitatHR, sp, or raster.

Karpfen108 commented 6 months ago

Thanks for the help, and fix! Without the workaround the error still persists in the code.

Using dpylr version 1.0.0 works to get the HRSummary(), however version >=1.0.10 is required to load tidyverse for the subsequent analysis.