-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional check functions #86
Conversation
) | ||
} | ||
|
||
# check_logical <- function(x, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
brulee has its own check_logical()
. The is temporary to avoid bringing in a lot of snapshots into this PR.
tests/testthat/test-checkers.R
Outdated
expect_silent(brulee:::check_number_whole_vec(variable)) | ||
expect_silent(brulee:::check_number_whole_vec(variable[1])) | ||
|
||
variable <- seq(0, 1, length.out = 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one demonstrates that you can get a whole number returned that is not an integer data type.
tests/testthat/test-checkers.R
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rename either this file or the corresponding R file so that they have the same slug? I.e. either checks
or checkers
but not both.
Oh, we reviewed both! 👀 |
But at least we didn't contradict each other 😂 |
Co-authored-by: Simon P. Couch <[email protected]>
Worth noting, that a |
Co-authored-by: Emil Hvitfeldt <[email protected]>
The rlang type checkers lack a few functions. This PR has three: one for a single vector and two to check numeric vectors.