From 02e52197aee5e6a3f48c9f81d403cd9b2f533251 Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Wed, 31 Jul 2024 12:59:41 +0100 Subject: [PATCH] Remove line that relies on suggested pkg rsgeo, close #563 --- R/linefuns.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/linefuns.R b/R/linefuns.R index 88ba02a6..6ca2571b 100644 --- a/R/linefuns.R +++ b/R/linefuns.R @@ -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