The blogsnip addin is demonstrated by selecting 'insert details block' from the addins menu, which creates an expandable details section when rendered from R Markdown to HTML.

What

{blogsnip} is a package of RStudio addins for inserting code snippets into {blogdown} posts.

These snippets make my life easier when writing blog posts for rostrum.blog. You may or may not find them useful. The package will be updated over time with new addins as I see fit.

This repo is available as a website, thanks to {pkgdown}. You can read about each addin on the ‘references’ page.

Install

Install with:

install.packages("remotes")
remotes::install_github("matt-dray/blogsnip")

The addins will then be available from the ‘Addins’ menu in RStudio, listed under ‘BLOGSNIP’.

Contribute

Feel free to add or suggest new snippets.

Please note that the ‘blogsnip’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.