Including Temporary Files in Quarto and Deleting afterwards #10077
-
DescriptionI want to generate some intermediate temporary qmd files but delete them afterwards to make my working directory folder clean. ```{r}
generate_qmd(path = "temporary.qmd")
```
{{< include temporary.qmd >}}
```{r}
file.remove("temporary.qmd")
``` However, there will be an error message: "could not find file temporary.qmd." To make things even worse, I have to create a Is there a workaround to this? Or should it be a feature request? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Use project scripts: https://quarto.org/docs/projects/scripts.html#pre-and-post-render |
Beta Was this translation helpful? Give feedback.
-
You're confusing execution orders of different parts of the document. |
Beta Was this translation helpful? Give feedback.
Use project scripts: https://quarto.org/docs/projects/scripts.html#pre-and-post-render