Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Cite R Packages Like R Markdown | Credibly Curious #58

Open
utterances-bot opened this issue Mar 19, 2021 · 3 comments
Open

How to Cite R Packages Like R Markdown | Credibly Curious #58

utterances-bot opened this issue Mar 19, 2021 · 3 comments

Comments

@utterances-bot
Copy link

How to Cite R Packages Like R Markdown | Credibly Curious

https://www.njtierney.com/post/2021/03/19/cite-r-pkgs/

Copy link

Thanks for this helpful post Nick. Perhaps something like this may help:

library(clipr)
library(tidyverse) # for the %>%
utils::toBibtex(citation("rmarkdown")) %>% clipr::write_clip(content = .)

If the purpose is just to copy the main BibTeX entries for an R package via the utils::citation()

Copy link
Member

yihui commented Mar 19, 2021

Even if you write the text to clipboard, it still requires two manual steps (1. run the code; 2. paste and save). Here is how to fully automate it: https://bookdown.org/yihui/rmarkdown-cookbook/write-bib.html

@njtierney
Copy link
Collaborator

Amazing, thank you both, @shamindras and @yihui !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants