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

Previous Next

Package: guix-patches;

Reported by: Charlie Ritter <chewzerita <at> posteo.net>

Date: Mon, 12 Mar 2018 16:37:05 UTC

Severity: normal

Tags: patch

Merged with 30740, 30777, 30778, 30779, 30780, 30781, 30782, 30784

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Charlie Ritter <chewzerita <at> posteo.net>
To: guix-patches <at> gnu.org
Subject: [5/8] Add r-tidyverse (r-reprex)
Date: Mon, 12 Mar 2018 11:12:44 -0400
[0001-gnu-Add-r-reprex.patch (text/x-patch, inline)]
From c542097b41f53429a4f70ba27cb846ab790765df Mon Sep 17 00:00:00 2001
From: Charlie Ritter <chewzerita <at> posteo.net>
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

[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.