GithubHelp home page GithubHelp logo

Comments (4)

eddelbuettel avatar eddelbuettel commented on August 17, 2024

Do a dpkg -L r-cran-bh: it is an empty virtual shell. For a reason: BH has a footprint of 150mb installed and on Debian you do not need it. Use libboost-all-dev instead.

That said, why did you think boost_lib <- system.file("include", package = "BH") was a good idea? Besides the obvious gotcha of calling something _lib when it checks for includes.

Anyway, if this is handed down from rstan than you may have not choice but to install.packages("BH") and waste those 150mb if that is how rstan wants to access it. It should know better (we often use configure or cmake).

In any event this is not an issue of the CRAN package BH where you filed the issue but with the (trying to be helpful) Debian package r-cran-bh. I stand behind both so I can help so fire up if you have questions.

from bh.

robmoss avatar robmoss commented on August 17, 2024

Sorry for filing the issue here rather than Debian/Ubuntu bug trackers, I wasn't sure which was the most appropriate. It's obvious in hindsight.

That said, why did you think boost_lib <- system.file("include", package = "BH") was a good idea? Besides the obvious gotcha of calling something _lib when it checks for includes.

This is how rstan locates the boost header files when compiling a model (at least, on my Ubuntu and Debian machines).

I knew that r-cran-bh is an empty package, but I didn't appreciate that install.packages("BH") installed a second copy of the boost header files. So I assumed that the r-cran-bh package would (or should) work with rstan without any further actions on my part.

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

It is kinda the other way around:

  • install.packages("BH") is an R function that does not know it is on Debian, it installs full BH
  • r-cran-bh is a small hack attempting to save the second installation of Boost (besides libboost-*)
  • rstan does not know about point 2) (not should it) so it ask "where is BH"
  • what should really happy is for Boost to work with pkg-config because a ton of CRAN packages use that to find include and library locations

from bh.

robmoss avatar robmoss commented on August 17, 2024

Thank you very much for the explanation Dirk.

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.