From 8dd6af01cb39879ac1e5eaa01abde922f9cc7008 Mon Sep 17 00:00:00 2001 From: Vicente Vera Parra Date: Mon, 14 Sep 2015 15:50:26 -0300 Subject: [PATCH 09/12] gnu: Add r-markdown. * gnu/packages/statistics.scm (r-markdown): New variable. --- gnu/packages/statistics.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 5ce03f4..588fd62 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -655,3 +655,30 @@ via Andre Simon's highlight package (http://www.andre-simon.de).") "This package 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 the r-knitr package to be + ;; installed. This prevents installation failures. Knitr normally + ;; shouldn't be available since r-markdown is a dependency of the r-knitr + ;; package. + (arguments `(#:tests? #f)) + (propagated-inputs + `(("r-mime" ,r-mime))) + (home-page "https://github.com/rstudio/markdown") + (synopsis "Markdown rendering for R") + (description + "This package 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.2