PBSmodelling (version 2.68.8)

promptWriteOptions: Prompt the User to Write Changed Options

Description

If changes have been made to PBS options, this function allows the user to choose whether to write PBS options to an external file that can be loaded later by readPBSoptions.

Usage

promptWriteOptions(fname="")

Arguments

fname

name of file where options will be saved.

Author

Anisa Egeli, Vancouver Island University, Nanaimo BC

Details

If there are options that have been changed in the GUI but have not been committed to PBSmodelling memory in the global R environment, the user is prompted to choose whether or not to commit these options.

Then, if any PBS options have been changed, the user is prompted to choose whether to save these options to the file fname. (When a new R session is started or when a call to readPBSoptions or writePBSoptions is made, PBS options are considered to be unchanged; when an option is set, the options are considered to be changed).

If fname="", the user is prompted to save under the file name last used by a call to readPBSoptions or writePBSoptions if available. Otherwise, the default file name "PBSoptions.txt" is used.

See Also

writePBSoptions, readPBSoptions, setPBSoptions

Examples

Run this code
if (FALSE) {
local(envir=.PBSmodEnv,expr={
  promptWriteOptions() #uses default filename PBSoptions.txt
})
}

Run the code above in your browser using DataCamp Workspace