rstudio.prefs
Package to programmatically set RStudio IDE preferences and shortcuts
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.4%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Package to programmatically set RStudio IDE preferences and shortcuts
Basic Info
- Host: GitHub
- Owner: ddsjoberg
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: http://www.danieldsjoberg.com/rstudio.prefs/
- Size: 313 KB
Statistics
- Stars: 28
- Watchers: 4
- Forks: 2
- Open Issues: 2
- Releases: 10
Topics
Metadata Files
README.md
rstudio.prefs
As of RStudio v1.3, the preferences in the Global Options dialog (and a number of other preferences that aren’t) are now saved in simple, plain-text JSON files. The {rstudio.prefs} package provides an interface for working with these RStudio JSON preference files to easily make modifications without using the point-and-click option menus. This is particularly helpful when working on teams to ensure a unified experience across machines and utilizing settings for best practices.
Installation
Install {rstudio.prefs} from CRAN with:
r
install.packages("rstudio.prefs")
Install the development version of {rstudio.prefs} from GitHub with:
``` r
install.packages('devtools')
devtools::install_github("ddsjoberg/rstudio.prefs") ```
Examples
Set RStudio Preferences
Update the RStudio default preferences. Full list of modifiable settings here: https://docs.rstudio.com/ide/server-pro/session-user-settings.html
``` r library(rstudio.prefs)
userstudioprefs( alwayssavehistory = FALSE, saveworkspace = "never", loadworkspace = FALSE, rainbow_parentheses = TRUE )
> √ Downloading list of available RStudio settings
>
> == Updates ==================================================
> - alwayssavehistory [TRUE --> FALSE]
> - save_workspace [ask --> never]
> - load_workspace [TRUE --> FALSE]
> - rainbow_parentheses [FALSE --> TRUE ]
>
> Would you like to continue? [y/n] y
> √ File 'C:/Users/sjobergd/AppData/Roaming/RStudio/rstudio-prefs 2021-06-20.json' saved as backup.
> √ File 'C:/Users/sjobergd/AppData/Roaming/RStudio/rstudio-prefs.json' updated.
> * Restart RStudio for updates to take effect.
```
Add Secondary Repository
Add secondary repositories to the ROpenSci and ddsjoberg R-Universes. This is also helpful for adding secondary RStudio Package Manager repositories.
``` r userstudiosecondary_repo( ropensci = "https://ropensci.r-universe.dev", ddsjoberg = "https://ddsjoberg.r-universe.dev" )
> == Updates ==================================================
> - ropensci [* --> https://ropensci.r-universe.dev ]
> - ddsjoberg [* --> https://ddsjoberg.r-universe.dev]
>
> Would you like to continue? [y/n] y
> √ File 'C:/Users/sjobergd/AppData/Roaming/RStudio/rstudio-prefs 2021-06-20.json' saved as backup.
> √ File 'C:/Users/sjobergd/AppData/Roaming/RStudio/rstudio-prefs.json' updated.
> * Restart RStudio for updates to take effect.
```
Add Keyboard Shortcut
Use use_rstudio_keyboard_shortcut() to programmatically add keyboard shortcuts for add-ins.
```r userstudiokeyboardshortcut( "Ctrl+Shift+/" = "rstudio.prefs::makepath_norm" )
> == Updates ==================================================
> - Ctrl+Shift+/ [* --> rstudio.prefs::makepathnorm]
>
> Would you like to continue? [y/n] y
> √ File 'C:/Users/sjobergd/AppData/Roaming/RStudio/keybindings/addins 2021-06-20.json' saved as backup.
> √ File 'C:/Users/sjobergd/AppData/Roaming/RStudio/keybindings/addins.json' updated.
> * Restart RStudio for updates to take effect.
```
Owner
- Name: Daniel Sjoberg
- Login: ddsjoberg
- Kind: user
- Location: San Francisco Bay Area
- Company: Genentech
- Website: www.danieldsjoberg.com
- Twitter: statistishdan
- Repositories: 99
- Profile: https://github.com/ddsjoberg
Senior Principal Data Scientist @Genentech; previously @sloan_kettering; Golden Girls Superfan
GitHub Events
Total
Last Year
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| ddsjoberg | d****g@g****m | 79 |
| Sjoberg | S****D@m****g | 6 |
| Eric Leung | e****c@e****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 11
- Total pull requests: 8
- Average time to close issues: about 1 month
- Average time to close pull requests: about 8 hours
- Total issue authors: 4
- Total pull request authors: 3
- Average comments per issue: 2.27
- Average comments per pull request: 0.38
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ddsjoberg (8)
- superboreen (1)
- Meghansaha (1)
Pull Request Authors
- ddsjoberg (6)
- DanChaltiel (1)
- erictleung (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 458 last-month
- Total dependent packages: 0
- Total dependent repositories: 2
- Total versions: 6
- Total maintainers: 1
cran.r-project.org: rstudio.prefs
Set 'RStudio' Preferences
- Homepage: https://github.com/ddsjoberg/rstudio.prefs
- Documentation: http://cran.r-project.org/web/packages/rstudio.prefs/rstudio.prefs.pdf
- License: GPL (≥ 3)
-
Latest release: 0.1.9
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.4 depends
- cli >= 2.5.0 imports
- dplyr >= 1.0.6 imports
- fs >= 1.5.0 imports
- jsonlite >= 1.7.2 imports
- purrr >= 0.3.4 imports
- rappdirs >= 0.3.3 imports
- rlang >= 0.4.11 imports
- rstudioapi >= 0.13 imports
- rvest >= 1.0.0 imports
- tibble >= 3.1.2 imports
- covr >= 3.5.1 suggests
- spelling >= 2.2 suggests
- testthat >= 3.0.0 suggests
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- actions/checkout v2 composite
- r-lib/actions/pr-fetch v1 composite
- r-lib/actions/pr-push v1 composite
- r-lib/actions/setup-r v1 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-r v1 composite