guix-patches
[Top][All Lists]
Advanced

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

[bug#30783] [5/8] Add r-tidyverse (r-reprex)


From: Charlie Ritter
Subject: [bug#30783] [5/8] Add r-tidyverse (r-reprex)
Date: Mon, 12 Mar 2018 11:12:44 -0400

From c542097b41f53429a4f70ba27cb846ab790765df Mon Sep 17 00:00:00 2001
From: Charlie Ritter <address@hidden>
Date: Mon, 12 Mar 2018 10:58:32 -0400
Subject: [PATCH] gnu: Add r-reprex.

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index c9062d2cc..49b2fedb6 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -34,6 +34,35 @@
   #:use-module (gnu packages statistics)
   #:use-module (gnu packages web))
 
+(define-public r-reprex
+  (package
+    (name "r-reprex")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "reprex" version))
+       (sha256
+        (base32
+         "105d9vsmqfilgpw8psfb2wyiz1hvcycvh4cqhb3ab37lm3rcavvs"))))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-callr" ,r-callr)
+       ("r-knitr" ,r-knitr)
+       ("r-rmarkdown" ,r-rmarkdown)
+       ("r-whisker" ,r-whisker)))
+    (home-page "https://github.com/jennybc/reprex";)
+    (synopsis
+     "Prepare Reproducible Example Code for Sharing")
+    (description
+     "Convenience wrapper that uses the 'rmarkdown' package to render small
+snippets of code to target formats that include both code and output.  The
+goal is to encourage the sharing of small, reproducible, and runnable examples
+on code-oriented websites, such as <http://stackoverflow.com> and
+<https://github.com>, or in email. 'reprex' also extracts clean, runnable R
+code from various common formats, such as copy/paste from an R session.")
+    (license license:expat)))
+
 (define-public r-callr
   (package
     (name "r-callr")
-- 
2.16.1

Attachment: signature.asc
Description: PGP signature


reply via email to

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