From b0090d8e9236595ad72b337168a08eb9369840ca Mon Sep 17 00:00:00 2001 From: Vicente Vera Parra Date: Mon, 14 Sep 2015 16:05:24 -0300 Subject: [PATCH 11/12] gnu: Add r-knitr. * gnu/packages/statistics.scm (r-knitr): New variable. --- gnu/packages/statistics.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 9794908..e1f16d5 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -700,3 +700,29 @@ http://en.wikipedia.org/wiki/Markdown for more information about Markdown.") "This package implements the libyaml YAML 1.1 parser and emitter (http://pyyaml.org/wiki/LibYAML) for R.") (license license:bsd-3))) + +(define-public r-knitr + (package + (name "r-knitr") + (version "1.11") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/knitr_" + version ".tar.gz")) + (sha256 + (base32 "1ikjla0hnpjfkdbydqhhqypc0aiizbi4nyn8c694sdk9ca4jasdd")))) + (build-system r-build-system) + (propagated-inputs + `(("r-evaluate" ,r-evaluate) + ("r-digest" ,r-digest) + ("r-formatr" ,r-formatr) + ("r-highr" ,r-highr) + ("r-markdown" ,r-markdown) + ("r-stringr" ,r-stringr) + ("r-yaml" ,r-yaml))) + (home-page "http://yihui.name/knitr/") + (synopsis "General-purpose package for dynamic report generation in R") + (description + "This package provides a general-purpose tool for dynamic report +generation in R using Literate Programming techniques.") + (license license:gpl2+))) -- 2.5.2