[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

15/43: gnu: Add r-vctrs.

From: guix-commits
Subject: 15/43: gnu: Add r-vctrs.
Date: Mon, 20 May 2019 08:40:49 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 6004bc1a8ff4a6c64315041b0e527ab691bf1f5f
Author: Ricardo Wurmus <address@hidden>
Date:   Sun May 19 00:01:44 2019 +0200

    gnu: Add r-vctrs.
    * gnu/packages/cran.scm (r-vctrs): New variable.
 gnu/packages/cran.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index a876746..cf154b9 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -3674,6 +3674,44 @@ right-hand side of an assignment into multiple values 
and assigns these values
 to variables on the left-hand side of the assignment.")
     (license license:expat)))
+(define-public r-vctrs
+  (package
+    (name "r-vctrs")
+    (version "0.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "vctrs" version))
+       (sha256
+        (base32
+         "13w1r8zpalirpfaz5sykpn0mj4jmhxi2qkdcfq081ixlfjyzwa6c"))))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-backports" ,r-backports)
+       ("r-digest" ,r-digest)
+       ("r-glue" ,r-glue)
+       ("r-rlang" ,r-rlang)
+       ("r-zeallot" ,r-zeallot)))
+    (home-page "";)
+    (synopsis "Vector helpers")
+    (description
+     "There are three main goals to the @code{vctrs} package:
address@hidden To propose @code{vec_size()} and @code{vec_type()} as 
alternatives to
+  @code{length()} and @code{class()}.  These definitions are paired with a
+  framework for type-coercion and size-recycling.
address@hidden To define type- and size-stability as desirable function 
properties, use
+  them to analyse existing base function, and to propose better alternatives.
+  This work has been particularly motivated by thinking about the ideal
+  properties of @code{c()}, @code{ifelse()}, and @code{rbind()}.
address@hidden To provide a new @code{vctr} base class that makes it easy to 
create new
+  S3 vectors.  @code{vctrs} provides methods for many base generics in terms of
+  a few new @code{vctrs} generics, making implementation considerably simpler
+  and more robust.
address@hidden enumerate\n")
+    (license license:gpl3)))
 (define-public r-pillar
     (name "r-pillar")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]