davidgohel / flextable

table farming
https://ardata-fr.github.io/flextable-book/
565 stars 82 forks source link

Different result from the example #642

Closed alireza5969 closed 4 months ago

alireza5969 commented 5 months ago

The code that you provided for example for footnotes on this page returns a different output than the one that is on the webpage:

ft_3 <- flextable(head(iris))
ft_3 <- autofit(ft_3)
ft_3 <- footnote(
    x = ft_3, i = 1:3, j = 1:3,
    ref_symbols = "a",
    value = as_paragraph("This is footnote one")
)
ft_3

The output has 3 as in the footnote: image

I'm not sure why!

davidgohel commented 5 months ago

I have the same output. You are probably using an old version or another code (for ex, your table has a black background color)