GithubHelp home page GithubHelp logo

std::cout in R package BH about bh HOT 6 CLOSED

eddelbuettel avatar eddelbuettel commented on August 17, 2024
std::cout in R package BH

from bh.

Comments (6)

eddelbuettel avatar eddelbuettel commented on August 17, 2024

We should be able to narrow this down to somewhere in your package / its use of BH.

By way of background:

  • BH currently has about 50 reverse depends, these all build without the std::cout issue -- as they are all on CRAN
  • I was wrestling for long time with another Boost using package of mine, and a colleague eventually tracked it down deep inside of Boost Fusion where std::cout was used as a fallback when no other output was define -- and we were able to override with Rcpp::Rcout which then uses the R stream so that the package is now on CRAN

So can I suggest that you try a minimal usage case, and build it up until you reach the full complexity of your package. Somewhere on the way we will probably find the Boost component tickling this.

Patching BH itself is somewhat out of the question, and as mentioned above, has not been needed.

from bh.

jisuk1 avatar jisuk1 commented on August 17, 2024

I will try to analyze my package in detail. Thank you!

Could you point me to the package you mentioned above? I would like to check their source and how they overrided with Rcpp::Rcout.

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

It was RcppStreams and this change -- but I consider this to be somewhat specific to the package.

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

Also, when I grep for std::cout in your sources I still see some not-commented out uses (though I did only look very briefly and may have missed #define statements around them). But if that is the case, you may want to make sure you take care of those before turning to Boost...

from bh.

jisuk1 avatar jisuk1 commented on August 17, 2024

I see. Thanks! I will try to analyze my code more carefully.

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

No worries. I will close this now, please do feel free to re-open it when you find something needing a change in BH.

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.