The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
Manage RStudio preferences and addin shortcuts
The {rstudio.prefs} package provides a programmatic interface for working with RStudio preference files to modify settings and addin keyboard shortcuts without using point-and-click option menus. This is useful for teams and individuals working across multiple devices who want a unified experience and for enforcing best practices. The package also exposes settings not available in the Global Options dialog.
Install {rstudio.prefs} from CRAN with:
install.packages("rstudio.prefs")Install the development version of {rstudio.prefs} from GitHub with:
# install.packages('devtools')
devtools::install_github("vdwulp/rstudio.prefs")Update the RStudio default preferences. Full list of modifiable settings here: https://docs.posit.co/ide/server-pro/admin/reference/session_user_settings.html
library(rstudio.prefs)
use_rstudio_prefs(
always_save_history = FALSE,
save_workspace = "never",
load_workspace = FALSE,
rainbow_parentheses = TRUE
)
#> √ Downloading list of available RStudio settings
#>
#> == Updates ==================================================
#> - always_save_history [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 repositories to the ROpenSci and ddsjoberg R-Universes. This is also helpful for adding secondary RStudio Package Manager repositories.
use_rstudio_secondary_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.Use use_rstudio_keyboard_shortcut() to programmatically
add keyboard shortcuts for add-ins.
use_rstudio_keyboard_shortcut(
"Ctrl+Shift+/" = "rstudio.prefs::make_path_norm"
)
#> == Updates ==================================================
#> - Ctrl+Shift+/ [* --> rstudio.prefs::make_path_norm]
#>
#> 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.{rstudio.prefs} was originally created and developed by Daniel D. Sjoberg. Maintenance was transferred to S.A. van der Wulp starting with v0.2.0.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.