boB Rudis
c4e4cb29d9
|
5 years ago | |
---|---|---|
R | 5 years ago | |
inst/rstudio | 5 years ago | |
man | 5 years ago | |
tests | 7 years ago | |
.Rbuildignore | 7 years ago | |
.codecov.yml | 7 years ago | |
.gitignore | 7 years ago | |
.travis.yml | 7 years ago | |
DESCRIPTION | 5 years ago | |
LICENSE | 7 years ago | |
NAMESPACE | 5 years ago | |
NEWS.md | 7 years ago | |
README.Rmd | 6 years ago | |
README.md | 6 years ago | |
codecov.yml | 7 years ago | |
hrbraddins.Rproj | 7 years ago | |
rant.jpg | 7 years ago |
README.md
hrbraddins
Additional Addins for RStudio
Description
Experiments, mostly. Please take the code and use it! This package will NEVER see CRAN. I don't even need credit. If you find something useful and are willing to round out the corners, it's all yours.
What's in the tin?
The following functions are implemented:
refresh_renviron
: Refreshes in-memory R environment variables, noting changesbare_combine
: Turn a selection of comma-separated bare strings into a -base::combine
: statementjoin_rows
: Joincr
/lf
-separated selected rows of text into a single space-separated row
Examples
Twitter RANTS!
Use the Addins menu to bring up a dialogue for Twitter Rants!
Bare Combine
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).
Join Rows
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
devtools::install_github("hrbrmstr/hrbraddins")