rename .Rmd to .Rmarkdown and add the build script

This commit is contained in:
Yihui Xie
2017-08-09 11:37:42 -05:00
parent 4888812fd8
commit 0a869e2e76
5 changed files with 35 additions and 5 deletions

6
exampleSite/R/build.R Normal file
View File

@@ -0,0 +1,6 @@
file.copy('content/_index.markdown', '../README.md', overwrite = TRUE)
system("sed -i '' -e '1,6d' -e '34,38d' ../README.md")
cat(
'[![Screenshot](https://github.com/yihui/hugo-xmin/raw/master/images/screenshot.png)](https://xmin.yihui.name)\n',
file = '../README.md', append = TRUE
)