Moving \SweaveOpts to after \begin{document}

When compiling on RStudio, I had to have the
\SweaveOpts{concordance=TRUE} command after the \begin{document} because
it appears that in the tex file produced the \usepackage{Sweave} command
is placed right before the \begin{document}