From 8d58b5b2a7ea0fe4d106f355951687086887cf3f Mon Sep 17 00:00:00 2001 From: Peter Lo Date: Mon, 29 Jun 2020 13:50:27 +0800 Subject: gnu: Add r-workflows. * gnu/packages/cran.scm (r-workflows): New variable. Signed-off-by: Ricardo Wurmus --- gnu/packages/cran.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index de4273892d..c3e0ea35b2 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -23607,3 +23607,46 @@ environments (e.g. development, test, production). It reads values using a function that determines the current environment and returns the appropriate value.") (license license:gpl3))) + +(define-public r-workflows + (package + (name "r-workflows") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (cran-uri "workflows" version)) + (sha256 + (base32 + "14lzbszz7ybfzqa5zw1hfh81b8rbwwyza6x8nhpnknl6x4adqfql")))) + (properties `((upstream-name . "workflows"))) + (build-system r-build-system) + (propagated-inputs + `(("r-cli" ,r-cli) + ("r-ellipsis" ,r-ellipsis) + ("r-generics" ,r-generics) + ("r-glue" ,r-glue) + ("r-hardhat" ,r-hardhat) + ("r-parsnip" ,r-parsnip) + ("r-rlang" ,r-rlang))) + (native-inputs + `(("r-knitr" ,r-knitr))) + (home-page "https://github.com/tidymodels/workflows") + (synopsis "Modeling workflows") + (description + "A workflow is an object that can bundle together your pre-processing, +modeling, and post-processing requests. For example, if you have a +@code{recipe} and @code{parsnip} model, these can be combined into a +workflow. The advantages are: + +@enumerate +@item You don’t have to keep track of separate objects in your workspace. +@item The recipe prepping and model fitting can be executed using a single + call to @code{fit()}. +@item If you have custom tuning parameter settings, these can be defined using + a simpler interface when combined with @code{tune}. +@item In the future, workflows will be able to add post-processing operations, + such as modifying the probability cutoff for two-class models. +@end enumerate +") + (license license:expat))) -- cgit 1.4.1