Skip to content

Instantly share code, notes, and snippets.

@sjessa
Created July 6, 2018 20:10
Show Gist options
  • Save sjessa/cc9567663f82d01d94798a03eff6f6f2 to your computer and use it in GitHub Desktop.
Save sjessa/cc9567663f82d01d94798a03eff6f6f2 to your computer and use it in GitHub Desktop.
knit Rmd from commandline
# save in .bashrc
# usage: knit 01-analysis.Rmd
function knit() {
R --no-save -e "rmarkdown::render('""$1""', 'html_document')"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment