https://github.com/pat-s/raddins
RStudio addins of pat-s
https://github.com/pat-s/raddins
Last synced: about 1 month ago
JSON representation
RStudio addins of pat-s
- Host: GitHub
- URL: https://github.com/pat-s/raddins
- Owner: pat-s
- License: gpl-3.0
- Created: 2020-04-08T09:58:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-19T12:51:05.000Z (about 4 years ago)
- Last Synced: 2025-02-14T12:26:54.646Z (3 months ago)
- Language: R
- Size: 55.7 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
# raddins
Personal RStudio addins and convenience functions.
The main purpose of addins is to use them in combination with keybindings.
## Examples
| Name | Effect | Example Keybinding |
|---------------------|--------------------------------------------------------------------------------------------|--------------------|
| View Object | Opens the object under the cursor in RStudio | CTRL + Shift + V |
| Open GitHub | Opens the GitHub repo of the active project (if there is one) | CMD + Shift + G |
| git pull | Pulls from git (and prunes branches) | Alt + Shift + P |
| git push | Pushes to git | CTRL + Shift + P |
| git add | Stages the currently active file | CTRL + Shift + A |
| git status | Executes `gert::git_status()` in the console | CTRL + Shift + S |
| git commit | Executes `gert::git_commit()` with an interactive commit message popup | CTRL + Shift + C |
| Reload RStudio | Reloads RStudio and clears all Terminals | Cmd + R |
| Insert dashes to 80 | Inserts dashes until column 80 in the editor (which creates a heading in the outline view) | CTRL + 8 |For example, binding the "View Object" addin to `CTRL + Shift + V` opens the respective object under the cursor in RStudio.
## Installation
``` r
remotes::install_github("pat-s/raddins")
```Please note that the 'raddins' project is released with a [Contributor Code of Conduct](.github/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.
## Acknowledgment
The "Insert dashes to 80" addin was borrowed from [mine-cetinkaya-rundel/addmins](https://github.com/mine-cetinkaya-rundel/addmins):
`rs_get_symbol_at_cursor` was borrowed from [{drake}](https://github.com/ropensci-books/drake).
## Syncing RStudio settings across machines/RStudio workbench installs
If you find yourself working on different machines or in RStudio Workbench instances, you often want to have the same settings across all of these RStudio instances.
Copying multiple config files can be tiring - have a look at [pat-s/rstudioSettings](https://github.com/pat-s/rstudioSettings) for a programmatic approach.