Replies: 1 comment
-
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello
I am developing a scientific manuscript for eventual submission to a peer-reviewed journal. For this, I've adopted the 'manuscript' project type. From past experience with Rmarkdown/bookdown projects, I have an appreciation for separating the content/code into separate files as opposed to a single very large rmd/qmd file. To facilitate this, I've adopted the use of additional notebook *.qmd files to handle generation of specific figures. And, I've created a content directory that has
introduction.qmd
,methods.qmd
,results.qmd
etc.So, my directory structure looks something like the following:
For my
_quarto.yml
file, I have the following specified:Within the
index.qmd
file I have all of the typical scholarly writing YAML frontmatter (e.g. title, author, affiliatons, abstract, etc) and then just the following to specify the content includesWithin those content files, I'll take a similar approach to include embeds from other notebooks for my figures. For example
With that background on my setup and reasoning, here are a few things I've noticed while developing and some questions for advice and best practices moving forward. I'll note that I'm largely using Positron these days but in discussions with a colleague using RStudio, I think most of these observations and questions are relevant to both IDEs. Also, I realize there's a chance some of my questions and observations below are more relevant to the IDE than Quarto. If so, I'll be happy to move those topics over to the Positron discussions.
My Questions & Observations:
index.qmd
and then make and edit tomethods.qmd
as soon as I savemethods.qmd
, the methods notebook re-renders. But, the full project does not. So, I have to jump over toindex.qmd
and re-render/preview. Is this expected behavior? Is there a way to trigger a preview update when dependent files are updated? It might be helpful if I had the option to configure quarto such that runningquarto preview
would default to rendering the full project and rely onquarto preview methods.qmd
to preview a specific file.index.qmd
from the command palette. Then, if I run Preview again, the content is fully updated. Preview doesn't always seem so good at cleaning up extra files. So, I am regularly initiating a full render to clean things up (especially before committing to version control)_quarto.yml
. This is largely because I don't fully understand how it might be impacting the output of preview/render in this situation and I was suspicious it might be the cause for some of the times when content wasn't fully updating. Ideally, freeze would be aware of changes to either the main article file or any dependent files and cache those results so the full site doesn't have to update each time a small piece is updated.index.qmd
to propagate to the other notebooks? I think I know the answer to this and that each notebook is fully independent. I'm specifically thinking about this with respect to loading libraries or working with common data objects. It seems I need to repeat calls to load libraries/objects for each notebook. I was hoping, for instance, that I could have an R code chunk withinindex.qmd
that loads all the libraries needed in a central place. Similarly, such an approach would be useful for setting ggplot themes or other variables.Thank you for your time both in the development of Quarto but also to answer these questions and help me wrap my head around the optimal workflow for manuscripts. I've spent quite a bit of time reading through the documentation and it has been a great resource. These are questions I just couldn't fully grasp from the documentation so I appreciate having the opportunity for further engagement.
Beta Was this translation helpful? Give feedback.
All reactions