I am trying to add a flextable to a word document at a given bookmark.
I have created a flextable which I can display correctly and also insert it at the word document, though I want it to be included at the bookmark "Tabla33" position
Though I got the following error.
Error in xpath_search(x$node, x$doc, xpath = xpath, nsMap = ns, num_results = 1) :
Expecting a single string value: [type=character; extent=10].
Here is the code I am using.
BKM<-read_docx( "myword_document.docx") %>%
officer::cursor_reach("Table33"); doc<-read_docx( "myword_document.docx") %>%
body_replace_flextable_at_bkm( BKM, value = Tabla33, align = "center")