R/tar_helper_raw.R

Defines functions tar_helper_raw

Documented in tar_helper_raw

#' @rdname tar_helper
#' @export
tar_helper_raw <- function(path = NULL, code = NULL) {
  tar_assert_chr(path)
  tar_assert_scalar(path)
  dir_create(dirname(path))
  writeLines(deparse_script_code(code), path)
  invisible()
}
wlandau/targets documentation built on April 14, 2025, 4:22 a.m.