Created
May 24, 2013 03:35
-
-
Save drewhendrickson/5641128 to your computer and use it in GitHub Desktop.
Simple bash script for converting an Rmd file to pdf. Requires Rscript (in utils package of R) and pandoc (http://johnmacfarlane.net/pandoc/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| Rscript -e "library(knitr); knit('$1.Rmd')" | |
| pandoc -o $1.pdf $1.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment