summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-04-20 04:13:55 -0500
committerGitHub <noreply@github.com>2021-04-20 11:13:55 +0200
commit54f919018d84cd737942ebedac6af2e5b06dd287 (patch)
tree50ba3d35a5b38d5b87df06dd6064c29b2a13acc9
parentf14edd2a78df5e11a65328407f2fbea3a61c43fb (diff)
downloadspack-54f919018d84cd737942ebedac6af2e5b06dd287.tar.gz
spack-54f919018d84cd737942ebedac6af2e5b06dd287.tar.bz2
spack-54f919018d84cd737942ebedac6af2e5b06dd287.tar.xz
spack-54f919018d84cd737942ebedac6af2e5b06dd287.zip
r-optimx: new package (#23107)
-rw-r--r--var/spack/repos/builtin/packages/r-optimx/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-optimx/package.py b/var/spack/repos/builtin/packages/r-optimx/package.py
new file mode 100644
index 0000000000..fc60567e37
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-optimx/package.py
@@ -0,0 +1,25 @@
+# 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 ROptimx(RPackage):
+ """Expanded Replacement and Extension of the 'optim' Function:
+
+ Provides a replacement and extension of the optim() function to call to
+ several function minimization codes in R in a single statement. These
+ methods handle smooth, possibly box constrained functions of several or
+ many parameters. Note that function 'optimr()' was prepared to simplify the
+ incorporation of minimization codes going forward. Also implements some
+ utility codes and some extra solvers, including safeguarded Newton methods.
+ Many methods previously separate are now included here. This is the version
+ for CRAN."""
+
+ cran = "optimx"
+
+ version('2020-4.2', sha256='6381c25c322287fc98ab1b2965d3f68c9a92c587c76aca1d33fd6428b2167101')
+
+ depends_on('r-numderiv', type=('build', 'run'))