R/list2env.R

# legacy function to keep running under R<=2.10
if (!exists("list2env")){
  list2env <- function(x, envir=NULL, parent=parent.frame()){
     if (is.null(envir))
        envir <- new.env(parent=parent)
     for (i in names(x)){
        envir[[i]] <- x[[i]]
     }
     envir
  }
}

Try the editrules package in your browser

Any scripts or data that you put into this service are public.

editrules documentation built on May 1, 2019, 6:32 p.m.