knitr logo

RStudio knitr support in RStudio

The knitr support in RStudio was added since 0.96. You can download the latest version and enjoy the one-click PDF compilation in RStudio through knitr.

You are free to choose different engines to knit or weave the document, such as Sweave or knitr (please note the default is Sweave and you may want to change it to knitr), and you can also use different LaTeX backends such as pdflatex or xelatex.

Remember you do not have to use LaTeX; I encourage you to try R Markdown there, which is much easier to learn and use than LaTeX.