mjwestgate / revtools

Tools to support research synthesis in R
https://revtools.net
48 stars 26 forks source link

read_bibliography fails for RIS like files with only one record and no ending delimiter #37

Open mtnbikerjoshua opened 2 years ago

mtnbikerjoshua commented 2 years ago

When read_bibliography tries to read a Pubmed file with only one reference in it, it returns "unknown reference delimiter." The cause of the issue is that a reference list downloaded from Pubmed with only one reference in it has no "ER -" delimiter at the end of the file. Adding a new line with "ER -" to the end of the file resolves the issue. Here is an example file: pubmed-27069645.txt.