From 9e836ca8fcf97c4ed3aa41db6ed2fd47a142009a Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 6 Sep 2021 14:34:35 +0200 Subject: [PATCH] gnu: Add r-cmdfun. * gnu/packages/cran.scm (r-cmdfun): 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 4fb5b2d25b..4e05568741 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -11711,6 +11711,40 @@ (define-public r-r2glmm al. (2016)).") (license license:gpl2))) +(define-public r-cmdfun + (package + (name "r-cmdfun") + (version "1.0.2") + (source + (origin + (method url-fetch) + (uri (cran-uri "cmdfun" version)) + (sha256 + (base32 + "1pbcq7hi2lcmqnghmy3q2fsk0c9fy5m0637acyzmc096fxbx723j")))) + (properties `((upstream-name . "cmdfun"))) + (build-system r-build-system) + (propagated-inputs + `(("r-magrittr" ,r-magrittr) + ("r-purrr" ,r-purrr) + ("r-r-utils" ,r-r-utils) + ("r-rlang" ,r-rlang) + ("r-testthat" ,r-testthat) + ("r-usethis" ,r-usethis))) + (native-inputs + `(("r-knitr" ,r-knitr))) + (home-page "https://snystrom.github.io/cmdfun/") + (synopsis "Framework for building interfaces to shell commands") + (description + "Writing interfaces to command line software is cumbersome. The cmdfun +package provides a framework for building function calls to seamlessly +interface with shell commands by allowing lazy evaluation of command line +arguments. It also provides methods for handling user-specific paths to tool +installs or secrets like API keys. Its focus is to equally serve package +builders who wish to wrap command line software, and to help analysts stay +inside R when they might usually leave to execute non-R software.") + (license license:expat))) + (define-public r-weights (package (name "r-weights")