Subject: [bug#62297] [PATCH 3/5] gnu: Add r-tkrplot.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Mon, 20 Mar 2023 17:00:03 +0100

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 39e692fc6c..909943fdcc 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -2818,6 +2818,30 @@ (define-public r-tidyverse
 single step.")
     (license license:gpl3)))
 
+(define-public r-tkrplot
+  (package
+    (name "r-tkrplot")
+    (version "0.0-27")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "tkrplot" version))
+       (sha256
+        (base32 "19bj4wn1fs4wrx5k4gakhpz4q59fgx0584wyaw7hnh0ljj8i34n9"))))
+    (properties `((upstream-name . "tkrplot")))
+    (build-system r-build-system)
+    (inputs (list libx11))
+    (home-page "https://cran.r-project.org/package=tkrplot")
+    (synopsis "Simple mechanism for placing R graphics in a Tk widget")
+    (description
+     "The tkrplot package creates and returns a @dfn{Tk, cross-platform graphical
+user interface toolkit} label widget containing a Tk image of type Rplot.  The plot
+is created by calling fun with a special device used create the image.  The function
+@code{tkrreplot} calls fun to place a new plot in the Rplot widget lab.  @code{
+tkpersp} is called like @code{persp} but produces a plot in which some of the
+parameters of persp are controlled graphically.")
+    (license (list license:gpl2+ license:gpl3+)))) ;; expanded from GPL
+
 (define-public r-rvest
   (package
     (name "r-rvest")
-- 
2.39.2