Back when I was using sweave, I could make my inline code look like R code by using \texttt{whatever}
or \verb@whatever@
. I am trying out knitr, and the format of the code chunks sure is pretty. But how do I get the format of the inline code to match the code chunks? Mostly I want to say things like
The \someformattingcommand{lm} function fits linear regression models $y = X'\beta+\epsilon$
What is that formatting command?