Skip to content
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

Bug: value > 1e7 in combination with NA value gives error #36

Closed
edwindj opened this issue Apr 5, 2022 · 0 comments
Closed

Bug: value > 1e7 in combination with NA value gives error #36

edwindj opened this issue Apr 5, 2022 · 0 comments

Comments

@edwindj
Copy link
Member

edwindj commented Apr 5, 2022

Thanks to Ramon Reinders for reporting the following bug

library(errorlocate)
data <- iris[1,]
data$Petal.Width <- NA_real_
data$Petal.Length <- 1e7 + 1

rules <- validator(Petal.Width > 0, Petal.Length > 0)
try(locate_errors(data, rules))
Error in `[.data.frame`(data, nv) : undefined columns selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant