From 22f09a7faf4295b76b57a8ff360697b3c3127cfb Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
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(+)
@@ -34,6 +34,7 @@
;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2020 Aniket Patil <aniket112.patil@gmail.com>
;;; Copyright © 2021 Tim Howes <timhowes@lavabit.com>
+;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; 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