https://github.com/matt-dray/blogsnip
:memo::scissors: R package: RStudio addin to insert Rmd code snippets, especially for {blogdown}
https://github.com/matt-dray/blogsnip
blogdown r r-package rstats rstudio rstudio-addin
Last synced: about 2 months ago
JSON representation
:memo::scissors: R package: RStudio addin to insert Rmd code snippets, especially for {blogdown}
- Host: GitHub
- URL: https://github.com/matt-dray/blogsnip
- Owner: matt-dray
- License: other
- Created: 2019-10-22T18:18:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T09:51:13.000Z (about 3 years ago)
- Last Synced: 2024-12-30T23:26:47.611Z (about 2 months ago)
- Topics: blogdown, r, r-package, rstats, rstudio, rstudio-addin
- Language: R
- Homepage: https://matt-dray.github.io/blogsnip/
- Size: 246 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - matt-dray/blogsnip - :memo::scissors: R package: RStudio addin to insert Rmd code snippets, especially for {blogdown} (R)
README
# blogsnip
[](https://www.repostatus.org/#wip)
[](https://github.com/matt-dray/blogsnip/actions)
[](https://www.rostrum.blog/2019/10/22/blogsnip/)## What
{blogsnip} is a package of miscellaneous [RStudio addins](https://rstudio.github.io/rstudioaddins/) 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}](https://bookdown.org/yihui/blogdown/)-powered [rostrum.blog](https://rostrum.blog) site. You may or may not find them useful.
Consider also the excellent [{remedy} package](https://thinkr-open.github.io/remedy/) from ThinkR, which has a number of general RStudio addins to help you write R Markdown.
![]()
You can read about each function in the [vignette](https://matt-dray.github.io/blogsnip/articles/intro.html), on [the 'references' page of the {blogsnip} website](https://matt-dray.github.io/blogsnip/reference/index.html) or [browse the source](https://github.com/matt-dray/blogsnip/blob/master/R/blogsnip-helpers.R).
## Install
Install from GitHub with:
``` r
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.
``` r
install.packages("styler")
```## Contribute
Feel free to [add or suggest new snippets](https://github.com/matt-dray/blogsnip/issues).
Please note that the 'blogsnip' project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.