From 53b08a7042cdec2b6f32224cb844143aaf5ed9e2 Mon Sep 17 00:00:00 2001 From: Melkiades Date: Tue, 9 Jul 2024 18:32:22 +0200 Subject: [PATCH 1/3] fix --- NEWS.md | 1 + R/count_cumulative.R | 2 +- man/d_count_cumulative.Rd | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index f85ed6e9fc..c79062a4b3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,7 @@ ### Bug Fixes * Fixed a bug in `a_surv_time` that threw an error when split only has `"is_event"`. +* Added defaults for `d_count_cumulative` parameters as described in the documentation. * Empty levels on `g_lineplot` x-axis are not shown in either plots. * Fixed disappearing line in `g_lineplot` when using only one group or strata level. diff --git a/R/count_cumulative.R b/R/count_cumulative.R index eb48c8c0d5..b1485847d6 100644 --- a/R/count_cumulative.R +++ b/R/count_cumulative.R @@ -86,7 +86,7 @@ h_count_cumulative <- function(x, #' @return Labels for [s_count_cumulative()]. #' #' @export -d_count_cumulative <- function(threshold, lower_tail, include_eq) { +d_count_cumulative <- function(threshold, lower_tail = TRUE, include_eq = TRUE) { checkmate::assert_numeric(threshold) lg <- if (lower_tail) "<" else ">" eq <- if (include_eq) "=" else "" diff --git a/man/d_count_cumulative.Rd b/man/d_count_cumulative.Rd index 6be9db65be..98d272d21a 100644 --- a/man/d_count_cumulative.Rd +++ b/man/d_count_cumulative.Rd @@ -4,7 +4,7 @@ \alias{d_count_cumulative} \title{Description of cumulative count} \usage{ -d_count_cumulative(threshold, lower_tail, include_eq) +d_count_cumulative(threshold, lower_tail = TRUE, include_eq = TRUE) } \arguments{ \item{threshold}{(\code{numeric(1)})\cr a cutoff value as threshold to count values of \code{x}.} From 7296c2cd8617495841c1f6eded391c1802408c5a Mon Sep 17 00:00:00 2001 From: "27856297+dependabot-preview[bot]@users.noreply.github.com" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:36:39 +0000 Subject: [PATCH 2/3] [skip roxygen] [skip vbump] Roxygen Man Pages Auto Update --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 120bb19a5a..1ecbd6d2bb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -81,7 +81,7 @@ Encoding: UTF-8 Language: en-US LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Collate: 'formatting_functions.R' 'abnormal.R' From ff1bf2e7752a56222d0c4deec5406d8c2c2c40e1 Mon Sep 17 00:00:00 2001 From: Emily de la Rua Date: Tue, 9 Jul 2024 16:45:00 -0400 Subject: [PATCH 3/3] Empty commit