ropensci / bib2df

Parse a BibTeX file to a tibble
https://docs.ropensci.org/bib2df
99 stars 23 forks source link

Add df2bib() function and test suite #5

Closed leeper closed 7 years ago

leeper commented 7 years ago

This PR does a couple of things:

  1. Modifies the internals of bib2df() slightly
  2. Standardizes the return value of bib2df() so it always returns a tibble with the mandatory entry fields (even if they are absent from the specific file being imported)
  3. Adds a df2bib() function that can write the imported tibble to disk (#3)
  4. Adds a testthat-based test suite of functionality of both bib2df() and the new df2bib()