Chapter 16 Known Issues
16.1 PDF issues
16.1.1 wrap text and merged cells
Text does not wrap when cells are merged vertically.
ft <- flextable(data.frame(
a = c("blah","blah blah blah blah blah blah blah", "blah"),
b = c("blah","blah", "blah")
)
)
ft <- merge_at(ft, i = 2:3, j = 1)
theme_box(ft)a |
b |
|---|---|
blah |
blah |
blah blah blah blah blah blah blah |
blah |
blah |
16.2 compose in purrr and flextable
There is a name conflict between the package purrr and flextable with the
function named compose. To resolve this, either you need to add the namespace
in front of the name (flextable::compose), or you need to use the mk_par()
function, which is simply another name of flextable::compose.