Learn R Programming

SWTools (version 1.1.0)

VeneerSetFunction: Update a function value or expression. Function must exist before being updated.

Description

Update a function value or expression. Function must exist before being updated.

Usage

VeneerSetFunction(Name, Expression, baseURL = "http://localhost:9876")

Value

Nothing to the R environment.

Arguments

Name

Name of the function without the "$", e.g. f_ScaleFactor

Expression

Expression to change it to, e.g. 1.2

baseURL

URL of the Veneer server. Defaults to the veneer default.

Examples

Run this code
if (FALSE) {
 VeneerSetFunction("f_ScaleFactor",1.2)
 VeneerSetFunction("f_TargetLevel","if($m_Flow<1000,3.2,3.5)")
 }
 

Run the code above in your browser using DataLab