Reset RStudio to use predefined set of settings/preferences. Correctly works only with RStudio 1.3 or newer. Recommended to use with RStudio 2022.07.1 or newer.
rstudio_reset_user_settings(to, backup = TRUE, ask = TRUE)
Settings that can be used in rstudio-prefs.json
file:
https://docs.rstudio.com/ide/server-pro/session-user-settings.html
get_path_rstudio_config_file()
On Customizing RStudio using point-and-click method.
On Configuration and Settings.
A list of Session User Settings to be used with
rstudioapi::writeRStudioPreference()
.
On Resetting RStudio Desktop's State.
StackOverflow threads on export/import RStudio of user preferences:
https://stackoverflow.com/a/55940249/4783029
https://stackoverflow.com/a/54982341/4783029