mimic-on-off {settingsSync} | R Documentation |
Simulate the functions before truly running them
Description
These functions are used to simulate the main functions before truly running them, to disable changes to the files and to the cloud.
Usage
mimic_on()
mimic_off()
is_mimic_on()
Details
These are used in most examples, so the user settings don't change when running [utils::example()]. Internally, these change the options 'ss.mimic', 'ss.mimic.local' and 'ss.mimic.cloud'.
Value
nothing
Functions
-
mimic_on()
: Enable mimic and write mimic files -
mimic_off()
: Disable mimic -
is_mimic_on()
: Check if mimic is on
Examples
mimic_on()
if(interactive()) {
sync()
}
mimic_off()
[Package settingsSync version 3.0.2 Index]