sync | R Documentation |
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.
sync(write = NULL, useProgBar = TRUE)
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. |
NOTE: if it's not interactive, it won't write to files because of CRAN policies.
nothing
[push()], [pull()]
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.