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

From: Navid Afkhami <[email-masked]>
Date: Wed, 30 Oct 2024 19:01:55 +0000

* gnu/packages/cran.scm (r-coop): New variable.

Change-Id: Idb79f51b518a16bf6410cc4239a69ee654c6c95d
---
 gnu/packages/cran.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index aa57134166..6c0861509d 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -40805,6 +40805,29 @@ (define-public r-contfrac
       "Various utilities for evaluating continued fractions.")
     (license license:gpl2)))
 
+(define-public r-coop
+  (package
+    (name "r-coop")
+    (version "0.6-3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "coop" version))
+       (sha256
+        (base32 "0ww99ssgawsgn6rqy838wbx6iirzdrzyxirvz084ih8j50blx420"))))
+    (properties `((upstream-name . "coop")))
+    (build-system r-build-system)
+    (home-page "https://github.com/wrathematics/coop")
+    (synopsis
+     "Co-Operation: fast covariance, correlation, and cosine similarity computations")
+    (description
+     "R-coop offers implementations of covariance, correlation and cosine similarity.
+The implementations are fast and memory-efficient and their use is resolved
+automatically based on the input data, handled by R's S3 methods.  Full
+descriptions of the algorithms and benchmarks are available in the package
+vignettes.")
+    (license license:bsd-2)))
+
 (define-public r-elliptic
   (package
     (name "r-elliptic")

base-commit: d6f775c30c6f47e174f6110d1089edc6315600e4
prerequisite-patch-id: 54292fa0b75533f02730e2da44993ad685d4a432
prerequisite-patch-id: 360575ef7e49c4e4e6b52644964df061856aee57
prerequisite-patch-id: 3904682af2961b8cb06ced06ab62c60604114dad
-- 
2.43.0