R/helpers.R
load_list.Rd
Load a list in an environment
load_list(x, env = parent.frame(), remove = TRUE)
a list
the environment onto which the list should be loaded
if TRUE, x will be removed from the environment afterward
TRUE
x
nothing, called for its side-effect
x=list(a=1, b=mtcars) load_list(x, remove=FALSE) print(a) #> [1] 1 print(nrow(b)) #> [1] 32