Robert's Data Science Blog

My Blogdown Workflow

I use the {blogdown} package to make these tRicks. {blogdown} uses the Hugo framework that I also use for the rest of the blog.

The posts are written in R Markdown and {blogdown} builds them to regular Markdown that Hugo can handle.

In the root of my blog folder I have an RStudio project and in the content folder I have the folders post and tricks.

To make a new post I use the command

blogdown::new_post("<title>", ext = ".Rmd", subdir = "tricks")

Instead of building all posts with the recommended blogdown::build_site, I prefer to build one post at a time with the unexported function build_rmds:

blogdown:::build_rmds("<filename>")