vload: Loads R objects into the shared variable environment.

Description Usage Arguments Examples

View source: R/loadr.R

Description

This function loads one or more R objects into the shared variable environment. By default it will assign variable names as they are named when passed to the function, but it can also assign variables to alternative names using the varNames argument.

Usage

1
vload(..., varNames = NULL)

Arguments

...

Any number of variables to assign to the shared variable environment

varNames

(Optional) character vector of variable names to use for the given variables. If provided, the length of varNames must match the number of variables passed to ....

Examples

1
2
3
4
x=5; y=7; z=15
vload(x, y, z)
vload(c(1,2,3), varNames="varname")
vload(x, y, varNames=c("xvar", "yvar"))

Example output

NULL environment; using environment SV...
Newly Loaded: x, y, z
Newly Loaded: varname
Unchanged: x, y, z
Newly Loaded: xvar, yvar
Unchanged: varname, x, y, z

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