From 319a3c93f8179cc4ccdc703446209b1452164b0a Mon Sep 17 00:00:00 2001
From: Glenn Johnson <glenn-johnson@uiowa.edu>
Date: Fri, 15 Jan 2021 03:39:37 -0600
Subject: add version 1.18.1 to r-catools (#20850)

---
 var/spack/repos/builtin/packages/r-catools/package.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'var')

diff --git a/var/spack/repos/builtin/packages/r-catools/package.py b/var/spack/repos/builtin/packages/r-catools/package.py
index ba105a7643..a99cee38af 100644
--- a/var/spack/repos/builtin/packages/r-catools/package.py
+++ b/var/spack/repos/builtin/packages/r-catools/package.py
@@ -8,7 +8,9 @@ from spack import *
 
 
 class RCatools(RPackage):
-    """Contains several basic utility functions including: moving (rolling,
+    """Tools: Moving Window Statistics, GIF, Base64, ROC AUC, etc
+
+    Contains several basic utility functions including: moving (rolling,
     running) window statistic functions, read/write for GIF and ENVI binary
     files, fast calculation of AUC, LogitBoost classifier, base64
     encoder/decoder, round-off-error-free sum and cumsum, etc."""
@@ -17,9 +19,11 @@ class RCatools(RPackage):
     url      = "https://cloud.r-project.org/src/contrib/caTools_1.17.1.tar.gz"
     list_url = "https://cloud.r-project.org/src/contrib/Archive/caTools"
 
+    version('1.18.1', sha256='ffeba4ffbeed5d491bf79b1fde3477f413341e412f77316af20439f54447c9f9')
     version('1.17.1.2', sha256='69cc542fab5677462b1a768709d0c4a0a0790f5db53e1fe9ae7123787c18726b')
     version('1.17.1.1', sha256='d53e2c5c77f1bd4744703d7196dbc9b4671a120bbb5b9b3edc45fc57c0650c06')
     version('1.17.1', sha256='d32a73febf00930355cc00f3e4e71357412e0f163faae6a4bf7f552cacfe9af4')
 
     depends_on('r@2.2.0:', type=('build', 'run'))
+    depends_on('r@3.6.0:', when='@1.18.1:', type=('build', 'run'))
     depends_on('r-bitops', type=('build', 'run'))
-- 
cgit v1.2.3-70-g09d2