All courses

Programming

R Markdown

Turn analysis into reproducible reports. Combine R, narrative and visualisations in HTML, Word and PDF outputs.

2 days Intermediate Tailored to your team

Overview

R Markdown provides a simple and reproducible way to provide data analysis, done in R, to end-users in various formats (e.g. HTML, PDF, Word, etc.) to suit them.

Before embarking on this course, you should have attended our “An Introduction to Programming with R” course.

What you’ll need

  • Laptop (minimum 16 GB RAM is recommended)
  • headphones and microphone
  • Microsoft Office (Word, Excel, PowerPoint)
  • Google Chrome or Microsoft Edge
  • R version 4.4.3 or later
  • RStudio (any version from 2025 or later)

Learning outcomes

Attendees will be able to import data from Excel or CSV, perform simple analysis on the data, and output their findings in a range of different document formats, such as HTML, PDF, or Word.

Course topics

  • What is R Markdown?
  • The process of creating and rendering a document
  • Component Technologies
    • A crash course in HTML
    • An introduction to Markdown (as created by John Gruber)
    • An introduction to YAML
    • R (a recap of key commands that will be used later)
  • Building your first R Markdown document (.Rmd)
  • Embedding R code in your document using knitr
    • Running code by line, in chunks or all at once.
  • Knit and Render documents in different formats (e.g. HTML, PDF, Word)
  • Inserting…
    • tables of data
    • charts and images
    • citations
    • math formulae (with LaTeX)
  • Using the Visual Markdown Editor in RStudio
  • Adding navigation to your markdown document
  • Choosing a theme
  • Publishing your document
  • Designing reports with accessibility in mind.
  • Integrating an R Markdown document into your company website.