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.

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

x=5; y=7; z=15 vload(x, y, z)
#> Newly Loaded: x, y, z
vload(c(1,2,3), varNames="varname")
#> Newly Loaded: varname
#> Unchanged: x, y, z
vload(x, y, varNames=c("xvar", "yvar"))
#> Newly Loaded: xvar, yvar
#> Unchanged: varname, x, y, z