setenv

Assigns the value of the environment variable x to value for the current session of the application.

Syntax

setenv(x, value)

Inputs

x
Environment variable name.
Type: string
value
Environment variable string value.
Type: string

Example

setenv('TESTVAR', 'This is an example')
R = getenv('TESTVAR')
R = This is an example