Skip to content

Commit

Permalink
Merge pull request #229 from mhpob/dev-no-units-dep
Browse files Browse the repository at this point in the history
Remove dependency on `units`
  • Loading branch information
chrisholbrook authored Aug 14, 2024
2 parents f9a65ca + 2816146 commit d4d106f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Imports:
sp,
tibble,
tidyr,
units,
zip
Suggests:
gganimate,
Expand Down
2 changes: 1 addition & 1 deletion R/vis-make_transition3.r
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ make_transition3 <- function(poly, res = c(0.1, 0.1), receiver_points = NULL, ep
recs_gl <- sf::st_transform(receiver_points, crs = epsg)

# determine shortest distance from receiver to water polygon
dist_rec <- units::drop_units(sf::st_distance(recs_gl, poly_gl))
dist_rec <- as.matrix(sf::st_distance(recs_gl, poly_gl))
recs_gl$rec_water_dist <- apply(dist_rec, 1, "min")

# extract rec_water_dist > 0
Expand Down

0 comments on commit d4d106f

Please sign in to comment.