Closed hughjonesd closed 11 months ago
Hello David
This is about border()
, I strongly advise to not use it but to use other functions dedicated for border management. See the manual for advised functions, here hline()
is totally fine.
https://davidgohel.github.io/flextable/reference/border.html
library(flextable)
ft <- flextable(mtcars[1:3, 1:3])
ft <- hline(ft, i = 2, j = 1, border = officer::fp_border(width = 1))
ft
save_as_html(ft, path = "tmp.html")
save_as_docx(ft, path = "tmp.docx")
KR, David
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Here's a minimal example. In the Rstudio internal HTML viewer, I see a border above the final row, first column. When I save as html (or other formats), I see that. But if I save as docx, the border doesn't appear.
This is with flextable 0.9.3 and R 4.3.0, on a Mac. (More info below.)
I thought this relates to huxtable issue: hughjonesd/huxtable#246. Now I'm not so sure because I get the same bug even when the
merge_at
line is commented out.Apologies if I'm misunderstanding something.