gnu: Add r-units.

* gnu/packages/cran.scm (r-units): New variable.
This commit is contained in:
Ricardo Wurmus 2019-03-24 23:17:48 +01:00
parent 011ec1e51b
commit 7002c44fb0
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 27 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#:use-module (gnu packages algebra) #:use-module (gnu packages algebra)
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:use-module (gnu packages bioinformatics) #:use-module (gnu packages bioinformatics)
#:use-module (gnu packages c)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages curl) #:use-module (gnu packages curl)
#:use-module (gnu packages databases) #:use-module (gnu packages databases)
@ -12020,3 +12021,29 @@ breakpoints in a genomic sequence alignment.")
statistics, with applications to @dfn{single-nucleotide polymorphism} (SNP) statistics, with applications to @dfn{single-nucleotide polymorphism} (SNP)
data.") data.")
(license license:gpl2+))) (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)))