summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-grbase/package.py
blob: ce963aa539325ee246588b57ec4964c4e629370b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class RGrbase(RPackage):
    """A Package for Graphical Modelling in R.

    The 'gRbase' package provides graphical modelling features used by e.g. the
    packages 'gRain', 'gRim' and 'gRc'. 'gRbase' implements graph algorithms
    including (i) maximum cardinality search (for marked and unmarked graphs).
    (ii) moralization, (iii) triangulation, (iv) creation of junction tree.
    'gRbase' facilitates array operations, 'gRbase' implements functions for
    testing for conditional independence. 'gRbase' illustrates how hierarchical
    log-linear models may be implemented and describes concept of graphical
    meta data.  The facilities of the package are documented in the book by
    Hojsgaard, Edwards and Lauritzen (2012, <doi:10.1007/978-1-4614-2299-0>)
    and in the paper by  Dethlefsen and Hojsgaard, (2005,
    <doi:10.18637/jss.v014.i17>).  Please see 'citation("gRbase")' for citation
    details.  NOTICE  'gRbase' requires that the packages graph, 'Rgraphviz'
    and 'RBGL' are installed from 'bioconductor'; for installation instructions
    please refer to the web page given below."""

    cran = "gRbase"

    version("1.8.9", sha256="dacab442d896e4593c6196e8446b75c4144a1c4ebc3f039dc624516038193d7e")
    version("1.8.8", sha256="fdd5d1ca8adb74e8bd2b210c9a652a10e60a90b40450cd8a295b06af41acf9db")
    version("1.8.7", sha256="01d77e1b029ac22b4e13f07384285f363733a42aba842eddfc5e1aceea99f808")
    version("1.8-6.7", sha256="aaafc7e1b521de60e1a57c0175ac64d4283850c3273bd14774cf24dabc743388")
    version("1.8-3.4", sha256="d35f94c2fb7cbd4ce3991570424dfe6723a849658da32e13df29f53b6ea2cc2c")

    depends_on("r+X", type=("build", "run"))
    depends_on("r@3.0.2:", type=("build", "run"))
    depends_on("r@3.6.0:", type=("build", "run"), when="@1.8-6.7:")
    depends_on("r-biocmanager", type=("build", "run"), when="@1.8.7:")
    depends_on("r-graph", type=("build", "run"))
    depends_on("r-rbgl", type=("build", "run"))
    depends_on("r-rgraphviz", type=("build", "run"), when="@1.8-6.7:")
    depends_on("r-igraph", type=("build", "run"))
    depends_on("r-magrittr", type=("build", "run"))
    depends_on("r-matrix", type=("build", "run"))
    depends_on("r-rcpp@0.11.1:", type=("build", "run"))
    depends_on("r-rcppeigen", type=("build", "run"))
    depends_on("r-rcpparmadillo", type=("build", "run"))