From f6cc2be0ac4849f010056d90733db2a96e9ec0bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A5=9A=E6=96=B0=E5=85=83?= Date: Tue, 7 Sep 2021 13:49:42 +0800 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 方便测试。 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cd25de4357..bede7fd1f7 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ Daily News/Blog aggregator website and you could use this website as a template - Use `getrss` from [scifetch](https://github.com/yufree/scifetch) to convert rss xml file into dataframe and use the following code to generate `md` files and PR to this repo. ```r +if (!dir.exists("content")) dir.create("content") +if (!dir.exists("content/post")) dir.create("content/post") x <- scifetch::getrss('path-to-your-own-rss-xml-files') for (i in 1:NROW(x)) { name = gsub("^http[s]?://|/$", "", tolower(x[i, 'linkTitle']))