R/class_resources_repository_cas.R

Defines functions print.tar_resources_repository_cas resources_validate.tar_resources_repository_cas resources_repository_cas_new resources_repository_cas_init

resources_repository_cas_init <- function(
  envvars = NULL
) {
  resources_repository_cas_new(
    envvars = envvars
  )
}

resources_repository_cas_new <- function(
  envvars = NULL
) {
  force(envvars)
  enclass(environment(), c("tar_resources_repository_cas", "tar_resources"))
}

#' @export
resources_validate.tar_resources_repository_cas <- function(resources) {
  if (!is.null(resources$envvars)) {
    tar_assert_chr(resources$envvars)
    tar_assert_none_na(resources$envvars)
    tar_assert_named(resources$controller)
  }
}

#' @export
print.tar_resources_repository_cas <- function(x, ...) {
  cat(
    "<tar_resources_repository_cas>\n ",
    paste0(paste_list(as.list(x)), collapse = "\n  ")
  )
}

Try the targets package in your browser

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

targets documentation built on Oct. 3, 2024, 1:11 a.m.