I improved the patch by removing r-lattice because that is not needed, and I made a complete sentence in the description.
Here it is: >From aedf6029283733a19941de2d2b641f87790189d3 Mon Sep 17 00:00:00 2001 From: Roel Janssen <r...@gnu.org> Date: Wed, 4 May 2016 15:39:18 +0200 Subject: [PATCH] gnu: Add r-coda. * gnu/packages/statistics.scm (r-coda): New variable. --- gnu/packages/statistics.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 3d0faf7..409b42f 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2016 Andreas Enge <andr...@enge.fr> ;;; Copyright © 2016 Efraim Flashner <efr...@flashner.co.il> ;;; Copyright © 2016 Pjotr Prins <pjotr.g...@thebird.nl> +;;; Copyright © 2016 Roel Janssen <r...@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -1239,6 +1240,25 @@ inference for statistical models.") `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs stats)))))) +(define-public r-coda + (package + (name "r-coda") + (version "0.18-1") + (source (origin + (method url-fetch) + (uri (cran-uri "coda" version)) + (sha256 + (base32 + "03sc780734zj2kqcm8lkyvf76fql0jbfhkblpn8l58zmb6cqi958")))) + (build-system r-build-system) + (home-page "http://cran.r-project.org/web/packages/coda") + (synopsis "This is a package for Output Analysis and Diagnostics for MCMC") + (description "This package provides functions for summarizing and plotting +the output from Markov Chain Monte Carlo (MCMC) simulations, as well as +diagnostic tests of convergence to the equilibrium distribution of the Markov +chain.") + (license license:gpl2+))) + (define-public r-xml2 (package (name "r-xml2") -- 2.7.4