unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Vicente Vera <vicentemvp@gmail.com>
To: guix-devel@gnu.org, Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: Re: [PATCH 06/19] gnu: Add r-formatr.
Date: Tue, 15 Sep 2015 14:38:22 -0300	[thread overview]
Message-ID: <CAMfbzvDQyPnfHvx2F4JadqtBFUAx-w1Hz03baQbeBcCKtTSREg@mail.gmail.com> (raw)
In-Reply-To: <CAMfbzvBcMSqKa4-VpA_DF84r3-qmzoYi6Ttrf7fmXMs6826ggw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Updated patch attached.

2015-09-13 13:47 GMT-03:00 Vicente Vera <vicentemvp@gmail.com>:
>

[-- Attachment #2: 0006-gnu-Add-r-formatr.patch --]
[-- Type: text/x-patch, Size: 1678 bytes --]

From e34df1d5c9e894d10caec9f05421a7a61907c600 Mon Sep 17 00:00:00 2001
From: Vicente Vera Parra <vicentemvp@gmail.com>
Date: Tue, 15 Sep 2015 14:16:47 -0300
Subject: [PATCH 06/19] gnu: Add r-formatr.

* gnu/packages/statistics.scm (r-formatr): 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 7b02267..be9916f 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -614,3 +614,26 @@ evaluation and display of R code, with enough information that you can
 accurately recreate what happens at the command line.  The tools can easily be
 adapted for other output formats, such as HTML or LaTeX.")
     (license license:gpl3+)))
+
+(define-public r-formatr
+  (package
+    (name "r-formatr")
+    (version "1.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://cran/src/contrib/formatR_"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "0dlj728qdm7wmxcxvw1ip64pl4ajgmi8ax69zafrn3306pg9y136"))))
+    (build-system r-build-system)
+    (home-page
+     "http://yihui.name/formatR")
+    (synopsis
+     "Format R code automatically")
+    (description
+     "This package provides a function to format R source code.  Spaces and
+indent will be added to the code automatically, and comments will be preserved
+under certain conditions, so that R code will be more human-readable and tidy.
+There is also a Shiny app as a user interface in this package.")
+    (license license:gpl3+)))
-- 
2.5.2


      reply	other threads:[~2015-09-15 17:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-13 16:47 [PATCH 06/19] gnu: Add r-formatr Vicente Vera
2015-09-15 17:38 ` Vicente Vera [this message]

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMfbzvDQyPnfHvx2F4JadqtBFUAx-w1Hz03baQbeBcCKtTSREg@mail.gmail.com \
    --to=vicentemvp@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).