Skip to content

Commit

Permalink
Merge pull request #175 from mrc-ide/match_value_name
Browse files Browse the repository at this point in the history
Propagate name parameter in match_value.
  • Loading branch information
richfitz authored Sep 5, 2024
2 parents 859fbd3 + fd773ca commit f580aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: orderly2
Title: Orderly Next Generation
Version: 1.99.32
Version: 1.99.33
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "[email protected]"),
person("Robert", "Ashton", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion R/util_assert.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ assert_directory_does_not_exist <- function(x, name = "Directory", arg = NULL,

match_value <- function(x, choices, name = deparse(substitute(x)),
arg = name, call = NULL) {
assert_scalar_character(x, call = call, arg = arg)
assert_scalar_character(x, name = name, arg = arg, call = call)
if (!(x %in% choices)) {
cli::cli_abort(
c("'{name}' must be one of {collapseq(choices)}",
Expand Down

0 comments on commit f580aff

Please sign in to comment.