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.
- value
- Environment variable string value.
Example
setenv('TESTVAR', 'This is an example')
R = getenv('TESTVAR')
R = This is an example