bash and sed may not be available on Windows
This commit is contained in:
1 parent
11ad2599ed
commit
ffa1147b46
2 files changed
+2
-2
No files matched your search
@@ -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(
|
||||
'[](https://xmin.yihui.name)\n',
|
||||
file = '../README.md', append = TRUE
|
||||
|
||||
Reference in new issue
Block a user