From 1d9dc9b2726c1eb8a5c5bbc0231e96bf7cdf2cc7 Mon Sep 17 00:00:00 2001 From: njtierney Date: Tue, 7 May 2024 14:31:24 +1000 Subject: [PATCH] don't specify na.rm = TRUE twice * This results in (effectively) fun(x, arg1 = TRUE, arg1 = TRUE), which will error --- R/b_summaries.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/b_summaries.R b/R/b_summaries.R index 6f33812..57a8afb 100644 --- a/R/b_summaries.R +++ b/R/b_summaries.R @@ -98,9 +98,9 @@ b_range <- function(x, ... ){ #' @name b_summaries #' @export b_range_diff <- function(x, ... ) { - diff(b_range(x, - na.rm = TRUE, - ...)) + the_range <- b_range(x, + ...) + diff(the_range) } #' @name b_summaries