Skip to content

Commit

Permalink
refactor: explicit arguments in a check
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemetov committed Jan 29, 2024
1 parent 0e23601 commit 6de48eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-arg.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ arg_is_date <- function(..., allow_null = FALSE) {

arg_is_probabilities <- function(..., allow_null = FALSE, allow_na = FALSE) {
walk(list(...), function(x) {
assert_numeric(x, 0, 1, null.ok = allow_null, any.missing = allow_na)
assert_numeric(x, lower = 0, upper = 1, null.ok = allow_null, any.missing = allow_na)
})
}

Expand Down

0 comments on commit 6de48eb

Please sign in to comment.