Fixed the inline R code regex. Followed the knitr.tmbundle inline syntax (\Sexpr{r code})