Skip to content

Commit

Permalink
don't use match.arg
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 27, 2024
1 parent e59f24a commit 39a456c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/get_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ get_data <- function(x, ...) {
}

# handle arguments
effects <- match.arg(effects, choices = c("all", "fixed", "random"))
component <- match.arg(
effects <- validate_argument(effects, c("all", "fixed", "random"))
component <- validate_argument(
component,
choices = c("all", "conditional", "zero_inflated", "zi", "smooth_terms", "dispersion")
c("all", "conditional", "zero_inflated", "zi", "smooth_terms", "dispersion")
)

# we want to add the variable for subsettig, too
Expand Down

0 comments on commit 39a456c

Please sign in to comment.