Nothing
bud_new <- function(
name = NULL,
settings = NULL,
index = NULL
) {
out <- new.env(parent = emptyenv(), hash = FALSE)
out$name <- name
out$settings <- settings
out$index <- index
enclass(out, bud_s3_class)
}
bud_s3_class <- c("tar_bud", "tar_target")
#' @export
target_read_value.tar_bud <- function(target, pipeline) {
parent <- pipeline_get_target(pipeline, target_get_parent(target))
target_ensure_value(parent, pipeline)
index <- target$index
object <- value_produce_slice(parent$value, index)
value_init(object, parent$settings$iteration)
}
#' @export
target_produce_reference.tar_bud <- function(target) {
reference_new(
parent = target_get_parent(target),
index = .subset2(target, "index")
)
}
#' @export
target_worker_extras.tar_bud <- function(target, pipeline, retrieval_worker) {
if_any(retrieval_worker, target_get_parent(target), character(0L))
}
#' @export
target_validate.tar_bud <- function(target) {
tar_assert_correct_fields(target, bud_new, optional = "value")
NextMethod()
tar_assert_int(target$index)
tar_assert_scalar(target$index)
tar_assert_finite(target$index)
tar_assert_ge(target$index, 1L)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.