From de7664b3b434b94f470c83cff998d38cee6b9814 Mon Sep 17 00:00:00 2001 From: Pat Johnson Date: Fri, 25 Oct 2024 12:02:02 -0500 Subject: [PATCH] bug: warning message in new R versions on row bind --- DESCRIPTION | 2 +- R/dx_forest.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index bb3580c..a6449a0 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: diagnosticSummary Title: Diagnostic Summaries -Version: 0.0.2.10 +Version: 0.0.2.11 Authors@R: c(person(given = "Pat", family = "Johnson", diff --git a/R/dx_forest.R b/R/dx_forest.R index a489095..aa009fc 100755 --- a/R/dx_forest.R +++ b/R/dx_forest.R @@ -165,7 +165,7 @@ dx_plot_forest <- function(dx_obj, fraction = FALSE, breaks = NA, limits = NA, tbl_data <- tbl_data[order] rownames(tbl_data) <- NULL - tbl_data <- rbind_all(tbl_data, NA) + tbl_data[nrow(tbl_data) + 1, ] <- NA tbl_data[is.na(tbl_data)] <- ""