You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6 KiB

7 years ago
---
output: rmarkdown::github_document
---
7 years ago
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/0.1.0/active.svg)](http://www.repostatus.org/#active)
[![codecov](https://codecov.io/gh/hrbrmstr/hrbraddins/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/hrbraddins)
[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/hrbraddins.svg?branch=master)](https://travis-ci.org/hrbrmstr/hrbraddins)
7 years ago
`hrbraddins` : Additional Addins for RStudio
The following functions are implemented:
- `bare_combine`: Turn a selection of comma-separated bare strings into a - `base::combine`: statement
7 years ago
- `join_rows`: Join `cr`/`lf`-separated selected rows of text into a single space-separated row
7 years ago
7 years ago
### Twitter RANTS!
Use the Addins menu to bring up a dialogue for Twitter Rants!
![](rant.jpg)
7 years ago
### Bare Combine
7 years ago
Similarly, the RStudio Addins menu selection "Bare Combine" will take a text selection and make it into a `c()` statement. For example:
a,b c,d,e f
or
a, b c, d, e f
will be converted to:
c("a", "b c", "d", "e f")
**NOTE**: not all double-quote edge cases are handled (yet).
7 years ago
### Join Rows
7 years ago
Finally, unless I'm missing something, RStudio doesn't have a "join rows" option, so you can use the RStudio Addins menu selection "Join Rows" to do just that. So:
a
b
c
d
becomes:
a b c d
The best way to find out if I'm wrong about that is by doing this tho since the internet will gladly tell me if I'm wrong.
### Installation
```{r eval=FALSE}
devtools::install_github("hrbrmstr/hrbraddins")
```