How to align an image in Rmarkdown doc that knits to Word

I want to include an image in an Rmarkdown doc that knits to Word. I'm using the following code in the Rmd file:

reference_docx: WordStyles_Reference.docx

!(r logo)

This adds the image to the Word doc aligned to the left. How do I make the image aligned to the right? So it shows up on the right side of the Word doc.

I believe this has to do with Docx Style maybe ? Did you try changing this in your reference docx document ?

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.