summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-reproducible/package.py
blob: 94b3089e4bb62b7b65b507ebe8a834221531bb3d (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
48
49
50
51
52
# 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 RReproducible(RPackage):
    """A Set of Tools that Enhance Reproducibility Beyond Package Management.

    Collection of high-level, machine- and OS-independent tools for making
    deeply reproducible and reusable content in R. The two workhorse functions
    are Cache and prepInputs; these allow for: nested caching, robust to
    environments, and objects with environments (like functions); and data
    retrieval and processing in continuous workflow environments. In all cases,
    efforts are made to make the first and subsequent calls of functions have
    the same result, but vastly faster at subsequent times by way of checksums
    and digesting. Several features are still under active development,
    including cloud storage of cached objects, allowing for sharing between
    users. Several advanced options are available, see ?reproducibleOptions."""

    cran = "reproducible"

    maintainers("dorton21")

    license("GPL-3.0-only")

    version("1.2.16", sha256="ec504cdc1adf305cd008ce65eff226e3cb60b7a454b2c8b98a871c84458546ae")
    version("1.2.10", sha256="fcee3aeb9d38c561c95df8663614ff0ed91a871719730766171b4ed19c82f729")
    version("1.2.8", sha256="6f453016404f6a2a235cb4d951a29aa7394dc3bd0b9cfc338dc85fb3d5045dd5")
    version("1.2.4", sha256="0525deefa6a0713c3fe2da8bfc529f62d6352bebf2ef08866503b4853412f149")

    depends_on("r@3.5:", type=("build", "run"))
    depends_on("r@3.6:", type=("build", "run"), when="@1.2.8:")
    depends_on("r@4.0:", type=("build", "run"), when="@1.2.10:")
    depends_on("r-data-table@1.10.4:", type=("build", "run"))
    depends_on("r-dbi", type=("build", "run"))
    depends_on("r-digest", type=("build", "run"))
    depends_on("r-fpcompare", type=("build", "run"))
    depends_on("r-glue", type=("build", "run"))
    depends_on("r-lobstr", type=("build", "run"), when="@1.2.10:")
    depends_on("r-magrittr", type=("build", "run"))
    depends_on("r-raster", type=("build", "run"))
    depends_on("r-raster@3.5-15:", type=("build", "run"), when="@1.2.10:")
    depends_on("r-rsqlite", type=("build", "run"))
    depends_on("r-rlang", type=("build", "run"))
    depends_on("r-sp@1.4-2:", type=("build", "run"))
    depends_on("unrar", type=("build", "run"))

    depends_on("r-gdalutilities", type=("build", "run"), when="@1.2.8")
    depends_on("r-require", type=("build", "run"), when="@:1.2.10")