Closed egnha closed 7 years ago
Example:
validate(mtcars, vld_all(~sapply(., is.numeric)), ~{nrow(.) > 1000}, vld_all(~c("mpg", "cylinders") %in% names(.))) #> Error: validate(. = .) #> 1) FALSE: (function(.) {nrow(.) > 1000})(.) #> 2) Not all TRUE: c("mpg", "cylinders") %in% names(.)
The error message should display the data frame (mtcars), rather than simply .. (It will be tricky to get this to work in a magrittr %>%-line, because of the way magrittr reduces a chain of calls.)
mtcars
.
%>%
Example:
The error message should display the data frame (
mtcars
), rather than simply.
. (It will be tricky to get this to work in a magrittr%>%
-line, because of the way magrittr reduces a chain of calls.)