This function updates the RStudio preferences saved in
the rstudio-prefs.json
file. A full listing of preferences that may be
modified are listed here
https://docs.rstudio.com/ide/server-pro/session-user-settings.html
use_rstudio_prefs(...)
series of RStudio preferences to update, e.g.
always_save_history = FALSE, rainbow_parentheses = TRUE
NULL, updates RStudio rstudio-prefs.json
file
if (FALSE) { # interactive()
# pass preferences individually --------------
use_rstudio_prefs(
always_save_history = FALSE,
rainbow_parentheses = TRUE
)
# pass a list of preferences -----------------
pref_list <-
list(always_save_history = FALSE,
rainbow_parentheses = TRUE)
use_rstudio_prefs(!!!pref_list)
}