Skip to content

Commit

Permalink
check_direction: fix argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jan 16, 2025
1 parent 27e761b commit 4a4d4da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils-assert.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ check_stack_sizes <- function(sizes, arg = caller_arg(sizes),
#' @importFrom rlang arg_match0
check_direction <- function(direction, arg = caller_arg(direction),
call = caller_call()) {
direction <- arg_match0(direction, c("h", "v"), error_call = call)
direction <- arg_match0(direction, c("h", "v"),
arg_nm = arg, error_call = call
)
switch(direction,
h = "horizontal",
v = "vertical"
Expand Down

0 comments on commit 4a4d4da

Please sign in to comment.