I hava a set of DOIs and would like to download a vector with the publication types per DOI (e.g. Journal article, book, monograph,...) with help of the crossref api and the rcrossref package.
I tried following, but that doesn't work:
library("rcrossref")
cr_types(doi = "10.1109/TASC.2010.2088091")
A result I only get a metadata list, but not the record type of this publication. When I tried the same for the abstract of a publication, it worked:
cr_abstract(doi = "10.1109/TASC.2010.2088091")
Has someone an idea? Best regards, Richard
I think you can do it like this.
call it like this:
This function is a bit convoluted and slow, but considering that a publication list or a list of references contains typically a few 100 items max, it might get the job done with some polishing.
I don't know how robust the
read.bib()function is. For inconsistently written entries it might fail to return a correctbibtype-