export: Exports to an environment

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/export.R

Description

This function is a wrapper around export.list that exports variables by their name to another environment.

Usage

1
export(..., target.env = .GlobalEnv)

Arguments

...

variables to be exported.

target.env

The target environment. Use the global environment by default.

Value

Invisible NULL.

Author(s)

Roland

References

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

See Also

export.list, assign

Examples

1
2
3
4
5
6
local({
  newly.created.var <- 5
  export(newly.created.var)
})
newly.created.var
rm(newly.created.var)

kimisc documentation built on May 2, 2019, 6:09 p.m.