Skip to content

Instantly share code, notes, and snippets.

@gghatano
Last active August 29, 2015 14: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 gghatano/11cac34df25b2049f805 to your computer and use it in GitHub Desktop.
Save gghatano/11cac34df25b2049f805 to your computer and use it in GitHub Desktop.
RmdファイルからRコードを抜き出して実行までやってみる
RmdFileName=$1
FileName=`basename $1 .Rmd`
echo -e "library(knitr) \n purl(\"$RmdFileName\") \n source(\"$FileName.R\")"\
| R --no-save
rm $FileName".R"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment