appendEnv: Add the value of a variable to an environment (fast append)

View source: R/fcn_misc.R

appendEnvR Documentation

Add the value of a variable to an environment (fast append)

Description

The environment must exist, and its name must be given as string literal in 'env_name'! The value of the variable 'v' will be stored under the name given in 'v_name'. If 'v_name' is not given, a variable name will be created by increasing an internal counter and using the its value padded with zeros as name (i.e., "0001", "0002" etc).

Usage

appendEnv(env_name, v, v_name = NULL)

Arguments

env_name

String of the environment variable

v

Value to be inserted

v_name

String used as variable name. Automatically generated if omitted.

Value

Always TRUE


PTXQC documentation built on May 29, 2024, 9:26 a.m.