Citation of R packages directly on Quarto #7971
jospueyo
started this conversation in
Feature Requests
Replies: 2 comments
-
Here're existing solutions to do this: Being the developer of pakret, I'll naturally recommend it over the other two. Now to be a bit more objective, pakret is simpler to use and a lot more flexible. Compared to grateful and softbib, pakret offers the following advantages:
|
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
-
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