View source: R/copy_to_global.R
copy_to_global | R Documentation |
This function copies all variables from a specified source environment to the global environment.
copy_to_global(source_env)
source_env |
An environment from which to copy variables. This should be a valid R environment. |
Invisible NULL. The function is called for its side effect of copying variables to the global environment.
env_example <- new.env()
env_example$a <- 1
env_example$b <- 2
copy_to_global(env_example)
print(a) # Should print 1
print(b) # Should print 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.