From 11678514207e1fc5da04dca00d89ff9f67a67d2b Mon Sep 17 00:00:00 2001 From: Vicente Vera Parra Date: Sun, 13 Sep 2015 13:29:38 -0300 Subject: [PATCH 18/19] gnu: Add r-r6. * gnu/packages/statistics.scm (r-r6): New variable. --- gnu/packages/statistics.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index b283bff..1796caf 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -854,3 +854,33 @@ package was inspired by the 'chalk' 'JavaScript' project.") "A unit testing system designed to be fun, flexible and easy to set up.") (license license:expat))) + +(define-public r-r6 + (package + (name "r-r6") + (version "2.1.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/R6_" + version ".tar.gz")) + (sha256 + (base32 "16qq35bgxgswf989yvsqkb6fv7srpf8n8dv2s2c0z9n6zgmwq66m")))) + (build-system r-build-system) + (propagated-inputs + `(("r-knitr" ,r-knitr) + ("r-microbenchmark" ,r-microbenchmark) + ("r-pryr" ,r-pryr) + ("r-testthat" ,r-testthat) + ("r-ggplot2" ,r-ggplot2) + ("r-scales" ,r-scales))) + (home-page "https://github.com/wch/R6/") + (synopsis "Classes with Reference Semantics") + (description + "The R6 package allows the creation of classes with reference +semantics, similar to R's built-in reference classes. Compared to +reference classes, R6 classes are simpler and lighter-weight, and they +are not built on S4 classes so they do not require the methods +package. These classes allow public and private members, and they +support inheritance, even when the classes are defined in different +packages.") + (license license:expat))) -- 2.5.1