Replies: 1 comment 5 replies
-
Yeah, you're right. Thanks for the nice example. e934e5d should fix it. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when using
tar_quarto_rep()
the rendered quarto output (eg. *.html, *.pdf) seem to be placed in the main targets working directory, regardless of any path provided using theoutput_file
parameter inexecute_params
. This is related to #107, but I think different enough to warrant separate discussion:This behavior quickly clutters the working directory as the number of reports increases. It seems like the report must be rendered from the working directory in order to maintain access to the target store, however once rendering is complete the output no longer seems dependent on the working directory. The most straightforward solution is to manually move the rendered reports to a new directory for storage, but this defeats the purpose of using targets. I'm curious if a solution may be to provide a
storage_directory
oroutput_directory
parameter or argument to thetar_quarto
andtar_render
family of functions. Once rendered, the reports could be moved to this location (Eg.fs::file_move()
orfile.rename()
prior to being hashed/logged in storage?I realize this is an edge-case, but am curious if there may be other solutions? Presumably I could wrap
quarto::quarto_render()
and a function to move the rendered document?Beta Was this translation helpful? Give feedback.
All reactions