Replies: 4 comments 5 replies
-
If Quarto implements such feature, it would also need to do so for all the other languages (very unlikely). If you use explicit library/require, you could simply leverage See https://rstudio.github.io/renv/reference/dependencies.html. All this could be implemented as an R script used in pre-render project scripts, see https://quarto.org/docs/projects/scripts.html#pre-and-post-render. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. I hadn't thought of This could make a fabulous, concrete example of how to use pre-post-render in a project! This topic (like many others in Quarto docs) is sorely lacking useful examples. |
Beta Was this translation helpful? Give feedback.
-
Frankly, I don't think this is a stance Quarto should publicize. Still, I'll move discussion of this particular problem to RStudio discussion Point taken about Q&A vs. Feature Request |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for these very helpful suggestions. I agree that an example gallery would solve both my (and others) problems and yours -- it would be easy to just link to these in the documentation. User-contributed examples would broaden the scope. Your Awesome-Quarto could serve as a hub for this. |
Beta Was this translation helpful? Give feedback.
-
Description
How to accumulate
packages.bib
used in a Quarto bookI'm writing a book with multiple chapters and wish to generate a
packages.bib
file atthe end containing citations for all the packages that were loaded via
library()
while the book is compiled by "Render book". I know how to do this for a vignette, but not
for a multi-chapter quarto book. If this is currently difficult in Quarto, solving this would be a great New Feature
In vignettes I use the following to automatically generate a
packages.bib
file for allthe packages used, so that I can easily cite them as needed:
actually loaded by
library()
## References
I use this chunk to join.to.cite
with.packages()
and write this out usingknitr::write_bib()
:Beta Was this translation helpful? Give feedback.
All reactions