r-compositions: new package, including its dependencies (#9921)

* r-compositions: new package, including its dependencies

* Include the list_url for the R package archive dir

* Added explicit version ranges on dependencies, as per the relevant CRAN pages
This commit is contained in:
Neil Flood 2018-11-24 10:06:57 +10:00 committed by Adam J. Stewart
parent 3557b6e149
commit 2e510413c3
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# Copyright 2013-2018 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 RBayesm(RPackage):
"""Bayesian Inference for Marketing/Micro-Econometrics"""
homepage = "https://cran.r-project.org/web/packages/bayesm/index.html"
url = "https://cran.r-project.org/src/contrib/bayesm_3.1-0.1.tar.gz"
list_url = "https://cran.r-project.org/src/contrib/Archive/bayesm"
version('3.1-0.1', '34998382cafd3e7972d8a03245eac768')
depends_on('r@3.2.0:', type=('build', 'run'))
depends_on('r-rcpp@0.12.0:', type=('build', 'run'))
depends_on('r-rcpparmadillo', type=('build', 'run'))

View File

@ -0,0 +1,22 @@
# Copyright 2013-2018 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 RCompositions(RPackage):
"""Compositional Data Analysis"""
homepage = "https://cran.r-project.org/web/packages/compositions/index.html"
url = "https://cran.r-project.org/src/contrib/compositions_1.40-2.tar.gz"
list_url = "https://cran.r-project.org/src/contrib/Archive/compositions"
version('1.40-2', 'ad87efe2fb303d95472e73c8ca8d9a01')
depends_on('r@2.2.0:', type=('build', 'run'))
depends_on('r-tensora', type=('build', 'run'))
depends_on('r-robustbase', type=('build', 'run'))
depends_on('r-energy', type=('build', 'run'))
depends_on('r-bayesm', type=('build', 'run'))

View File

@ -0,0 +1,19 @@
# Copyright 2013-2018 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 REnergy(RPackage):
"""E-Statistics: Multivariate Inference via the Energy of Data"""
homepage = "https://cran.r-project.org/web/packages/energy/index.html"
url = "https://cran.r-project.org/src/contrib/energy_1.7-5.tar.gz"
list_url = "https://cran.r-project.org/src/contrib/Archive/energy"
version('1.7-5', 'd13c76c26b5221ba29aade6a824f32d6')
depends_on('r-rcpp@0.12.6:', type=('build', 'run'))
depends_on('r-boot', type=('build', 'run'))