Created
September 29, 2015 17:02
-
-
Save indraniel/29fc82e13482960426bd to your computer and use it in GitHub Desktop.
A very bare-bones way to knitr a TeX document
This file contains 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
#!/usr/bin/env Rscript | |
args <- commandArgs(trailingOnly=TRUE) | |
file <- args[1] | |
cat(paste("Processing: ", file, "\n")) | |
library(knitr) | |
knit(file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment