GNU bug report logs - #66843
[PATCH] gnu: Add r-radiogx, r-coregx, r-piano, r-bench, r-profmem, r-relations, r-magicaxis, r-celestial, r-nistunits, r-r4rna and r-r3cseq.

Previous Next

Package: guix-patches;

Reported by: Mădălin Ionel Patrașcu <madalinionel.patrascu <at> mdc-berlin.de>

Date: Tue, 31 Oct 2023 10:55:02 UTC

Severity: normal

Tags: patch

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mădălin Ionel Patrașcu
 <madalinionel.patrascu <at> mdc-berlin.de>
To: <66843 <at> debbugs.gnu.org>
Cc: Ricardo Wurmus <rekado <at> elephly.net>
Subject: [bug#66843] [PATCH 07/11] gnu: Add r-profmem.
Date: Tue, 31 Oct 2023 11:57:25 +0100
* gnu/packages/cran.scm (r-profmem): New variable.

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ef43771f47..27ea2cdc06 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -1266,6 +1266,38 @@ (define-public r-prettydoc
 highlight styles are supported.")
     (license license:asl2.0)))
 
+(define-public r-profmem
+  (package
+    (name "r-profmem")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "profmem" version))
+       (sha256
+        (base32 "0gg6ja0ifwn9jj42rw1gnyil55sl9r2y5rjb6yjcvqwd5arajp3l"))))
+    (properties `((upstream-name . "profmem")))
+    (build-system r-build-system)
+    (arguments
+     (list
+      #:phases
+      '(modify-phases %standard-phases
+         (add-before 'install 'change-home-dir
+           (lambda _
+             ;; Change from /homeless-shelter to /tmp for write permission.
+             (setenv "HOME" "/tmp"))))))
+    (native-inputs
+     (list r-r-rsp
+           r-markdown)) ; for vignettes
+    (home-page "https://github.com/HenrikBengtsson/profmem")
+    (synopsis "Simple memory profiling for R")
+    (description
+     "This package provides a simple and light-weight API for memory profiling
+of R expressions.  The profiling is built on top of R's built-in memory profiler
+@code{utils::Rprofmem()}, which records every memory allocation done by R (also
+native code).")
+    (license license:lgpl2.1+)))
+
 (define-public r-proj4
   (package
     (name "r-proj4")
-- 
2.41.0





This bug report was last modified 1 year and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.