summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-rnoaa/package.py
blob: 5e059a6b534980758c53a17aa70a9ccf7b305343 (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
# 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 RRnoaa(RPackage):
    """'NOAA' Weather Data from R.

    Client for many 'NOAA' data sources including the 'NCDC' climate 'API' at
    <https://www.ncdc.noaa.gov/cdo-web/webservices/v2>, with functions for each
    of the 'API' 'endpoints': data, data categories, data sets, data types,
    locations, location categories, and stations. In addition, we have an
    interface for 'NOAA' sea ice data, the 'NOAA' severe weather inventory,
    'NOAA' Historical Observing 'Metadata' Repository ('HOMR') data, 'NOAA'
    storm data via 'IBTrACS', tornado data via the 'NOAA' storm prediction
    center, and more."""

    cran = "rnoaa"

    license("MIT")

    version("1.3.8", sha256="57974b48162637e98888f041d6f0e580d3c60bd5008af2d2bc659491f0deb98a")
    version("1.3.0", sha256="4c421ad6e4c2b25e4dea5351c338aed70bea6e382562412d1dad825a50b0d161")
    version("0.8.4", sha256="fb9ae771111dd5f638c1eff3290abad2ff9cc7e68a6678bf2414433ebed2dbbf")

    depends_on("r-crul@0.7.0:", type=("build", "run"))
    depends_on("r-lubridate", type=("build", "run"))
    depends_on("r-dplyr", type=("build", "run"))
    depends_on("r-tidyr", type=("build", "run"))
    depends_on("r-tidyselect", type=("build", "run"), when="@1.3.0:")
    depends_on("r-ggplot2", type=("build", "run"))
    depends_on("r-scales", type=("build", "run"))
    depends_on("r-xml", type=("build", "run"))
    depends_on("r-xml2", type=("build", "run"))
    depends_on("r-jsonlite", type=("build", "run"))
    depends_on("r-gridextra", type=("build", "run"))
    depends_on("r-tibble", type=("build", "run"))
    depends_on("r-isdparser@0.2.0:", type=("build", "run"))
    depends_on("r-geonames", type=("build", "run"))
    depends_on("r-hoardr@0.5.2:", type=("build", "run"))
    depends_on("r-data-table", type=("build", "run"), when="@1.3.0:")

    depends_on("r-rappdirs", type=("build", "run"), when="@:1.3.0")