Replies: 2 comments 7 replies
-
Have you considered using the knitr cache? |
Beta Was this translation helpful? Give feedback.
7 replies
-
I haven't implemented this yet (still just learning quarto), but would this be a good use-case for project profiles? I think something like this might work:
project:
render:
- article.qmd
- supplemental.qmd
...
...
project:
pre-render: my_prerender.R
Then at the command line: # without prerender
quarto render
# with prerender
quarto render --profile include-prerender |
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.
-
Hi all,
As a part of attempting to do reproducible research, I am testing out quarto for my scientific article I am working on as part of my PhD studies. I have a project consisting of two documents:
article.qmd
andsupplemental.qmd
. I edit these in parallel, as I go. In the_quarto.yml
I specify differentpre-render
targets that simply are R scripts that load raw data, produces figures (saved to a figure directory), produce certain numerics and statistics (saved to a .rds file) that I later reference in the documents. Regardless of if I doquarto render
, for the entire project or render individual documents withquarto render article.qmd
orquarto render supplemental.qmd
the pre-render target is run. This adds unnecessary time to the process, especially since nothing has changed. As part of a next step I will incorporate another pre-render script that executes a Stan model, then each render of the quarto project will take close to 30 minutes on my work laptop.I noticed that I can use manage execution of documents using the
freeze
option, but it seems to not work for pre-render targets. An option to do something similar tofreeze: auto
for pre-render targets would be very useful. Currently I just comment it out when I focus on the textual part.Is there anyway to freeze pre-render or get a similar functionality? Or is commenting out the pre-render line the only workaround for now?
Thanks for a neat project!
Beta Was this translation helpful? Give feedback.
All reactions