Session 5: Creating basic R workflows and literate programming

Basics of project-oriented workflows

This session demonstrates the basics of project-oriented workflows and introduces literate programming in R.

In this session, the students will be taught and guided through creating basic R workflows with a focus on using a project-oriented approach in building scientific analysis workflows. The students will then be introduced to literate programming in R and the tools, packages, and techniques used to convert raw code workflows into those that combine content and data analysis code.

Further Reading

  • Bryan J and Hester J. Project-oriented workflow. In What they forgot to teach you about R. https://rstats.wtf/project-oriented-workflow.html

  • Shepperd M. Literate programming and RMarkdown. In CS5701 Modern Data Book. https://bookdown.org/martin_shepperd/ModernDataBook/C3-Literate.html

Teaching Material

Slides can be viewed here.

PDF version of slides can be downloaded here.

R scripts for slides available here.