# Copyright 2013-2022 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)


class RCca(RPackage):
    """Provides a set of functions that extend the 'cancor' function
    with new numerical and graphical outputs. It also include a
    regularized extension of the canonical correlation analysis to
    deal with datasets with more variables than observations."""

    cran = 'CCA'

    version('1.2.1', sha256='28febfce7c46039240346410e70f9d8795b536fc4e7e0d48d5370bd23cba9bd0')

    depends_on('r@2.10:', type=('build', 'run'))
    depends_on('r-fields', type=('build', 'run'))
    depends_on('r-fda', type=('build', 'run'))
