From a355421fcf281dcb677f7e768c22d7e4fc556a79 Mon Sep 17 00:00:00 2001 From: Michael Sumner Date: Fri, 10 May 2024 03:01:23 +0000 Subject: [PATCH 1/2] augment 'cheap' warn message with named measures --- R/utils.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index 5e6a547..a2c7d02 100644 --- a/R/utils.R +++ b/R/utils.R @@ -183,7 +183,8 @@ check_max_d <- function (d, measure) { message ( "Maximum distance is > 100km. The 'cheap' measure is ", "inaccurate over such\nlarge distances, you'd likely ", - "be better using a different 'measure'." + "be better using a different 'measure', \n", + "one of 'haversine', 'vincenty', or 'geodesic' " ) } } From 8072c0999dc798d38d428ff99ea7d44141720e39 Mon Sep 17 00:00:00 2001 From: Michael Sumner Date: Fri, 10 May 2024 03:05:56 +0000 Subject: [PATCH 2/2] full stop --- R/utils.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index a2c7d02..8daccf4 100644 --- a/R/utils.R +++ b/R/utils.R @@ -184,7 +184,7 @@ check_max_d <- function (d, measure) { "Maximum distance is > 100km. The 'cheap' measure is ", "inaccurate over such\nlarge distances, you'd likely ", "be better using a different 'measure', \n", - "one of 'haversine', 'vincenty', or 'geodesic' " + "one of 'haversine', 'vincenty', or 'geodesic'. " ) } }