Skip to contents

Unpack and assign values to specified names in an environment [Experimental]

Usage

names %<...% values

Arguments

names

A list or character vector specifying the names of variables to be assigned.

values

A list or vector containing the values to be assigned to the names.

Value

NULL. The function performs assignments in the specified environment.

See also

Additional arguments that can be passed to names include

  • .envirThe environment where the variables will be assigned. Defaults to the global environment.

  • .warnLogical flag indicating whether to show a warning message. Defaults to TRUE.

Examples

if (FALSE) {
c("x", "y") %<...% list(1, 2)
}