Subject: [PATCH] gnu: Add r-abbreviate.

From: Wiktor Żelazny <[email-masked]>
Date: Sun, 18 Feb 2024 19:31:36 +0100

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index bcb5ab4964..2a5de1d907 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -116,6 +116,26 @@ (define-module (gnu packages cran)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg))
 
+(define-public r-abbreviate
+  (package
+    (name "r-abbreviate")
+    (version "0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "abbreviate" version))
+       (sha256
+        (base32 "1cvjdbi17qz8gr5898zchm5fyz4n51z66lwps25v8a9mhwab8imi"))))
+    (properties `((upstream-name . "abbreviate")))
+    (build-system r-build-system)
+    (home-page "https://github.com/sigbertklinke/abbreviate")
+    (synopsis "Readable string abbreviation")
+    (description
+     "This package abbreviates strings to a specified minimum number of characters,
+such that the strings remain unique (if they originally were).")
+    ;; The license is mentioned in the DESCRIPTION file.
+    (license license:gpl3)))
+
 (define-public r-aer
   (package
     (name "r-aer")

base-commit: fdbf4192f5eaa7fdb5e6e2e98ada0726c8104824
-- 
2.41.0