Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Hotfix up parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 25, 2024
1 parent 933959d commit 5960488
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/summarize_rtestimate.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ new_summarize <- function(
checkmate::assert_integer(date)
checkmate::assert_double(median)
checkmate::assert_double(lb)
checkmate::assert_double(up)
checkmate::assert_double(ub)
checkmate::assert_string(package)

# Checking the length
len_date <- length(date)
len_median <- length(median)
len_lb <- length(lb)
len_up <- length(up)
len_up <- length(ub)
if (len_date != len_median || len_date != len_lb || len_date != len_up) {
stop("The length of the date, median, lb, and ub should be the same.")
}
Expand Down Expand Up @@ -124,10 +124,10 @@ summarize_rtestimate.epinow <- function(x, level = 0.95, ...) {
#' @details The `estimate_R` method is for the `EpiEstim` package.
#' @rdname summarize_rtestimate
summarize_rtestimate.estimate_R <- function(x, ...) {

if (!requireNamespace("EpiEstim", quietly = TRUE)) {
cli::cli_abort("You must install the {.pkg EpiEstim} package for this functionality.")
}
checkmate::assert_number(level, lower = 0, upper = 1)

new_summarize(
date = x$R$t_end,
Expand Down
6 changes: 3 additions & 3 deletions man/new_summarize.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5960488

Please sign in to comment.