From e34df1d5c9e894d10caec9f05421a7a61907c600 Mon Sep 17 00:00:00 2001 From: Vicente Vera Parra 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