Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getOptionsPrefix

Get and Set GUI Prefix of Options Class


Description

The GUI prefix is used for determining which GUI variables are associated with a user option.

Usage

getOptionsPrefix(option.object)
setOptionsPrefix(option.object, prefix)

Arguments

option.object

options class object used for storing package options

prefix

new prefix to use

Value

getOptionsPrefix: a prefix string used to reference GUI variables

Author(s)

Alex Couture-Beil, Vancouver Island University, Nanaimo BC

See Also

See PBSoptions-class for more details and an example using PBSmodelling's option management functions.

Examples

## Not run: 
local(envir=.PBSmodEnv,expr={
  # For the example, the options object is saved to the temporary environment;
  # however, a user would normally create the object in his/her workspace.
  .mypkg <- new( "PBSoptions", filename="my_pkg.txt", 
    initial.options=list(pi=3.14), gui.prefix="opt" )

  #prefix the option "pi" with "opt" to get "optpi"
  createWin( "entry name=optpi", astext = TRUE )

  #the GUI variable "optpi" will be loaded with the option "pi"
  loadOptionsGUI( .mypkg )
})

## End(Not run)

PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.