Skip to content

Instantly share code, notes, and snippets.

@mattblackwell
Created July 14, 2015 21:21
Show Gist options
  • Save mattblackwell/ec78c9ec55d827ea871c to your computer and use it in GitHub Desktop.
Save mattblackwell/ec78c9ec55d827ea871c to your computer and use it in GitHub Desktop.
Shell script to render Rmd files
#! /bin/sh
if [ -r "$1" ]; then
mdfile="$1"
Rscript -e "rmarkdown::render('${mdfile}', 'all')"
else
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment