How I Set Up This Blog
- 1 minThe purpose of this blog is to share my research and R code in order to facilitate reproducibility. Therefore, I have structured this blog to allow me write using the following workflow:
- Write my posts as Rmarkdown files (.Rmd) saved in the _drafts/ folder
- Knit the file into markdown (.md) using a helper function (rmd2md.R, contained in the _drafts/ folder as well)
- Move the resultant .md file to the _posts/ folder where Jekyll (via GitHub) can render it as .html.
The original Jekyll blog repo was forked from Jekyll Now.
I have taken inspiration for this workflow from Andy South, Nicole White and Jason Fisher.
Particular thanks to Jason Fisher for the rmd2md() helper function on which the following script is based.