Skip to content

Instantly share code, notes, and snippets.

@sjessa
Created May 1, 2017 14:18
Show Gist options
  • Save sjessa/20269c3eccbd052955e62cfa9022508e to your computer and use it in GitHub Desktop.
Save sjessa/20269c3eccbd052955e62cfa9022508e to your computer and use it in GitHub Desktop.
Knit an R Markdown document from the commandline, and specify the output filename
R -e 'library(knitr); knit("report.Rmd", "report.md")'; pandoc report.md --output snapshot.pdf --variable 'geometry:margin=1in'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment