Skip to contents

Environment variables can be used to control various aspects of the execution of a production job. For environment variables that does not contain any secret information it is beneficial to have them stored in the project to make sure that they are set equally in all environments they are executed. use_envvars will write the given environment variables to the Envvar field of the DESCRIPTION file. During deployment these values are forwarded to the deployment server. set_envvars() will register the environment variables in the current R session for interactive use (this happens automatically in try_connect_run()).

Usage

use_envvars(...)

use_local_envvars(...)

set_envvars()

Arguments

...

name-value pairs giving the name and value of the environment variable(s) to set

Value

These functions are called for their side effects

Note

NEVER store secret/confidential information in this way. This is purely for use for behavior changing environment variables.