https://github.com/mkearney/rtweet_citations
📝 tracking rtweet citations
https://github.com/mkearney/rtweet_citations
bib citations rtweet
Last synced: 3 months ago
JSON representation
📝 tracking rtweet citations
- Host: GitHub
- URL: https://github.com/mkearney/rtweet_citations
- Owner: mkearney
- Created: 2018-02-25T20:14:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T15:47:54.000Z (over 6 years ago)
- Last Synced: 2025-03-04T23:43:33.270Z (over 1 year ago)
- Topics: bib, citations, rtweet
- Language: TeX
- Homepage:
- Size: 844 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
bibliography: rtweet_citations.bib
csl: https://raw.githubusercontent.com/citation-style-language/styles/master/apa-single-spaced.csl
---
# rtweet_citations
A repository for tracking citations/references/uses of [rtweet](http://rtweet.info) in published articles because (a) people aren't always great about using appropriate citations for R packages, (b) Google scholar hasn't been great at locating/tracking rtweet citations, and (c) I'd like to one day get tenure :).
## Bibliography list
```{r, results='asis', echo = FALSE}
## update pdf version
sh <- system("xelatex bib.tex", intern = TRUE)
sh <- system("biber bib", intern = TRUE)
sh <- system("xelatex bib", intern = TRUE)
sh <- system("xelatex bib", intern = TRUE)
unlink(
grep("\\.tex$|\\.pdf$",
list.files(pattern = "bib\\."),
value = TRUE, invert = TRUE)
)
## print to README
biblio <- bibtex::read.bib("rtweet_citations.bib")
biblio <- biblio[order(purrr::map_int(biblio, ~ as.integer(.x$year)), decreasing = TRUE)]
bibs <- lapply(biblio, function(x) capture.output(print(x)))
bibs <- lapply(bibs, paste, collapse = " ")
bibs <- stringr::str_wrap(bibs, 100)
bibs <- gsub("\n", "
", bibs)
padding <- c(rep(". ", length(bibs) - 9), rep(". ", 9))
cat(paste0("", rev(seq_along(bibs)), padding, bibs, collapse = "\n\n"))
cat("@media (min-width: 1200px)
.container {
width: 1370px !important;
}", fill = TRUE)
```
@media (min-width: 1200px)
.container {
width: 1370px !important;
}