powered by
Reads an internal RStudio IDE preference for the current user.
readRStudioPreference(name, default)
The name of the preference.
The default value of the preference, returned if the preference is not found.
RStudio IDE internal preferences include the values displayed in RStudio's Global Options dialog as well as a number of additional settings.
readPreference, which can be used to read arbitrary user (non-RStudio) preferences set with writePreference.
readPreference
writePreference
link{writeRStudioPreference}, which can be used to write internal RStudio IDE preferences.
link{writeRStudioPreference}
if (FALSE) { # Get indentation settings spaces <- rstudioapi::readRStudioPreference("num_spaces_for_tab", FALSE) message("Using ", spaces, " per tab.") }
Run the code above in your browser using DataLab