From dc1b6aa8c65107e6a4853f3724ab14e2245cbcb5 Mon Sep 17 00:00:00 2001 From: Andrew W Elble Date: Tue, 4 Jan 2022 13:41:21 -0500 Subject: new package: r-cca and dependencies (#28229) Co-authored-by: Andrew W Elble --- var/spack/repos/builtin/packages/r-ash/package.py | 12 ++++++++++++ var/spack/repos/builtin/packages/r-cca/package.py | 19 +++++++++++++++++++ var/spack/repos/builtin/packages/r-fda/package.py | 20 ++++++++++++++++++++ var/spack/repos/builtin/packages/r-fds/package.py | 16 ++++++++++++++++ .../repos/builtin/packages/r-hdrcde/package.py | 22 ++++++++++++++++++++++ .../repos/builtin/packages/r-rainbow/package.py | 20 ++++++++++++++++++++ 6 files changed, 109 insertions(+) create mode 100644 var/spack/repos/builtin/packages/r-ash/package.py create mode 100644 var/spack/repos/builtin/packages/r-cca/package.py create mode 100644 var/spack/repos/builtin/packages/r-fda/package.py create mode 100644 var/spack/repos/builtin/packages/r-fds/package.py create mode 100644 var/spack/repos/builtin/packages/r-hdrcde/package.py create mode 100644 var/spack/repos/builtin/packages/r-rainbow/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/r-ash/package.py b/var/spack/repos/builtin/packages/r-ash/package.py new file mode 100644 index 0000000000..a44b25b652 --- /dev/null +++ b/var/spack/repos/builtin/packages/r-ash/package.py @@ -0,0 +1,12 @@ +# 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) + + +class RAsh(RPackage): + """David Scott's ASH routines ported from S-PLUS to R.""" + + cran = 'ash' + + version('1.0-15', sha256='8b0a7bc39dd0ce2172f09edc5b5e029347d041a4d508bbff3f3fd6f69450c2ab') diff --git a/var/spack/repos/builtin/packages/r-cca/package.py b/var/spack/repos/builtin/packages/r-cca/package.py new file mode 100644 index 0000000000..6d9b15294f --- /dev/null +++ b/var/spack/repos/builtin/packages/r-cca/package.py @@ -0,0 +1,19 @@ +# 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) + + +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')) diff --git a/var/spack/repos/builtin/packages/r-fda/package.py b/var/spack/repos/builtin/packages/r-fda/package.py new file mode 100644 index 0000000000..88ef8b022f --- /dev/null +++ b/var/spack/repos/builtin/packages/r-fda/package.py @@ -0,0 +1,20 @@ +# 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) + + +class RFda(RPackage): + """These functions were developed to support functional data + analysis as described in Ramsay, J. O. and Silverman, B. W. (2005) + Functional Data Analysis. New York: Springer and in Ramsay, J. O., + Hooker, Giles, and Graves, Spencer (2009). """ + + cran = 'fda' + + version('5.5.1', sha256='dcaa2f6ae226d35855bc79c6967f60d45404b984c0afaec215b139c4b8dea23a') + + depends_on('r@3.5:', type=('build', 'run')) + depends_on('r-matrix', type=('build', 'run')) + depends_on('r-fds', type=('build', 'run')) + depends_on('r-desolve', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/r-fds/package.py b/var/spack/repos/builtin/packages/r-fds/package.py new file mode 100644 index 0000000000..21826183ed --- /dev/null +++ b/var/spack/repos/builtin/packages/r-fds/package.py @@ -0,0 +1,16 @@ +# 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) + + +class RFds(RPackage): + """Functional data sets.""" + + cran = 'fds' + + version('1.8', sha256='203a5e7671e542dcb83d4c75d0f4012aaebc32d54f94657afaf9e71e99dd0489') + + depends_on('r@3.4.0:', type=('build', 'run')) + depends_on('r-rcurl', type=('build', 'run')) + depends_on('r-rainbow', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/r-hdrcde/package.py b/var/spack/repos/builtin/packages/r-hdrcde/package.py new file mode 100644 index 0000000000..ed22e5af3c --- /dev/null +++ b/var/spack/repos/builtin/packages/r-hdrcde/package.py @@ -0,0 +1,22 @@ +# 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) + + +class RHdrcde(RPackage): + """Computation of highest density regions in one and two + dimensions, kernel estimation of univariate density functions + conditional on one covariate,and multimodal regression.""" + + cran = 'hdrcde' + + version('3.4', sha256='4341c6a021da46dcae3b1ef6d580e84dcf625c2b2139f537d0c26ec90899149b') + + depends_on('r@2.15:', type=('build', 'run')) + depends_on('r-locfit', type=('build', 'run')) + depends_on('r-ash', type=('build', 'run')) + depends_on('r-ks', type=('build', 'run')) + depends_on('r-kernsmooth', type=('build', 'run')) + depends_on('r-ggplot2', type=('build', 'run')) + depends_on('r-rcolorbrewer', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/r-rainbow/package.py b/var/spack/repos/builtin/packages/r-rainbow/package.py new file mode 100644 index 0000000000..e595a8c6b0 --- /dev/null +++ b/var/spack/repos/builtin/packages/r-rainbow/package.py @@ -0,0 +1,20 @@ +# 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) + + +class RRainbow(RPackage): + """Visualizing functional data and identifying functional outliers.""" + + cran = 'rainbow' + + version('3.6', sha256='63d1246f88a498f3db0321b46a552163631b288a25b24400935db41326636e87') + + depends_on('r@3.4.0:', type=('build', 'run')) + depends_on('r-pcapp', type=('build', 'run')) + depends_on('r-mass', type=('build', 'run')) + depends_on('r-hdrcde', type=('build', 'run')) + depends_on('r-cluster', type=('build', 'run')) + depends_on('r-colorspace', type=('build', 'run')) + depends_on('r-ks', type=('build', 'run')) -- cgit v1.2.3-70-g09d2