# Copyright 2013-2019 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 import *


class RReordercluster(RPackage):
    """Tools for performing the leaf reordering for the dendrogram
    that preserves the hierarchical clustering result and at the
    same time tries to group instances from the same class together."""

    homepage = "https://cloud.r-project.org/package=ReorderCluster"
    url      = "https://cloud.r-project.org/src/contrib/ReorderCluster_1.0.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/ReorderCluster"

    version('1.0', sha256='a87898faa20380aac3e06a52eedcb2f0eb2b35ab74fdc3435d40ee9f1d28476b')

    depends_on('r@2.10:', type=('build', 'run'))
    depends_on('r-gplots', type=('build', 'run'))
    depends_on('r-rcpp@0.11.0:', type=('build', 'run'))
