From abc03dfba09999f2bed71c6bb6d1649ddd0d8c58 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Thu, 9 May 2024 16:18:17 +0200 Subject: [PATCH] Update --- template.qmd | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/template.qmd b/template.qmd index ef45193..d796b8f 100644 --- a/template.qmd +++ b/template.qmd @@ -230,12 +230,13 @@ if (require("covtracer", quietly = TRUE)) { dplyr::mutate(file = paste0("``` ", file, " ```")) %>% dplyr::select(`Exported package object` = alias, Documentation = file) - - tt( - tt_untested_df, - caption = "Untested behaviours: documentation that is not covered by any test.", - theme = "striped" - ) + if (nrow(tt_untested_df) > 0) { + tt( + tt_untested_df, + caption = "Untested behaviours: documentation that is not covered by any test.", + theme = "striped" + ) + } } else { cat("{covtracer} not available to produce a traceability matrix") }