Thomas Williams builds a container image:
Running R Markdown via Docker is a big help with deploying those analysis and reports for others to use.
While there are alternatives for deploying R Markdown — the most popular being Shiny Server — they add the hassle of matching R and package versions to the machine where the code was developed, may require IT help, and mean sharing disk, CPU, and memory with other apps on the same server. And there’s also licensing requirements & limitations for the free version of Shiny Server.
R Markdown on Docker avoids some of these issues; a single Docker container = a single app.
Click through for a simple RMarkdown file and Dockerfile.