R/getReadSaveObj.RDS.R

Defines functions getReadSaveObj.RDS

Documented in getReadSaveObj.RDS

#' @describeIn  getReadSaveObj RDS serializer
getReadSaveObj.RDS <- function() {
    return(list(save = function(obj, filePath) {
        print("saving to ", filePath)
        base::save(obj, file = filePath)
    }, read = function(filePath) {
        print("Reading file ", filePath)
        return(base::load(filePath))
    }))
}
bnbsystems/ddt documentation built on May 24, 2019, 3:04 a.m.