Using the older ReporteRs package, it looks like it was possible to specify a Word template with code like:
doc <- docx(template = "your template.docx")
Is it possible to specify a Word template using the newer officer package? It may be in the documentation but I don't see it. A workaround might be to read the file I want to use as a template, to delete all the content, and then to add new output to the empty file. I wouldn't want to try something like that though if it's possible just to specify a template.
Thanks.
Yes; you can open a connection to a docx template with doc <- read_docx(*your template file name here*)
.