R/load_rdata.R

Defines functions load_rdata

Documented in load_rdata

#' load RData
#'
#' Load processed data using a function that assigns it
#' to a specific variable
#' (so you don't have to guess what the loaded variable name is).
#' @inheritParams base::load
#' @export
load_rdata <- function(file){
  load(file = file)
  get(ls()[ls() != "fileName"])
}
bschilder/scKirby documentation built on Oct. 2, 2024, 10:16 p.m.