Dear John

Your .bib file did not make it through the system as only a very limited set of attachments is supported. Try to make a minimal .bib file which triggers the problem by splitting your file in half, testing each half, repeat until you get the smallest file which triggers the error. Hopefully that will be a single entry which you can then include in your post. It also increases the chances of someone looking at it as a large .bib file is going to deter people.

Michael

On 05/11/2020 02:38, John wrote:
Hi,

     I tried to read a bib file by  "read_bibliography" function in
"revtools" package, but I got an error message but don't know how to fix
it. Anyone can help? Thank you so much!!

###
    library(revtools)
    data2 <- read_bibliography("mlf_ref201105_2.bib", return_df = FALSE)
###

Error message:
####
Error in if (any(names(entry_list) == "author")) { :
   missing value where TRUE/FALSE needed
####

    My "mlf_ref201105_2.bib" file is attached.

    I have no problem reading the built-in ris file:

####
file_location <- system.file(
   "extdata",
   "avian_ecology_bibliography.ris",
   package = "revtools")
x <- read_bibliography(file_location)
####
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


--
Michael
http://www.dewey.myzen.co.uk/home.html

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to