From ffa1147b46cfdf04c9674eb420183bdd78f07a55 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sun, 8 Oct 2017 09:23:40 -0500 Subject: bash and sed may not be available on Windows --- exampleSite/R/build.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exampleSite/R') diff --git a/exampleSite/R/build.R b/exampleSite/R/build.R index 4747bd1..78c3e56 100644 --- a/exampleSite/R/build.R +++ b/exampleSite/R/build.R @@ -1,5 +1,5 @@ file.copy('content/_index.markdown', '../README.md', overwrite = TRUE) -system("sed -i '' -e '1,6d' -e '34,38d' ../README.md") +if (Sys.which('sed') != '') 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 -- cgit 1.4.1