Subject: [bug#42117] [PATCH 15/17] gnu: Add r-parsnip.

From: Peter Lo <[email-masked]>
Date: Mon, 29 Jun 2020 13:50:40 +0800

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 37afec7774..cf259a795a 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22768,3 +22768,40 @@ formats.")
       "Text mining for word processing and sentiment analysis using
 @code{dplyr}, @code{ggplot2}, and other tidy tools.")
     (license license:expat)))
+
+(define-public r-parsnip
+  (package
+    (name "r-parsnip")
+    (version "0.1.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "parsnip" version))
+        (sha256
+          (base32
+            "1p33absjd2lnq5aikr42him4b724qzxr1pzvdnazg789f763i47l"))))
+    (properties `((upstream-name . "parsnip")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-dplyr" ,r-dplyr)
+        ("r-generics" ,r-generics)
+        ("r-globals" ,r-globals)
+        ("r-glue" ,r-glue)
+        ("r-magrittr" ,r-magrittr)
+        ("r-prettyunits" ,r-prettyunits)
+        ("r-purrr" ,r-purrr)
+        ("r-rlang" ,r-rlang)
+        ("r-tibble" ,r-tibble)
+        ("r-tidyr" ,r-tidyr)
+        ("r-vctrs" ,r-vctrs)))
+    (native-inputs `(("r-knitr" ,r-knitr)))
+    (home-page
+      "https://parsnip.tidymodels.org")
+    (synopsis
+      "Common API to Modeling and Analysis Functions")
+    (description
+      "This package provides a common interface is provided to allow
+users to specify a model without having to remember the different
+argument names across different functions or computational
+engines (e.g. 'R', 'Spark', 'Stan', etc).")
+    (license license:gpl2)))
-- 
2.17.1