Reputation: 2425
I'm using the knitr package with RStudio and want to write the following expression as text in my output pdf file:
\Sexpr{pi}
I tried the LaTeX math mode:
$\Sexpr{pi}$
but it will give me the value and not the text.
Upvotes: 2
Views: 168