I'd like to include a paragraph containing a Word computed field inside a table. Is that possible somehow? Some failed attempts: ``` r library(officer) library(flextable) library(tibble) # For sane creation of list columns. page_par <- fpar("Page ", run_word_field("PAGE")) read_docx() |> body_add_fpar(page_par) |> body_add_table( tibble(page_info = list(page_par)) ) |> body_add_flextable( tibble(page_info = list(page_par)) |> flextable() ) |> print(target = "foo.docx") browseURL("foo.docx") # unlink("foo.docx") ```
Activity
davidgohel commentedon Aug 12, 2025
Yes,
This is the documentation https://davidgohel.github.io/flextable/reference/as_word_field.html
and a copy of an example of this help page: