Data Science Desktop Survival Guide
by Graham Williams
RStudio with KnitR
20200602 In creating a new knitr document within the minimal LaTeX markup is inserted. To do so, create a new R Sweave document under the File menu, informing to use knitr which is an advanced version of Sweave. Under the Tools menu choose Global Options and then Sweave to set the Weave option to be knitr. We can see the context below. The file contains the following minimal LaTeX code.
Into this file we will begin entering the LaTeX commands and the text of our narrative and the R code. We enter text to describe our project between the begin and end of the document and then choose the Compile PDF button on the toolbar to generate a PDF document that we can view.