Closed cataclysmic closed 1 year ago
library(flextable)
img.file <- file.path( R.home("doc"),
"html", "logo.jpg" )
as_flextable(iris) |>
append_chunks(part = "header", as_image(src = img.file),
j = 2:3, i = 1)
Below an example. I can add a specific section to doc but that's hard to illustrate all questions. The links below shows how it works. A flextable has parts, each part can be modify with mk_par()
or append_chunk()
, a chunk can be an image.
https://ardata-fr.github.io/flextable-book/cell-content.html#function-mk_par
https://ardata-fr.github.io/flextable-book/cell-content.html#append-or-prepend-content
https://ardata-fr.github.io/flextable-book/cell-content.html#images
https://ardata-fr.github.io/flextable-book/table-design.html#table-parts
Sorry for the fuzz. Thank you so much.
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.
Hey maintainers,
I couldn't find a way to replace column headers with images/icons. It'd be great i you could implement this feature. Or add it to the documentation if already possible.
Thx in advance.