From 9c4e106383c49f1cc70ce37fe6a7182b1daff741 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 26 Aug 2021 11:45:47 +0200 Subject: [PATCH] gnu: Add r-fauxpas. * gnu/packages/cran.scm (r-fauxpas): New variable. --- gnu/packages/cran.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 64008c97e0..c1ddcb7897 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -31222,3 +31222,33 @@ (define-public r-crul requests, and mocking HTTP requests. The package is built on R6, and takes inspiration from Ruby's @code{faraday} gem.") (license license:expat))) + +(define-public r-fauxpas + (package + (name "r-fauxpas") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "fauxpas" version)) + (sha256 + (base32 + "129fzqb7wsskbn50s8x0marr4wm8jrns6hiycqcsk166k3dnyyy8")))) + (properties `((upstream-name . "fauxpas"))) + (build-system r-build-system) + (propagated-inputs + `(("r-httpcode" ,r-httpcode) + ("r-r6" ,r-r6) + ("r-whisker" ,r-whisker))) + (native-inputs + `(("r-knitr" ,r-knitr))) + (home-page "https://docs.ropensci.org/fauxpas") + (synopsis "HTTP error helpers") + (description + "This package provides HTTP error helpers. Methods are included for +general purpose HTTP error handling, as well as individual methods for every +HTTP status code, both via status code numbers as well as their descriptive +names. It supports the ability to adjust behavior to stop, message or +warning. It includes the ability to use a custom whisker template to have any +configuration of status code, short description, and verbose message.") + (license license:expat)))