summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-diagram/package.py
blob: c3cd1d416daf10e2d41da56c728c74d9fa2c38f4 (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
# 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 RDiagram(RPackage):
    """Functions for Visualising Simple Graphs (Networks), Plotting Flow
    Diagrams.

    Visualises simple graphs (networks) based on a transition matrix, utilities
    to plot flow diagrams, visualising webs, electrical networks, etc. Support
    for the book "A practical guide to ecological modelling - using R as a
    simulation platform" by Karline Soetaert and Peter M.J. Herman (2009),
    Springer. and the book "Solving Differential Equations in R" by Karline
    Soetaert, Jeff Cash and Francesca Mazzia (2012), Springer. Includes
    demo(flowchart), demo(plotmat), demo(plotweb)."""

    cran = "diagram"

    license("GPL-2.0-or-later")

    version("1.6.5", sha256="e9c03e7712e0282c5d9f2b760bafe2aac9e99a9723578d9e6369d60301f574e4")

    depends_on("r@2.01:", type=("build", "run"))
    depends_on("r-shape", type=("build", "run"))