export.list

0th

Percentile

Exports to an environment

This function is a wrapper around assign() that exports the contents of a named list to an environment. The variable names in the target environment are constructed from the names of the list items or taken from a separate argument.

Usage
export.list(arg.list, arg.names = names(arg.list), target.env = .GlobalEnv)
Arguments
arg.list

list of objects, possibly named.

arg.names

names to use for the items in the target environment. Use the names of arg.list by default.

target.env

The target environment. Use the global environment by default.

Value

Invisible NULL.

References

http://stackoverflow.com/a/17484932/946850

See Also

export, assign

Aliases
  • export.list
Examples
# NOT RUN {
export.list(list(newly.created.var=5))
newly.created.var
rm(newly.created.var)
# }
Documentation reproduced from package kimisc, version 0.4, License: GPL-3

Community examples

Looks like there are no examples yet.