dev/rda2list.R

#' rda2list
#' returns an environment of rda files. BRILLIANT!
#' source: https://stackoverflow.com/a/51491261/9692835
#' @param file file to load
#'
#' @return
#' @export
#'
#' @examples
rda2list <- function(file) {
    e <- new.env()
    load(file, envir = e)
    as.list(e)
}
NRSC/nphys documentation built on Nov. 13, 2024, 2:12 a.m.