3.2 Open a new knitR document

  1. Under the RStudio File menu, select New File > R Notebook.

  2. In the first line next to Title, replace the “R Notebook” with an appropriate title.

  3. Save the file.

  4. If you are not already familiar with the knitR Markdown syntax, click on Help > Markdown Quick Reference.

  5. Once you have made some changes, save it using the disk icon, then click on the Preview button to generate and preview your HTML report. As we are using an Rstudio version, a window may pop up, click on Try again to enable the preview window to appear. Alternatively, if you click on the little arrow next to the Preview button, you can choose to what format you want to knit (render) your notebook: PDF, HTML or even WORD.

Tip: to turn of preivew mode but still knit your document, click on the cogwheel > (No Preview)

  1. Try some of the Markdown syntax shown in the Markdown Quick Reference.

For the rest of this workshop, try to incorporate all the exercises that we do, along with comments and notes, into an RNotebook (or other knitR documents). You may want to create new documents for different chapters or exercises. The goal is that at the end of the workshop, you will be able to produce a final, reproducible report of all the analyses that you have done.