Skip to content

running aws pipeline with tar_dir #492

Closed Answered by yonicd
yonicd asked this question in Help
Discussion options

You must be logged in to vote

figured it out:

tar_dir({ 
  tar_script({
    write_mean <- function(data) {
      tmp <- tempfile()
      writeLines(as.character(mean(data)), tmp)
      tmp
    }
    tar_option_set(resources = list(bucket = "abc"))
    list(
      tar_target(data, rnorm(5),format = 'aws_qs'),
      tar_target(mean_file, write_mean(data),format = 'aws_file')
    )
  }, 
    ask = FALSE,
    library_targets = TRUE
  )
  tar_make()
})
* run target data
* run target mean_file
* end pipeline

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yonicd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant