Subject: [PATCH] Add r-caret

From: Sandeep Subramanian <[email-masked]>
Date: Mon, 26 Mar 2018 03:34:20 +0530

Hi,

The following patch adds the r-caret cran package.
From 73ab0248c13f1654a819b5a0ec258e6815fe94bb Mon Sep 17 00:00:00 2001
From: Sandeep Subramanian <[email-masked]>
Date: Mon, 26 Mar 2018 02:52:05 +0530
Subject: [PATCH] gnu: Add r-caret.

* gnu/packages/cran.scm (r-caret): New variable.
---
 gnu/packages/cran.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 39f2a32..d7b9eae 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2017 Raoul Bonnal <[email-masked]>
 ;;; Copyright © 2018 Vijayalakshmi Vedantham <[email-masked]>
 ;;; Copyright © 2018 Sahithi Yarlagadda <[email-masked]>
+;;; Copyright © 2018 Sandeep Subramanian <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3296,3 +3297,36 @@ Dependencies of the distribution of the specified variable (response
 variable) to other variables (explanatory variables) are derived and
 evaluated by the @dfn{Akaike Information Criterion} (AIC).")
     (license license:gpl2+)))
+
+(define-public r-caret
+  (package
+    (name "r-caret")
+    (version "6.0-78")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "caret" version))
+        (sha256
+          (base32
+            "0h1nxzii2h80aslp1zsjczrlfmaks44sskabk4yq9c5rafc7ka6y"))))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-foreach" ,r-foreach)
+        ("r-ggplot2" ,r-ggplot2)
+        ("r-lattice" ,r-lattice)
+        ("r-modelmetrics" ,r-modelmetrics)
+        ("r-nlme" ,r-nlme)
+        ("r-plyr" ,r-plyr)
+        ("r-recipes" ,r-recipes)
+        ("r-reshape2" ,r-reshape2)
+        ("r-withr" ,r-withr)))
+    (home-page "https://github.com/topepo/caret/")
+    (synopsis
+      "Classification and Regression Training")
+    (description
+      "This package provides a set functions for training and plotting
+classification and regression models.  It attempts to streamline the
+process of creating predictive models by providing tools for data
+pre-processing, feature selection, model tuning and various other
+functionalities.")
+    (license license:gpl2+)))
-- 
2.7.4