A C++ library for Bayesian modeling, mainly through Markov chain Monte Carlo, but with a few other methods supported. BOOM = "Bayesian Object Oriented Modeling". It is also the sound your computer makes when it crashes.
GNU Lesser General Public License v2.1
35
stars
14
forks
source link
R pkgs: consider moving dependencies to `Imports` instead of `Depends` #67
Boom (and by extension bsts and BoomSpikeSlab) Depends on MASS instead of importing it. Would you consider putting MASS in Imports instead of Depends? (And also the other packages in Depends in bsts and BoomSpikeSlab?)
The main difference is that where Imports just loads the package, Dependsattaches it. There are no other differences.
[...]
Unless there is a good reason otherwise, you should always list packages in Imports not Depends.
That's because a good package is self-contained, and minimises changes to the global environment (including the search path).
Field ‘Depends’ should nowadays be used rarely, only for packages which are intended to be put on the search path to make their facilities available to the end user (and not to the package itself)
The main issue is that Depends messes up the search path with packages not explicitly attached by the user. The only upside of Depends is that the package user can call functions from the (implicitly) attached package. But in this case it is not strictly necessary for users of Boom (or bsts) to call functions from MASS.
Boom (and by extension bsts and BoomSpikeSlab)
Depends
on MASS instead of importing it. Would you consider putting MASS inImports
instead ofDepends
? (And also the other packages inDepends
in bsts and BoomSpikeSlab?)From R Packages:
Or from WRE:
The main issue is that
Depends
messes up the search path with packages not explicitly attached by the user. The only upside ofDepends
is that the package user can call functions from the (implicitly) attached package. But in this case it is not strictly necessary for users of Boom (or bsts) to call functions from MASS.For a more in-depth treatment see also https://github.com/leeper/Depends