promptAndSave.Settings
From R.utils v1.4.2
by Henrik Bengtsson
Prompt user to save modified settings
Prompt user to save modified settings.
- Keywords
- methods, internal, programming
Usage
## S3 method for class 'Settings':
promptAndSave(this, saveOption="saveSettings", settingsName=NULL, ...)
Arguments
- saveOption
- A
character
string of the option used to set if user is prompted or not. - ...
- Arguments passed to
saveAnywhere
().
Details
If settings has been modified since loaded, the user is by default
prompted to save the settings (if Rruns interactively).
To save or not save without asking or when Rruns non-interactively,
set option "saveSettings"
to "yes" or "no", respectively.
For prompting the user, use "prompt".
Value
See Also
*isModified()
.
interactive
().
For more information see Settings
.
Community examples
Looks like there are no examples yet.