From bed81b5f6fd7a8d9837c464b51528b327c5b1553 Mon Sep 17 00:00:00 2001 From: John Benninghoff Date: Mon, 11 Nov 2024 21:48:27 -0600 Subject: [PATCH] Better variable order --- R/validation.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/validation.R b/R/validation.R index 1b1e128..8d93a0c 100644 --- a/R/validation.R +++ b/R/validation.R @@ -10,11 +10,11 @@ #' otherwise `TRUE`, invisibly. #' @export check_validation <- function(out, sheet = NA) { + pass <- TRUE warn_start <- "one or more validation rules " warn_loc <- "" - warn_end <- ", check validation results" - pass <- TRUE if (!is.na(sheet)) warn_loc <- paste0(" in sheet '", sheet, "'") + warn_end <- ", check validation results" val_sum <- validate::summary(out) if (any(val_sum$fails > 0)) {