Skip to content

Commit 1049df5

Browse files
committed
Use message instead of table for the report
1 parent 22ad706 commit 1049df5

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

R/tm_outliers.R

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -744,15 +744,9 @@ srv_outliers <- function(id, data, outlier_var,
744744
table
745745
})
746746
} else {
747-
warning("No categorical variable selected, summary table cannot be created")
748-
within(qenv, {
749-
table <- rtables::rtable(
750-
header = "",
751-
rtables::rrow("", "Null Report: No summary of observations available."),
752-
inset = 2L
753-
)
754-
table
755-
})
747+
msg <- "No categorical variable selected, summary table cannot be created."
748+
warning(msg)
749+
within(qenv, cat(msg), msg = msg)
756750
}
757751

758752

0 commit comments

Comments
 (0)