Using Distill in R Markdown to Start a Blog πŸ—οΈ

tutorial r markdown

Quick steps to start a blog in R

Sam Parmar https://parmsam.github.io/
01-01-2021

Published on Medium December 17, 2020.

I previously read this RStudio blog post on the Distill package earlier this month. The aesthetic and features were impressive to me (particularly site-wide search). Had some time to try it out today. Here are the short and simple steps I took to start a blog using Distill.

Note: this article assumes you have some prior experience with R Markdown. Skim over this book to learn more about R Markdown.

  1. Skimmed the official website for Distill and page on creating a blog.
  2. Installed the package: install.packages('distill')
  3. Opened a New Project in RStudio to start a new Distill Blog. See official page for screenshot.
  4. Knit the R markdown files to see how the default looked.
  5. Adjusted R markdown files as needed (added icons, added first post, and updated about tab). Knit files again.
  6. Pushed the _site sub-directory files produced after Knitting to my blog repo on Github. Repo should be setup to publish onto Github Pages in repo settings.
  7. Done! Blog updated.

Simple as that. Here is what it looks like right now. Hope this is helpful.

Follow up: Went through Shamindra Shotriya’s blog post to take my Distill blog to the next level.

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

Citation

For attribution, please cite this work as

Parmar (2021, Jan. 1). Data Breadcrumbs: Using Distill in R Markdown to Start a Blog πŸ—οΈ. Retrieved from https://databreadcrumbs.com/posts/2021-01-01-how-i-built-my-blog-using-distill/

BibTeX citation

@misc{parmar2021using,
  author = {Parmar, Sam},
  title = {Data Breadcrumbs: Using Distill in R Markdown to Start a Blog πŸ—οΈ},
  url = {https://databreadcrumbs.com/posts/2021-01-01-how-i-built-my-blog-using-distill/},
  year = {2021}
}