I see there's a function in flextable package, namely fp_text_default
. In help files to this function the only example you can find is
fp_text_default(bold = TRUE)
I was wondering if I can use this function to avoid setting font.size=11
everytime I use custom formatting in my flextables, e.g.
flextable(df) %>%
compose(value = as_paragraph(
as_chunk("foo", props = fp_text(shading.color = "orange", font.size=11))
)) %>%
compose(value = as_paragraph(
as_chunk("bar", props = fp_text(bold = TRUE, font.size=11))
))
The default font.size param in fp_text
is 10 and I always have to set it to 11.
Can fp_text_default
be used to set font.size to 11 permaently?