Error running simple pipeline with tar_files and format = "auto" #1425
-
Help
DescriptionHey Will Thanks for all your work on using It's possible I've misunderstood something but even a super simple pipeline fails on its first run when I use readr::write_csv(tibble::tibble(x1 = 1, x2 = 1), "a.csv")
readr::write_csv(tibble::tibble(x1 = 1, x2 = 1), "b.csv")
targets::tar_script({
targets::tar_option_set(format = "auto")
library("targets")
library("tarchetypes")
library("readr")
library("tibble")
list(
tarchetypes::tar_files(paths, c("a.csv", "b.csv")),
targets::tar_target(
data,
readr::read_csv(paths, col_types = "dd"),
pattern = map(paths)
)
)
})
# first run fails
targets::tar_make()
targets::tar_meta(fields = any_of("error"), complete_only = TRUE)$error
# [1] "_store_ no applicable method for store_write_path applied to an object of class ctar_auto, tar_store"
# if you run again immediately after pipeline completes successfully
targets::tar_make() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for letting me know, and for the reprex. Turns out this is a bug introduced in version 1.9.0. Fixed in 4e70579 |
Beta Was this translation helpful? Give feedback.
Thanks for letting me know, and for the reprex. Turns out this is a bug introduced in version 1.9.0. Fixed in 4e70579