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']))