Subject: [PATCH 1/3]: gnu: Add r-webutils

From: Sharlatan Hellseher <[email-masked]>
Date: Wed, 26 May 2021 20:55:01 +0000

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
From 22f09a7faf4295b76b57a8ff360697b3c3127cfb Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <[email-masked]>
Date: Wed, 26 May 2021 21:41:30 +0100
Subject: [PATCH 1/3] gnu: Add r-webutils

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 19aa2b407b..f7c841ad52 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -34,6 +34,7 @@
 ;;; Copyright © 2020 Simon Tournier <[email-masked]>
 ;;; Copyright © 2020 Aniket Patil <[email-masked]>
 ;;; Copyright © 2021 Tim Howes <[email-masked]>
+;;; Copyright © 2021 Sharlatan Hellseher <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -28997,3 +28998,26 @@ complex functions.")
     (description
       "The Gaussian hypergeometric function for complex numbers.")
     (license license:gpl2)))
+
+(define-public r-webutils
+  (package
+    (name "r-webutils")
+    (version "1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "webutils" version))
+       (sha256
+        (base32 "16a6ds0fnb6y8i1r9ba1hf1ydb53am57s070b3hi5jmrs84b9qik"))))
+    (properties `((upstream-name . "webutils")))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-curl" ,r-curl)
+       ("r-jsonlite" ,r-jsonlite)))
+    (home-page "https://github.com/jeroen/webutils")
+    (synopsis "Utility Functions for Developing Web Applications")
+    (description
+     "Parses http request data in application/json, multipart/form-data, or
+application/x-www-form-urlencoded format.  Includes example of hosting and
+parsing html form data in R using either @code{httpuv} or @code{Rhttpd}.")
+    (license license:expat)))
-- 
2.31.1