Replies: 1 comment
-
Added in b55b172 library(targets)
list(
tar_target(
x,
warning("run_warning"),
format = tar_format(
read = function(path) {
readRDS(path)
},
write = function(object, path) {
warning("storage_warning")
saveRDS(object, path)
}
)
)
) tar_make(reporter = "silent")
tar_meta(x, warnings)
#> # A tibble: 1 Γ 2
#> name warnings
#> <chr> <chr>
#> 1 x run_warning. storage_warning |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Help
Description
I noticed recently that warnings coming from custom write functions in the
format
argument totar_target()
aren't in the data frame returned bytar_meta()
. Maybe that's intended to not confuse errors fromcommand
with errors from other places. If however that sounds like a bug, I can work out a reprex.Beta Was this translation helpful? Give feedback.
All reactions