R/load_save.R

Defines functions Upload_Object Save_Object

Documented in Save_Object Upload_Object

#' @title xxx
#' 
#' @description xxx
#' 
#' @param object xxx
#' @param file A `characte(1)` naming the file to save the object.
#' 
#' @export
#' 
Save_Object <- function(object, file) {
  if (is.null(object))
    return()
  if (missing(file))
    return()
  
  saveRDS(object, file = file)
}


#' @title xxx
#' 
#' @description xxx
#' 
#' @param file xxx
#' 
#' @export
#' 
Upload_Object <- function(file) {
  if (missing(file))
    return()
  
  readRDS(file)
}
samWieczorek/Magellan documentation built on March 30, 2022, 3:40 a.m.