ropensci / bibtex

bibtex parser for R
https://docs.ropensci.org/bibtex/
35 stars 12 forks source link

fatal flex scanner internal error #14

Open MichelMoser opened 7 years ago

MichelMoser commented 7 years ago

Hello, I am trying to use bibtex package to mine a bibtex file for certain keywords. When trying the read.bib method, i get following error:

bib <- read.bib( package = "bibtex" )
Error in read.bib(package = "bibtex") : lex fatal error:
fatal flex scanner internal error--end of buffer missed

sessionInfo()

R version 3.1.3 (2015-03-09)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)

locale:
[1] LC_COLLATE=German_Switzerland.1252  LC_CTYPE=German_Switzerland.1252    LC_MONETARY=German_Switzerland.1252
[4] LC_NUMERIC=C                        LC_TIME=German_Switzerland.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] bibtex_0.4.0

loaded via a namespace (and not attached):
[1] tools_3.1.3

Thanks

crsh commented 7 years ago

I have encountered this error with very long bib files, too. I have implemented a hack to circumvent this problem in one of my packages.

MichelMoser commented 7 years ago

Thank you, i will have a look for it. Could i use CITR also to do some mining of bibtex documents (search by keywords on different fields like author or abstract? Or is it just for citation entries in markdown text?

crsh commented 7 years ago

It's just for inserting citations. But you are welcome to use the code for your purposes.

romainfrancois commented 7 years ago

@MichelMoser can you prepare a reprex please