R/unroll.R

Defines functions unroll

Documented in unroll

#' Unroll a list and save its elements into the parent environment
#' 
#' Used for its side effects
#' 
#' @param list Name of the list to unroll
#' @export
#' 
unroll <- function(list){
    for (i in 1:length(list)){
        assign(names(list)[i], list[[i]], envir=parent.frame())
    }
}
lcomm/ltools documentation built on May 20, 2019, 11:28 p.m.