R/class_rds.R

Defines functions store_write_path.tar_rds store_read_path.tar_rds store_assert_format_setting.rds store_class_format.rds

#' @export
store_class_format.rds <- function(format) {
  c("tar_rds", "tar_store")
}

#' @export
store_assert_format_setting.rds <- function(format) {
}

#' @export
store_read_path.tar_rds <- function(store, path) {
  readRDS(path)
}

#' @export
store_write_path.tar_rds <- function(store, object, path) {
  saveRDS(object = object, file = path, version = 3L)
}

Try the targets package in your browser

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

targets documentation built on Oct. 12, 2023, 5:07 p.m.