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)

Arguments

to

The name of pre-defined set of RStudio settings/preferences. Options: "rstudio-default", "bio-default", "bio-dark-blue", "bio-black".

backup

(logical) If TRUE, a backup copy of files with settings is created.

ask

(logical) If TRUE, additional confirmation to reset settings is required.

Details

Settings that can be used in rstudio-prefs.json file: https://docs.rstudio.com/ide/server-pro/session-user-settings.html

See also

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 RStudio setting locations.

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

Examples