Closed ddsjoberg closed 2 years ago
OK, this comes if you call ftExtra::as_paragraph_md(cell, .from = "commonmark+strikeout")
with an empty cell. Seems like a bug in ftExtra, I'll head over there.
The workaround for now would be to replace the last line with:
huxtable::set_markdown(
row = 1L, col = 2L,
value = TRUE
)
or more generally, only use set_markdown
on non-empty cells.
Fixed in ftExtra.
Hey hey!
A user of gtsummary encountered an error when they specified a blank column header with Word output.
The header row is added with with
insert_row()
, and that is followed byset_markdown()
and the error occurs inset_markdown()
.Here's an example, thanks!
Quitting from lines 15-23 (reprex_huxtable.Rmd) Error in rep(list(flatten_branch), n) : invalid 'times' argument Calls: ... lapply -> flatten_ast -> -> map -> list2
Execution halted