Subject: [bug#62428] [PATCH 02/14] gnu: Add r-repmis.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Sat, 25 Mar 2023 00:18:48 +0100

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index a36c845479..325fec402b 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -2894,6 +2894,40 @@ (define-public r-selectr
 package is a port of the Python package @code{cssselect}.")
     (license license:bsd-3)))
 
+(define-public r-repmis
+  (package
+    (name "r-repmis")
+    (version "0.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "repmis" version))
+       (sha256
+        (base32 "0z5mjbsl24yjbl0aawr35grcal44rf2xbwv1hy7bdkms94ix79b5"))))
+    (properties `((upstream-name . "repmis")))
+    (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"))))))
+    (propagated-inputs
+     (list r-data-table
+           r-digest
+           r-httr
+           r-plyr
+           r-r-cache))
+    (home-page "http://cran.r-project.org/package=repmis")
+    (synopsis "Miscellaneous tools for reproducible research")
+    (description
+     "This package is a colletion of tools to load R packages and automatically
+generate BibTeX files citing them as well as load and cache plain-text and Excel
+formatted data stored on GitHub, and from other sources.")
+    (license license:gpl3+)))
+
 (define-public r-reprex
   (package
     (name "r-reprex")
-- 
2.39.2