# Copyright 2013-2021 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 RLeaps(RPackage):
    """leaps: Regression Subset Selection"""

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

    version('3.0', sha256='55a879cdad5a4c9bc3b5697dd4d364b3a094a49d8facb6692f5ce6af82adf285')

# Copyright 2013-2021 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 RLeaps(RPackage):
    """Regression Subset Selection

    Regression subset selection, including exhaustive search.
    """

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

    version('3.1', sha256='3d7c3a102ce68433ecf167ece96a7ebb4207729e4defd0ac8fc00e7003f5c3b6')
    version('3.0', sha256='55a879cdad5a4c9bc3b5697dd4d364b3a094a49d8facb6692f5ce6af82adf285')

add version 3.1 to r-leaps (#21072)