Skip to content

Commit

Permalink
Merge pull request #389 from n-kall/master
Browse files Browse the repository at this point in the history
don't allow variables to contain NA values
  • Loading branch information
paul-buerkner authored Jan 7, 2025
2 parents 20e3aa1 + 6bf2a07 commit 797ab20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/variables.R
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ check_existing_variables <- function(variables, x, regex = FALSE,
return(NULL)
}

# do not allow NA values in variables
checkmate::assertCharacter(variables, any.missing = FALSE)

regex <- as_one_logical(regex)
scalar <- as_one_logical(scalar)
exclude <- as_one_logical(exclude)
Expand Down

0 comments on commit 797ab20

Please sign in to comment.