From: Vicente Vera <vicentemvp@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 15/19] gnu: Add r-memoise.
Date: Sun, 13 Sep 2015 13:53:57 -0300 [thread overview]
Message-ID: <CAMfbzvCuSr8-2DTzV=zFf49+zDorqWjaucgqqL1S-4Y=gyKJ+w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 0015-gnu-Add-r-memoise.patch --]
[-- Type: text/x-patch, Size: 1452 bytes --]
From 0052b4aa565990853273605c809da3b983f34488 Mon Sep 17 00:00:00 2001
From: Vicente Vera Parra <vicentemvp@gmail.com>
Date: Sun, 13 Sep 2015 13:25:37 -0300
Subject: [PATCH 15/19] gnu: Add r-memoise.
* gnu/packages/statistics.scm (r-memoise): New variable.
---
gnu/packages/statistics.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index b3c9ee1..cb9a793 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -790,3 +790,23 @@ execution time of R expressions.")
"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")
+ (description
+ "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.1
next reply other threads:[~2015-09-13 16:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-13 16:53 Vicente Vera [this message]
2015-09-15 17:44 ` [PATCH 15/19] gnu: Add r-memoise Vicente Vera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMfbzvCuSr8-2DTzV=zFf49+zDorqWjaucgqqL1S-4Y=gyKJ+w@mail.gmail.com' \
--to=vicentemvp@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.