Subject: [PATCH 07/15] gnu: Add r-diagrammer.

From: Navid Afkhami <[email-masked]>
Date: Fri, 23 Jun 2023 13:48:51 +0000

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 34d4749b14..247f9a6f96 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -28898,6 +28898,46 @@ (define-public r-diagram
 Francesca Mazzia (2012).")
     (license license:gpl2+)))
 
+(define-public r-diagrammer
+  (package
+    (name "r-diagrammer")
+    (version "1.0.10")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "DiagrammeR" version))
+              (sha256
+               (base32
+                "147q7zgwhd7vc0l134sqkkf6n6s6bznxvcmsrdx2f5df12bsixkj"))))
+    (properties `((upstream-name . "DiagrammeR")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-downloader
+                             r-dplyr
+                             r-glue
+                             r-htmltools
+                             r-htmlwidgets
+                             r-igraph
+                             r-magrittr
+                             r-purrr
+                             r-rcolorbrewer
+                             r-readr
+                             r-rlang
+                             r-rstudioapi
+                             r-scales
+                             r-stringr
+                             r-tibble
+                             r-tidyr
+                             r-viridis
+                             r-visnetwork))
+    (native-inputs (list esbuild))
+    (home-page "https://github.com/rich-iannone/DiagrammeR")
+    (synopsis "Graph/network visualization")
+    (description
+     "DiagrammeR creates, modifies, analyzes, and visualizes network graph diagrams.
+The output can be incorporated into R Markdown documents, integrated
+with Shiny web apps, converted to other graph formats, or exported as
+image files.")
+    (license license:expat)))
+
 (define-public r-lim
   (package
     (name "r-lim")
-- 
2.34.1