Skip to content

Commit

Permalink
Remove line that relies on suggested pkg rsgeo, close #563
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Jul 31, 2024
1 parent 32c770c commit 02e5219
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/linefuns.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,9 @@ line_midpoint <- function(l, tolerance = NULL) {
#' }
#' # Check they have the same total length, to nearest mm:
#' # round(sum(st_length(l_seg_multi)), 3) == round(sum(st_length(rsmulti)), 3)
#' # With n_segments for 1 line:
#' # With n_segments for 1 line (set use_rsgeo to TRUE to use rsgeo):
#' l_seg_multi_n <- line_segment(l[1, ], n_segments = 3, use_rsgeo = FALSE)
#' l_seg_multi_n <- line_segment(l$geometry[1], n_segments = 3, use_rsgeo = FALSE)
#' l_seg_multi_n <- line_segment(l$geometry[1], n_segments = 3, use_rsgeo = TRUE)
#' # With n_segments for all 3 lines:
#' l_seg_multi_n <- line_segment(l, n_segments = 2)
#' nrow(l_seg_multi_n) == nrow(l) * 2
Expand Down

0 comments on commit 02e5219

Please sign in to comment.