sync {settingsSync}R Documentation

Sync Rstudio Settings

Description

Gets the settings from Google Drive and from the local files, and merges them. If there are conflicts, will ask the user to resolve them. Finally, will write the merged settings to the local files, and push them to Google Drive. Will first ask for confirmation if interactive. This function is what's called by the addin.

Usage

sync(write = NULL, useProgBar = TRUE)

Arguments

write

boolean, if TRUE will write the merged settings to the local files, and push them to Google Drive. FALSE essentially just makes conflict resolution, without changing any files (basically a dry run). If a value other than NULL is provided, this will skip confirmation.

useProgBar

boolean, if TRUE will show a progress bar. Default is TRUE.

Details

NOTE: if it's not interactive, it won't write to files because of CRAN policies.

Value

nothing

See Also

[push()], [pull()]

Examples

mimic_on()
if(interactive()) {
  sync(write = TRUE)   # will immediately try to sync all settings
  sync(write = FALSE)  # dry run, will not write to files or push to gd
  sync()               # will ask for confirmation, then sync all settings
}
mimic_off()

[Package settingsSync version 3.0.2 Index]