Skip to content

Instantly share code, notes, and snippets.

@indraniel
Created September 29, 2015 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indraniel/29fc82e13482960426bd to your computer and use it in GitHub Desktop.
Save indraniel/29fc82e13482960426bd to your computer and use it in GitHub Desktop.
A very bare-bones way to knitr a TeX document
#!/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