From a0fe22a0f523262df918987f371afc73cd92fda7 Mon Sep 17 00:00:00 2001 From: Becca Krouse Date: Thu, 11 Apr 2024 15:39:44 -0400 Subject: [PATCH] make more robust --- R/print_to_gt.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/print_to_gt.R b/R/print_to_gt.R index 56642060..884d438d 100644 --- a/R/print_to_gt.R +++ b/R/print_to_gt.R @@ -448,7 +448,7 @@ convert_ws_unicode <- function(gt_table){ locations <- list(cells_body()) - if (any(!is.na(gt_table[["_stub_df"]]$row_id)) || any(!is.na(gt_table[["_stub_df"]]$group_id))){ + if (sum(c(!is.na(gt_table[["_stub_df"]]$row_id),!is.na(gt_table[["_stub_df"]]$group_id)) > 0)){ locations <- c(locations, list(cells_stub()))