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()
Run the code above in your browser using DataLab