guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 0be8d5caea065298ca11babdaeb8e51b6981f424
Author: Laurent Gatto <[email protected]>
AuthorDate: Sun Feb 22 21:12:20 2026 +0100

    gnu: Add r-nipals.
    
    * gnu/packages/cran.scm (r-nipals): New variable.
    
    Change-Id: I1624257c2e72028bc010ed9910dbae86c743f7b4
    Signed-off-by: Simon Tournier <[email protected]>
    Merges: guix/guix!6634
---
 gnu/packages/cran.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index efc63f5c9b..658de3893c 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -44,6 +44,7 @@
 ;;; Copyright © 2025 Jonas Freimuth <[email protected]>
 ;;; Copyright © 2026 Cayetano Santos <[email protected]>
 ;;; Copyright © 2026 Yarl Baudig <[email protected]>
+;;; Copyright © 2026 Laurent Gatto <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5791,6 +5792,29 @@ data.")
 can read and write both the metadata and the cell data in a Sheet.")
     (license license:expat)))
 
+(define-public r-nipals
+  (package
+    (name "r-nipals")
+    (version "1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "nipals" version))
+       (sha256
+        (base32 "1aasm7ifnlxwaywq0g7v5m2w6jl7kld08k9gn3vbsm43wnpp0ahw"))))
+    (properties `((upstream-name . "nipals")))
+    (build-system r-build-system)
+    (native-inputs (list r-knitr r-testthat))
+    (home-page "https://kwstat.github.io/nipals/";)
+    (synopsis "Principal Components Analysis using NIPALS or weighted EMPCA")
+    (description
+     "This package provides Principal Components Analysis (PCA) of matrix
+using Non-linear Iterative Partial Least Squares (NIPALS) or weighted
+Expectation Maximization PCA (EMPCA) with Gram-Schmidt orthogonalization of
+the scores and loadings.  See Andrecut (2009)
+@url{doi:10.1089/cmb.2008.0221}.")
+    (license license:expat)))
+
 (define-public r-pbapply
   (package
     (name "r-pbapply")

Reply via email to