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

updateGUI

Update Active GUI With Local Values


Description

Update the currently active GUI with values from R's memory at the specified location.

Usage

updateGUI(scope = "L")

Arguments

scope

either "L" for the parent frame, "P" for the temporary work environment .PBSmodEnv, "G" for the global environment, or an explicit R environment.

Details

If the characteristics of the local R objects do not match those of the GUI objects, the update will fail.

Value

Invisibly returns a Boolean vector that specifies whether the objects in the local R environment match items in the active GUI.

Author(s)

Rob Kronlund, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC

See Also

Examples

## Not run: 
local(envir=.PBSmodEnv,expr={
  #law of free food: http://www.phdcomics.com/comics.php?f=1223
  createWin( c( 
    "vector names=\"foodquality hunger cost\" values=\"0.6 0.8 0.1\" width=10",
    "entry name=taste edit=F label=taste:" ), astext=TRUE )
  getWinVal( scope="P" )
  taste <- foodquality * hunger / cost
  updateGUI()
})

## 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.