octo_set_envvar: Set environment variables

View source: R/commands.R

octo_set_envvarR Documentation

Set environment variables

Description

This will set an environment variable in a way that makes it available to the following steps, compared to using Sys.setenv(), which would only make an envvar available in the current step.

Usage

octo_set_envvar(value, name, set = TRUE, delim = "EOF")

Arguments

value

Value of the envvar, coercible to string. Can be a multiline string or character vector of length > 1, each element will be interpreted as one line.

name

Name of the envvar.

set

Should the envvar also be set in this step?

delim

Delimiter used for multiline strings. No need to change this unless your string contains 'EOF'.

Value

name invisibly.

See Also

octo_mask_envvar()and the GitHub docs

Examples

## Not run: 
val <- c("Some content", "that spans", "multiple lines")
octo_set_envvar(val, "multi")
octo_set_envvar(2342, "pid")

## End(Not run)

assignUser/octolog documentation built on June 4, 2023, 3:28 p.m.