Knitting to Jekyll
Knitting R Markdown to Jekyll
This is a test of the Knittr package and Jekyll.
It looks like the original package for using knitr with Jekyll here has fallen out of favor for Hugo, a GO-based static web-site generator. Pretty cool, but let’s see how easy it is to knit into Jekyll without using any packages.
Load in some libraries and data
Do some plots
Behold my beautiul plot!
Next we need to get our RMD to MD, with the image paths sorted. To do this I’ll stand on the shoulders of chepec who has implemented a solution. I created a
_knitr directory in my Jekyll site, and I included a
knitr folder in my
assets folder. Make sure you update the necessary paths in the
Now its a matter of simply sourcing the file and running
KnitPost. Make sure that your post titles match Jekyll requirements (start with
YYYY-MM-DD format date). The result is a very rapid R-studio to web post!