StoXGUI_interfaces: Get objects for use in the GUI

StoXGUI_interfacesR Documentation

Get objects for use in the GUI

Description

getModelNames and getModelInfo return the names and description of the StoX models.

getCanShowInMap: can the data produces by a process using this function be shown in the map?

getInteractiveData and getInteractiveMode get the interactive data and the mode of interactive data (data that canbe set and get iva the GUI) .

getMapData gets the data to plot in the map of the GUI.

getProcessPropertySheet gets the properties of a process.

setProcessPropertyValue gets the properties of a process.

getFunctionHelpAsHtml and getObjectHelpAsHtml get the R documentation of a StoX function or object as html for display in the GUI.

getFilterOptionsAll gets possible tables, operators and unique values for use in the filter expression builder.

getParameterTableInfo and getParameterVectorInfo get information of a parameter table or vector.

Usage

getModelInfo()

getInteractiveMode(projectPath, modelName, processID)

getInteractiveData(projectPath, modelName, processID)

getMapData(projectPath, modelName, processID)

getEDSUColours(n = 5, as.rgb = FALSE, col = c("pink", "red4", "darkorange2"))

getStationColours(
  n = 5,
  as.rgb = FALSE,
  col = c("steelblue2", "darkblue", "mediumvioletred")
)

getProcessPropertySheet(projectPath, modelName, processID)

setProcessPropertyValue(
  groupName,
  name,
  value,
  projectPath,
  modelName,
  processID
)

getFunctionHelpAsHtml(projectPath, modelName, processID, stylesheet = "")

getObjectHelpAsHtml(packageName, objectName, stylesheet = "")

getFilterOptionsAll(
  projectPath,
  modelName,
  processID,
  include.numeric = TRUE,
  stopIfEmptyPossibleValues = FALSE
)

getParameterTableInfo(
  projectPath,
  modelName,
  processID,
  format,
  stopIfEmptyPossibleValues = FALSE
)

getParameterVectorInfo(
  projectPath,
  modelName,
  processID,
  format,
  stopIfEmptyPossibleValues = FALSE
)

Arguments

projectPath

The path to the StoX project, i.e., the folder of the project with the sub folders "input", "output" and "process". Can possibly be the path to a file inside the project folder.

modelName

The name of the model (possible values are "baseline", "analysis" and "report").

processID

The ID of the process.

n

The number of colour steps.

as.rgb

Logical: If TRUE return RGB table instead of HEX.

col

A vector of colour steps.

groupName

The name of the property group, one of "processArguments", "functionInputs" and "functionParameters".

name

The name of the property, such as "processName", "functionName", one of the process parameters ("enabled", "showInMap" and "fileOutput"), the name of a funciton input, or the name of a function parameter.

value

The value to set to the property (string).

stylesheet

The html stylesheet to use, defaulted to no stylesheet.

packageName

The package holding the object to get help as html for.

objectName

The R object to get help as html for.

include.numeric

Logical: If TRUE get possible values for numeric ariables as well as categorical variables.

stopIfEmptyPossibleValues

Logical: If TRUE get possible values for numeric ariables as well as categorical variables.

format

A character string naming the format to get info for.


StoXProject/RstoxFramework documentation built on Oct. 17, 2023, 1:24 p.m.