#!/opt/local/bin/perl
# Usage: rmarkdown myfile.Rmd
# Modified by CRS from rmarkdown.sh by Vince Q. Vu
# see https://gist.github.com/vqv/f480f24f0c202dded306


$file=shift(@ARGV);
$quoted = "'" .$file . "'";
`R -e "library(rmarkdown); render($quoted)"`
