I’m using an RMarkdown document that knits to a Word document. I want to include a footer in the Word doc that contains some dynamic information.
I am using a Word reference document in the RMarkdown file. I’ve added a footer to the WordStyles_Reference.docx. I’ve added some static text to the footer. I’ve tried adding a R variable to the footer.
r footer_variable. When the RMarkdown doc knits to the Word doc, the footer is present with the static text but the R variable does not display. The R variable does not get evaluated. I see only the text
Is there a way to do what I want to do? Have a RMarkdown doc knit to a Word document which contains a footer with dynamic information?