R/class_nonexportable.R

Defines functions store_unmarshal_value.tar_nonexportable store_marshal_value.tar_nonexportable

#' @export
store_marshal_value.tar_nonexportable <- function(store, target) {
  object <- store_marshal_object(target$store, target$value$object)
  target$value <- value_init(object, iteration = target$settings$iteration)
}

#' @export
store_unmarshal_value.tar_nonexportable <- function(store, target) {
  object <- store_unmarshal_object(target$store, target$value$object)
  target$value <- value_init(object, iteration = target$settings$iteration)
}

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.