I want to center an image and/or text using R Markdown and knit a PDF report out of it.
I have tried using:
->Text<- -><-
You can set the center (or other) alignment for the whole document as a Knitr option, using:
knitr::opts_chunk$set(echo = TRUE, fig.align="center")