Sign inSign up

csdaw/rproj-template

By csdaw

•Updated about 6 years ago

Template for my own containerised reproducible R projects

Image
0

10K+

csdaw/rproj-template repository overview

⁠rproj-template

Docker Pulls Docker Image Size (tag) dockerfile base

This image contains all the components required to fully reproduce a fake analysis Rmarkdown document analysis.Rmd. See the Dockerfile source GitHub repo above for more details.

The image represents a template for my own containerised reproducible R projects, constructed using using renv, make, and docker. Ultimately, only docker (and optionally make) is required to reproduce the results of the fake analysis.

⁠How to reproduce the analysis document?

⁠Quick way

Only requires docker installed.

  1. Pull the rproj-template docker image from here with docker pull csdaw/rproj-template
  2. Navigate to the directory you want the results/ folder to be
  3. Launch a docker container with the current directory mounted and knit analysis.Rmd, for example using this command:
docker run -dt -v $PWD/results/:/home/analysis/results csdaw/rproj-template \
Rscript -e 'rmarkdown::render("/home/analysis/analysis.Rmd", output_dir = "results/")'

Tag summary

Content type

Image

Digest

Size

507.3 MB

Last updated

about 6 years ago

docker pull csdaw/rproj-template