Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Aug 30, 2024
1 parent 25caf4e commit 4e1db3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/standalone-utils-assert.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ assert_integer <- function(x, name = deparse(substitute(x)),
}
if (!isTRUE(all.equal(x, rx, tolerance = tolerance))) {
cli::cli_abort(
c("Exected '{name}' to be integer",
c("Expected '{name}' to be integer",
i = paste("{cli::qty(length(x))}The provided",
"{?value was/values were} numeric, but not very close",
"to integer values")),
arg = arg, call = call)
}
x <- as.integer(rx)
} else {
cli::cli_abort("Exected '{name}' to be integer", call = call, arg = arg)
cli::cli_abort("Expected '{name}' to be integer", call = call, arg = arg)
}
invisible(x)
}
Expand Down

0 comments on commit 4e1db3f

Please sign in to comment.