summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-threejs/package.py
blob: aba75b1fd85338422643944ace9d6129298e8c50 (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
# 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 RThreejs(RPackage):
    """Interactive 3D Scatter Plots, Networks and Globes.

    Create interactive 3D scatter plots, network plots, and globes using the
    'three.js' visualization library ("https://threejs.org/")."""

    cran = "threejs"

    license("MIT")

    version("0.3.3", sha256="76c759c8b20fb34f4f7a01cbd1b961296e1f19f4df6dded69aae7f1bca80219c")
    version("0.3.1", sha256="71750b741672a435ecf749b69c72f0681aa8bb795e317f4e3056d5e33f6d79e8")
    version("0.2.2", sha256="41fe949490fbe0f71e39b0a144791da427bd7361d027579cb4a002ed53520cc5")

    depends_on("r@3.0.0:", type=("build", "run"))
    depends_on("r-igraph@1.0.0:", type=("build", "run"), when="@0.3.1:")
    depends_on("r-htmlwidgets@0.3.2:", type=("build", "run"))
    depends_on("r-base64enc", type=("build", "run"))
    depends_on("r-crosstalk", type=("build", "run"), when="@0.3.1:")

    depends_on("r-matrix", type=("build", "run"), when="@0.2.2")
    depends_on("r-jsonlite", type=("build", "run"), when="@0.2.2")