Giter VIP home page Giter VIP logo

Comments (4)

ottlngr avatar ottlngr commented on September 24, 2024 2

Hi, thanks for your messages, @gorkang and @HedvigS .

Indeed bib2df currently has problems parsing a file if the key-value pairs are not separated by linebreaks. I'm currently working on another package but soon will be working on bib2df again. Then I will change the whole mechanism to be indenpendent on linebreaks.

By then the way described by @gorkang is a good way to go.

from bib2df.

gorkang avatar gorkang commented on September 24, 2024

OK, still some issues, but I think I found a relatively simple solution:

This has the weird parting issues (new columns are created for some of the works)

  bib2df("DEV/Bibtex/works_G.bib") 

screenshot from 2018-02-17 14-24-29

With this we correct the main issue

  temp = read_file("works_G.bib") %>% 
    gsub("@(.+?),", "\n@\\1,\n", .) %>%
    gsub("},", "},\n", .) 
  
  write_file(temp, "works_G_corrected.bib")
  
  bib2df("DEV/Bibtex/works_G_corrected.bib") 

screenshot from 2018-02-17 14-35-14

Maybe it could be nice to integrate a cleaning up function to get rid of the most common issues?

from bib2df.

HedvigS avatar HedvigS commented on September 24, 2024

I also had this problem with a file, am now going to do the gsub fix as well. If there are any news on any changes in the package I hope they'll be posted in this thread. Thanks @xrotwang for noticing this thread.

from bib2df.

HedvigS avatar HedvigS commented on September 24, 2024

Yep, I'm doing the gsub thing in the meantime and it's work.

Thanks again for a great package!

from bib2df.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.