GithubHelp home page GithubHelp logo

Use of gzip about bh HOT 3 CLOSED

eddelbuettel avatar eddelbuettel commented on August 17, 2024
Use of gzip

from bh.

Comments (3)

eddelbuettel avatar eddelbuettel commented on August 17, 2024

I can take a look but note first that you do not need Boost to open gzip'ed file. R already does it via all of read.table() and variants, and you can also do it in plain C/C++ code via gzopen() -- which should also "just work" because R is always built wiith that library.

As for "I can solve it this" that is indeed correct, but your package now becomes less portable as all users would have to have these libraries available "and visible". Unlikely on Windows. In short, this is the difference between using Boost as header-only (as BH) or using Boost full-fledged with linking. Some libraries and components only work in the latter way. It is up to you balance those costs and benefits.

from bh.

sanglier91 avatar sanglier91 commented on August 17, 2024

I didn't know about gzopen(). I'm going to change my code in order to use it. Thank you. Please let me know if you find the reason of the error.

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

Yes, gzopen() is gold. Been using it for decades (!!).

I told you the error. The way Boost implements this requires linking with Boost.

from bh.

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.