This repository contains some example code, used as during teaching of software carpentry bootcamps, e.g. nicercode.github.io/2016-02-01-ResBaz/lessons.
First install some dependencies from cran as follows:
install.packages(c("R6", "yaml", "digest", "crayon", "optparse", "storr", "devtools"))
Now we'll install some packages from github. For this, we'll use the package devtools, which we installed above.
Then install the package
devtools::install_github("richfitz/remake")
See the info in the remake readme for further details if needed.
Open up the folder 2-remake
and open up a new R session within that folder (e.g. by clicking on the folder remake.Rproj
). We use a number of packages, these can be easily installed by remake:
remake::install_missing_packages()
Then, to generate the figures and tables, run
remake::make()
To generate the knitr report, run
remake::make("report.docx")