From 90dce26db9cd12506fd7d3ec6147e5490b338719 Mon Sep 17 00:00:00 2001
From: Justin Stanley <molecuul@users.noreply.github.com>
Date: Sat, 22 Dec 2018 12:09:20 -0600
Subject: [PATCH] r-corhmm: new package at 1.22 (#9859)

---
 .../builtin/packages/r-corhmm/package.py      | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 var/spack/repos/builtin/packages/r-corhmm/package.py

diff --git a/var/spack/repos/builtin/packages/r-corhmm/package.py b/var/spack/repos/builtin/packages/r-corhmm/package.py
new file mode 100644
index 0000000000..e59264d11d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-corhmm/package.py
@@ -0,0 +1,31 @@
+# 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 RCorhmm(RPackage):
+    """corHMM: Analysis of Binary Character Evolution
+
+       Fits a hidden rates model that allows different transition rate classes
+       on different portions of a phylogeny by treating rate classes as hidden
+       states in a Markov process and various other functions for evaluating
+       models of binary character evolution."""
+
+    homepage = "https://cran.r-project.org/package=corHMM"
+    url      = "https://cran.r-project.org/src/contrib/corHMM_1.22.tar.gz"
+    list_url = "https://cran.r-project.org/src/contrib/Archive/corHMM/"
+
+    version('1.22', sha256='d262fa1183eab32087afb70f1789fabae6fb49bec01d627974c54a088a48b10d')
+
+    depends_on('r-ape', type=('build', 'run'))
+    depends_on('r-nloptr', type=('build', 'run'))
+    depends_on('r-gensa', type=('build', 'run'))
+    depends_on('r-expm', type=('build', 'run'))
+    depends_on('r-numderiv', type=('build', 'run'))
+    depends_on('r-nnet', type=('build', 'run'))
+    depends_on('r-corpcor', type=('build', 'run'))
+    depends_on('r-phangorn', type=('build', 'run'))
+    depends_on('r-rmpfr', type=('build', 'run'))
-- 
GitLab