summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-units/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/r-units/package.py')
-rw-r--r--var/spack/repos/builtin/packages/r-units/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-units/package.py b/var/spack/repos/builtin/packages/r-units/package.py
new file mode 100644
index 0000000000..9d3f41d0d8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-units/package.py
@@ -0,0 +1,23 @@
+# 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 RUnits(RPackage):
+ """Support for measurement units in R vectors, matrices and arrays:
+ automatic propagation, conversion, derivation and simplification of
+ units; raising errors in case of unit incompatibility. Compatible with
+ the POSIXct, Date and difftime classes. Uses the UNIDATA udunits
+ library and unit database for unit compatibility checking and
+ conversion."""
+
+ homepage = "https://github.com/edzer/units/"
+ url = "https://cran.r-project.org/src/contrib/units_0.4-6.tar.gz"
+ list_url = "https://cran.r-project.org/src/contrib/Archive/units"
+
+ version('0.4-6', '0bb90dde5dad7608fa6feb1599381bf2')
+
+ depends_on('r-udunits2', type=('build', 'run'))