mjwestgate / revtools

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

Error using write_bibliography #29

Open ellereve opened 4 years ago

ellereve commented 4 years ago

Hi,

I used read_bibliography to read in a RIS txt file and that went smoothly. I then made subsets of the data and tried to save each as a RIS file again, but I received the error:

Error in data.frame(tag = c("startpage", "endpage"), entry = page.sep,  : 
  arguments imply differing number of rows: 2, 3

I thought it was because of the colon, but I tried on a different subset with a note in the page numbers and it worked. The small RIS sample can be found here.

mjwestgate commented 4 years ago

Hi! This isn't fixed in revtools yet; but it should be fixed in synthesisr, which is the package that revtools will use for data import in future. If you import your files using synthesisr::read_refs instead of revtools::read_bibliography, then you can export using synthesisr::write_refs without getting this error.

ellereve commented 4 years ago

Good to know. Thanks!