Skip to content

Commit

Permalink
Remove vec_check_size
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesadler committed Mar 21, 2023
1 parent 5007a89 commit b47ab90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion R/lsd-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ new_lsd <- function(l = double(),
if (!rlang::is_integer(bases)) {
rlang::abort("`bases` must be an integer vector.")
}
vec_check_size(bases, size = 2L)
if (vec_size(bases) != 2L) {
rlang::abort("`bases` must be an integer vector of length 2.")
}

bases <- rlang::set_names(bases, c("s", "d"))

Expand Down
4 changes: 3 additions & 1 deletion R/tetra-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ new_tetra <- function(l = double(),
if (!rlang::is_integer(bases)) {
rlang::abort("`bases` must be an integer vector.")
}
vec_check_size(bases, size = 3L)
if (vec_size(bases) != 3L) {
rlang::abort("`bases` must be an integer vector of length 3.")
}

bases <- rlang::set_names(bases, c("s", "d", "f"))

Expand Down
2 changes: 1 addition & 1 deletion man/debkeepr-package.Rd

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

0 comments on commit b47ab90

Please sign in to comment.