From 7e291c7f87498368be556941f6eb7315f94a7c74 Mon Sep 17 00:00:00 2001 From: Vicente Vera Parra Date: Sun, 13 Sep 2015 13:17:39 -0300 Subject: [PATCH 09/19] gnu: Add r-markdown. * gnu/packages/statistics.scm (r-markdown): New variable. --- gnu/packages/statistics.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 0019bbe..b3e9b2b 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -657,3 +657,33 @@ package (http://www.andre-simon.de).") "Guesses the MIME type from a filename extension using the data derived from /etc/mime.types in UNIX-type systems.") (license license:gpl2))) + +(define-public r-markdown + (package + (name "r-markdown") + (version "0.7.7") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/markdown_" + version ".tar.gz")) + (sha256 + (base32 "00j1hlib3il50azs2vlcyhi0bjpx1r50mxr9w9dl5g1bwjjc71hb")))) + (build-system r-build-system) + ;; Skip check phase because the tests require knitr to be + ;; installed. Since it won't (markdown is a dependency of the knitr + ;; package), installation will fail. + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'check)))) + (propagated-inputs + `(("r-mime" ,r-mime))) + (home-page "https://github.com/rstudio/markdown") + (synopsis "'Markdown' Rendering for R") + (description + "Provides R bindings to the 'Sundown' 'Markdown' rendering +library (https://github.com/vmg/sundown). 'Markdown' is a plain-text +formatting syntax that can be converted to 'XHTML' or other formats. +See http://en.wikipedia.org/wiki/Markdown for more information about +'Markdown'.") + (license license:gpl2))) -- 2.5.1