eload: Loads named variables into a shared environment

Description Usage Arguments Examples

View source: R/loadr.R

Description

eload takes a collection of named objects and creates or updates an environment. By default, an existing variable in the target environment will be replaced by a new value, but this can be avoided by setting preserve=TRUE. If you want to load directly into the current env, look at list2env with environment()

Usage

1
2
3
4
5
6
eload(
  loadDat,
  loadEnvir = loadrEnv(),
  preserve = FALSE,
  parentEnvir = globalenv()
)

Arguments

loadDat

A list or environment with named variables to load.

loadEnvir

Name (character string) for the environment to create or update.

preserve

Whether to retain the value for an already-bound name.

parentEnvir

Parent environment of the shared variable environment; defaults to globalenv()

Examples

1
2
eload(list(x=15))
SV$x

loadr documentation built on April 17, 2021, 9:06 a.m.