I know I can set fig.align = 'center'
if I want to center my figure. But what if I want to center my output in a pdf document?
The following code worked for me.
\center Centered Text \center
And, if you need to put it in bold, as my case, you can use the underline (two at the beggining, two at the end):
\center __Centered Text__ \center