Skip to content

Commit

Permalink
Correct .cross_check_vaccination(), WIP #175
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikunterwegs committed Mar 11, 2024
1 parent 0503135 commit 9e94845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,12 @@ test_recyclable <- function(x) {
#' @param doses A single number for the expected number of doses.
#'
#' @return Returns `x` after checking that it is suitable for `population`, or
#' a dummy vaccination regime.
#' a dummy vaccination regime with `doses` number of doses for each age group.
#' @keywords internal
.cross_check_vaccination <- function(x, population, doses) {
# no input checking as this is an internal function
if (is.null(x)) {
no_vaccination(population)
no_vaccination(population, doses = doses)
} else {
assert_vaccination(x, doses = doses, population)
x
Expand Down
2 changes: 1 addition & 1 deletion man/dot-cross_check_vaccination.Rd

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

0 comments on commit 9e94845

Please sign in to comment.