diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2019-03-24 23:17:48 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2019-03-24 23:44:12 +0100 |
commit | 7002c44fb0d30ce2800871a518bcf03c21992541 (patch) | |
tree | c3cd84a6928c6143e504b61de787d92840b63df4 | |
parent | 011ec1e51bc970173654babe63f8ec2fcec42eef (diff) | |
download | guix-7002c44fb0d30ce2800871a518bcf03c21992541.tar.gz guix-7002c44fb0d30ce2800871a518bcf03c21992541.zip |
gnu: Add r-units.
* gnu/packages/cran.scm (r-units): New variable.
-rw-r--r-- | gnu/packages/cran.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 6b45e6c9d4..17c14cd08d 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -41,6 +41,7 @@ #:use-module (gnu packages algebra) #:use-module (gnu packages base) #:use-module (gnu packages bioinformatics) + #:use-module (gnu packages c) #:use-module (gnu packages compression) #:use-module (gnu packages curl) #:use-module (gnu packages databases) @@ -12020,3 +12021,29 @@ breakpoints in a genomic sequence alignment.") statistics, with applications to @dfn{single-nucleotide polymorphism} (SNP) data.") (license license:gpl2+))) + +(define-public r-units + (package + (name "r-units") + (version "0.6-2") + (source + (origin + (method url-fetch) + (uri (cran-uri "units" version)) + (sha256 + (base32 + "0w7iwp8c66d5gj4rsb8c87vb0ja39hym6fmfnqaqwb3is1snfa2y")))) + (build-system r-build-system) + (inputs + `(("udunits" ,udunits))) + (propagated-inputs + `(("r-rcpp" ,r-rcpp))) + (home-page "https://github.com/r-quantities/units/") + (synopsis "Measurement Units for R Vectors") + (description + "This package provides 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. It +is compatible with the @code{POSIXct}, @code{Date} and @code{difftime} +classes.") + (license license:gpl2))) |