rekado pushed a commit to branch r-team
in repository guix.

commit 7ddd931c94afea7424bdf4fb075c79f9f89441df
Author: Ricardo Wurmus <rek...@elephly.net>
AuthorDate: Tue May 13 10:19:35 2025 +0200

    gnu: Add r-autometric.
    
    * gnu/packages/cran.scm (r-autometric): New variable.
    
    Change-Id: I412b324a2061cce0c6a8098cea0bb388dbe4ef6d
---
 gnu/packages/cran.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index b6438aa630..2c91f332d6 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -349,6 +349,35 @@ transform of usual parameterization).  There are also 
random effects versions
 of these models.")
     (license license:expat)))
 
+(define-public r-autometric
+  (package
+    (name "r-autometric")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "autometric" version))
+       (sha256
+        (base32 "1dk2k78niqx9n8pq95cyx4qw00cmic47lyrg5ac0ghr25539jrld"))))
+    (properties `((upstream-name . "autometric")))
+    (build-system r-build-system)
+    (native-inputs (list r-callr r-ps r-tinytest))
+    (home-page "https://wlandau.github.io/autometric/";)
+    (synopsis "Background resource logging")
+    (description
+     "Intense parallel workloads can be difficult to monitor.  Packages
+@code{crew.cluster}, @code{clustermq}, and @code{future.batchtools} distribute
+hundreds of worker processes over multiple computers.  If a worker process
+exhausts its available memory, it may terminate silently, leaving the
+underlying problem difficult to detect or troubleshoot.  Using the autometric
+package, a worker can proactively monitor itself in a detached background
+thread.  The worker process itself runs normally, and the thread writes to a
+log every few seconds.  If the worker terminates unexpectedly, autometric can
+read and visualize the log file to reveal potential resource-related reasons
+for the crash.  The autometric package borrows heavily from the methods of
+packages @code{ps} and @code{psutil}.")
+    (license license:expat)))
+
 (define-public r-backports
   (package
     (name "r-backports")

Reply via email to