Awesome
blogsnip
<!-- badges: start --> <!-- badges: end -->What
{blogsnip} is a package of miscellaneous RStudio addins to insert code snippets and update code selections.
In general, the addins make it easier for me to write R Markdown posts for the {blogdown}-powered rostrum.blog site. You may or may not find them useful.
Consider also the excellent {remedy} package from ThinkR, which has a number of general RStudio addins to help you write R Markdown.
<div class="figure"> <img src="https://www.rostrum.blog/post/2019-10-22-blogsnip-an-rstudio-addin-package_files/blogsnip.gif" alt="The blogsnip RStudio 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." width="400px"/> </div>You can read about each function in the vignette, on the 'references' page of the {blogsnip} website or browse the source.
Install
Install from GitHub with:
install.packages("remotes") # if not yet installed
remotes::install_github("matt-dray/blogsnip")
Restart RStudio and the addins will then be available from the 'Addins' menu in RStudio, listed under 'BLOGSNIP'.
If you want to use 'Add Closing Paren Labels', the addin for the bs_add_biscuits()
, you'll also need to install {styler} from CRAN.
install.packages("styler")
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.