global_env_hack: global_env_hack

Description Usage Arguments Value See Also Examples

View source: R/global_env_hack.R

Description

Hack variable into global env (bypasses R CMD checks).

Usage

1
global_env_hack(key, val, pos = 1)

Arguments

key

A character (!) string. The name of the assigned variable

val

An object. The object that will be assigned to 'key'.

pos

An integer. The position of the environment (default: 1).

Value

No return value, called for side effects (see description).

See Also

http://adv-r.had.co.nz/Environments.html

Examples

1
2
3
4
5
6
utils_path <- tempdir()
global_env_hack(
  key = "utils_path",
  val = utils_path,
  pos = 1L
)

miracum/misc-dizutils documentation built on Nov. 21, 2020, 7:41 p.m.