Subject: [PATCH 5/7] gnu: Add r-attempt.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Thu, 8 Dec 2022 22:13:20 +0100

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 9cfca2f4ca..cb67edd338 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -7235,6 +7235,31 @@ (define-public r-aricode
 variation information} (NVI) and entropy.")
     (license license:gpl3+)))
 
+(define-public r-attempt
+  (package
+    (name "r-attempt")
+    (version "0.3.1")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "attempt" version))
+              (sha256
+               (base32
+                "1ylgg7jcp8wqmxgf1mydnvh26k0mr8jyjla4hw06730r40yrs58m"))))
+    (properties `((upstream-name . "attempt")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-rlang))
+    (native-inputs (list r-knitr))
+    (home-page "https://github.com/ColinFay/attempt")
+    (synopsis "Tools for defensive programming")
+    (description
+     "This package provides tools for defensive programming.  It is inspired by
+@code{purrr} mappers and based on @code{rlang}.  @code{Attempt} extends and
+facilitates defensive programming by providing a consistent grammar, and a set
+of functions for common tests and conditions.  @code{Attempt} only depends on
+@code{rlang}, and focuses on speed, so it can be integrated with other functions
+and used in the data analysis.")
+    (license license:expat)))
+
 (define-public r-debugme
   (package
     (name "r-debugme")
-- 
2.38.1