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) {
  store_class_format_rds
}

store_class_format_rds <- 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 June 8, 2025, 10:24 a.m.