Subject: [PATCH 01/17] gnu: Add r-hardhat.

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

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ab5e57c0e2..97025dda09 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22325,3 +22325,36 @@ across a wide array of bioinformatic R packages.")
 and clustering large sequence datasets using fast alignment-free k-mer
 counting and recursive k-means partitioning.")
     (license license:gpl3)))
+
+(define-public r-hardhat
+  (package
+    (name "r-hardhat")
+    (version "0.1.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "hardhat" version))
+        (sha256
+          (base32
+            "10x8fw0skaqci03v2qqpbradbra9arm3s5pskcwm4wricd2imr40"))))
+    (properties `((upstream-name . "hardhat")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-glue" ,r-glue)
+        ("r-rlang" ,r-rlang)
+        ("r-tibble" ,r-tibble)
+        ("r-vctrs" ,r-vctrs)))
+    (native-inputs `(("r-knitr" ,r-knitr)))
+    (home-page
+      "https://github.com/tidymodels/hardhat")
+    (synopsis "Construct Modeling Packages")
+    (description
+      "Building modeling packages is hard.  A large amount of effort
+generally goes into providing an implementation for a new method that
+is efficient, fast, and correct, but often less emphasis is put on the
+user interface.  A good interface requires specialized knowledge about
+S3 methods and formulas, which the average package developer might not
+have.  The goal of @code{hardhat} is to reduce the burden around building
+new modeling packages by providing functionality for preprocessing,
+predicting, and validating input.")
+    (license license:expat)))
-- 
2.17.1