Return a data frame with a path column instead of a list of paths for format = "file" #730
Closed
programLyrique
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Sorry, but I do not have plans to support this. I see what you mean, but it is not a good fit for how |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing a pipeline that has a target with branches, where each branch runs an external program that generate some files.
I want the target to track the external output files so I add
format = "file"
.However, I would also like to return some metadata about the run of the external program, for instance, the status code it returns, or the particular parameters passed to that program.
I can separate that into two targets, one that generates the data frame with the metadata and the path, and a child one, which has
format = "file"
, grasps the path column from the data frame and just tracks the file paths. But it makes it less flexible to use the metadata later in the pipeline.More generally, maybe it would be convenient to have a way to both track external files and some data handled directly in _targets at the same time for one target. What about being able to return a data frame with these data and a path column for a target with
format = "file"
?Beta Was this translation helpful? Give feedback.
All reactions