Learn R Programming

settingsSync (version 3.0.2)

mimic-on-off: 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()

Arguments

Value

nothing

Functions

  • mimic_on(): Enable mimic and write mimic files

  • mimic_off(): Disable mimic

  • is_mimic_on(): Check if mimic is 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`.

Examples

Run this code
mimic_on()
if(interactive()) {
  sync()
}
mimic_off()

Run the code above in your browser using DataLab