Skip to content

Commit e580eab

Browse files
sbfnk-botsbfnk
andauthored
Fix benchmark comparison table rendering (#1399)
cat() defaults to joining with a single space, so knitr::kable() output was emitted as one line. Use sep = "\n" so each table row stays on its own line. Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
1 parent 2d45ab9 commit e580eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inst/dev/benchmark-compare.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if (any(changes$trend != "no change")) {
145145
cat(knitr::kable(
146146
format_output, align = "lrrrrr",
147147
caption = "Benchmarking results (mean time in seconds)."
148-
))
148+
), sep = "\n")
149149
cat("\n")
150150
if (length(output_lines) > 0) {
151151
cat(paste(output_lines, collapse = "\n"))

0 commit comments

Comments
 (0)