Small test project for testing how to use packrat
- Clone this repo
- Set working directory to this project
setwd('./rr-test')
- Turn on packrat mode and restore
source("packrat/init.R")
This will install packrat (if you don't already have it) and this project's dependencies into the ./packrat/
directory.
- If you have all dependencies and packrat is working,
knitr::spin('./test-spin.R')
should be able to run all code blocks and output them into ./test-spin.md
and ./test-spin.html
.
- Remember to turn packrat off when switching between projects
packrat::off()