jasonratcliff / thesis

Source code and data for MSc thesis
https://scholarworks.uni.edu/etd/1108
Other
0 stars 0 forks source link

Ensure BibTeX R package entries have up-to-date version records #51

Open jasonratcliff opened 3 years ago

jasonratcliff commented 3 years ago
# BibTeX ----
library(bibtex)

bib <- read.bib(file = "inst/manuscript/references.bib")

bib %>%
  purrr::keep(.x = ., ~ grepl("R [Pp]ackage [Vv]ersion", .x)) %>%
  purrr::map(.x = ., .f = function(bibE) {
    if (!is.null(bibE[1]$note)) {
      bibE[1]$note
    }
  })