Citation of R packages directly on Quarto #7971
jospueyo
started this conversation in
Feature Requests
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
How nice it would be having a function to directly cite R packages in Quarto? Something like:
r citation(<package>)
and the output becoming a reference as any other reference.I tried doing a custom function with the following workflow:
citation()
rmarkdown::metadata$bibliography
to obtain the bibliography file.writeLines()
to add the reference to the bib file.However, the problem is that the changes in bibliography are persistent so it does not work when render the file a second time. I would be keen to do a pull request if I receive some guidance on how to surpass this problem.
Beta Was this translation helpful? Give feedback.
All reactions