From 7397d78b716ae8a6e387bad5a64324fb9d26bdf3 Mon Sep 17 00:00:00 2001 From: Anna Krystalli Date: Thu, 21 Nov 2024 16:57:25 +0200 Subject: [PATCH] sanity setting to ensure df class is never dropped --- R/check_tbl_values_required.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/check_tbl_values_required.R b/R/check_tbl_values_required.R index c3809de9..a08c11d5 100644 --- a/R/check_tbl_values_required.R +++ b/R/check_tbl_values_required.R @@ -210,7 +210,7 @@ missing_req_rows <- function(opt_cols, x, mask, req, full) { unique(x[, opt_cols]) )[, names(x)] } else { - full[0L, names(x)] + full[0L, names(x), drop = FALSE] } }