summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDesmond Orton <odesmond21@gmail.com>2021-01-28 14:29:57 -0600
committerGitHub <noreply@github.com>2021-01-28 14:29:57 -0600
commitb095dfb44bc74efcf57a3e4c0943dd1558091aaa (patch)
tree8d7ebcca39eb30927b9f17f1d934827f90012218
parentf28026c0400877ecaa1c10f6b1447710f9c3627c (diff)
downloadspack-b095dfb44bc74efcf57a3e4c0943dd1558091aaa.tar.gz
spack-b095dfb44bc74efcf57a3e4c0943dd1558091aaa.tar.bz2
spack-b095dfb44bc74efcf57a3e4c0943dd1558091aaa.tar.xz
spack-b095dfb44bc74efcf57a3e4c0943dd1558091aaa.zip
New Package r-fpCompare@0.2.3 (#21380)
-rw-r--r--var/spack/repos/builtin/packages/r-fpcompare/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-fpcompare/package.py b/var/spack/repos/builtin/packages/r-fpcompare/package.py
new file mode 100644
index 0000000000..95f96fcacc
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-fpcompare/package.py
@@ -0,0 +1,29 @@
+# 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 RFpcompare(RPackage):
+ """Reliable Comparison of Floating Point Numbers
+
+ Comparisons of floating point numbers are problematic due to errors
+ associated with the binary representation of decimal numbers. Despite
+ being aware of these problems, people still use numerical methods
+ that fail to account for these and other rounding errors (this pitfall
+ is the first to be highlighted in Circle 1 of Burns (2012) 'The R
+ Inferno' <http://www.burns-stat.com/pages/Tutor/R_inferno.pdf>). This
+ package provides new relational operators useful for performing
+ floating point number comparisons with a set tolerance."""
+
+ homepage = "https://github.com/PredictiveEcology/fpCompare"
+ url = "https://cloud.r-project.org/src/contrib/fpCompare_0.2.3.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/fpCompare"
+
+ maintainers = ['dorton21']
+
+ version('0.2.3', sha256='f89be3568544a3a44e4f01b5050ed03705805308ec1aa4add9a5e1b5b328dbdf')
+
+ depends_on('r@3.3:', type=('build', 'run'))