Code Monkey home page Code Monkey logo

Comments (7)

katrinleinweber avatar katrinleinweber commented on May 27, 2024

Ah, no, sorry! It might not be an issue in the BacDive data, but in the way R expects the escape sequences: jeroen/jsonlite#47. I wonder whether it might be possible to detect an R client, and then deliver \\n instead of \n dynamically?

from bacdiver.

katrinleinweber avatar katrinleinweber commented on May 27, 2024

Fixed by cae151d.

from bacdiver.

katrinleinweber avatar katrinleinweber commented on May 27, 2024

Whoa! The above dataset doesn't contain that sample any more:

screen shot 2018-07-31 at 12 58 54

from bacdiver.

katrinleinweber avatar katrinleinweber commented on May 27, 2024

gsub(
pattern = "[[:space:]]+",
replacement = " ",
perl = TRUE,
# Prevent "lexical error: invalid character inside string."
# https://github.com/jeroen/jsonlite/issues/47

is a bit stupid. There should be a specific purging of invalidly escaped characters, not of all space characters.

from bacdiver.

katrinleinweber avatar katrinleinweber commented on May 27, 2024

Since this changes the output datasets, it might as well be the reason to bump the semantic version to 1.0. #14 also supports this.

from bacdiver.

katrinleinweber avatar katrinleinweber commented on May 27, 2024

tested with retrieve_data("Bacillus"), which downloaded about 1.3k datasets without escaping errors.

from bacdiver.

katrinleinweber avatar katrinleinweber commented on May 27, 2024

No update to v1.0 after all, since some other kinks should be ironed out first (#68, #84, etc). v0.5 it is!

from bacdiver.

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.