How to add linbreaks to a table cell in officer in R

41 Views Asked by At

How can I add linebreaks inside a table cell in officer?

I see the post here that shows how to add paragraphs within the document, but not within table cells.

tbl = tibble(x = 'My first line\n my second line')

 read_docx() |>  
  body_add_table(tbl) |>
  print(target = "example.docx")

Does not recognize \n

0

There are 0 best solutions below