From 6e1c3b2598da36af3a1c34af1b9a48df865d6711 Mon Sep 17 00:00:00 2001 From: Vicente Vera Parra Date: Tue, 15 Sep 2015 14:23:07 -0300 Subject: [PATCH 15/19] gnu: Add r-memoise. * gnu/packages/statistics.scm (r-memoise): New variable. --- gnu/packages/statistics.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 34f3423..2ad03c9 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -828,3 +828,26 @@ the execution time of R expressions.") "This package provides useful tools to pry back the covers of R and understand the language at a deeper level.") (license license:gpl2))) + +(define-public r-memoise + (package + (name "r-memoise") + (version "0.2.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/memoise_" + version ".tar.gz")) + (sha256 + (base32 + "19wm4b3kq6xva43kga3xydnl7ybl5mq7b4y2fczgzzjz63jd75y4")))) + (build-system r-build-system) + (propagated-inputs + `(("r-digest" ,r-digest))) + (home-page + "http://github.com/hadley/memoise") + (synopsis + "Memoise functions for R") + (description + "This package allows to cache the results of a function so that when you +call it again with the same arguments it returns the pre-computed value.") + (license license:expat))) -- 2.5.2