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.


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

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

You can read about each function in the vignette, on the ‘references’ page of the {blogsnip} website or browse the source.


Install with:


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


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.