Last active
August 29, 2015 14:02
-
-
Save gghatano/11cac34df25b2049f805 to your computer and use it in GitHub Desktop.
RmdファイルからRコードを抜き出して実行までやってみる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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