Skip to content
Prev 327114 / 398502 Next

Looking for knitr example for beginner (NO RStudio)

Hi Mike,

if you browse the folders, you find always the Rscript binary (the executable) under /Library/Frameworks/R.framework/Versions/.../Resources/Rscript. 

Do not forget to give your tex file the extension .Rnw! Then surround each Rcode with <<write here a name....add later further options (important one; results = 'asis')>>= Here your r code as you do it in the R shell .... at the end a @. Always inside the \begin{document} \end{document} tags.



Best

Simon
On Jul 18, 2013, at 10:22 PM, C W <tmrsg11 at gmail.com> wrote: