R/class_fst_tbl.R

Defines functions store_get_packages.tar_fst_tbl store_convert_object.tar_fst_tbl store_read_path.tar_fst_tbl store_assert_format_setting.fst_tbl store_class_format.fst_tbl

#' @export
store_class_format.fst_tbl <- function(format) {
  c("tar_fst_tbl", "tar_fst", "tar_store")
}

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

#' @export
store_read_path.tar_fst_tbl <- function(store, path) {
  tibble::as_tibble(fst::read_fst(path))
}

#' @export
store_convert_object.tar_fst_tbl <- function(store, object) {
  tibble::as_tibble(as.data.frame(object))
}

#' @export
store_get_packages.tar_fst_tbl <- function(store) {
  c("tibble", NextMethod())
}

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.