Subject: Re: [bug#32699] Adding r-gtk2 and other packages for r-qda (RFC)

From: Pjotr Prins <[email-masked]>
Date: Wed, 12 Sep 2018 10:50:16 +0200

Added another patch for text mining with R tm.

I would appreciate some feedback on the previous patch before I start
submitting.

Pj.

commit b9a90ec3a768b99e112fbfa76e511252fef78fdd
Author: Pjotr Prins <[email-masked]>
Date:   Tue Sep 11 14:36:38 2018 +0000

    added r-tm

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 1c913a5..4e9244b 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -5900,3 +5900,48 @@ text, but it can import PDF highlights if package
 'rjpod' (<https://r-forge.r-project.org/projects/rqda/>) is
 installed.")
      (license license:bsd-3))))
+
+(define-public r-nlp
+  (package
+   (name "r-nlp")
+   (version "0.1-11")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (cran-uri "NLP" version))
+     (sha256
+      (base32
+       "15v50gxzmpqx49wzkwxfpb5xjpg9y829a0ifys372kf1cfj521aq"))))
+   (properties `((upstream-name . "NLP")))
+   (build-system r-build-system)
+   (home-page
+    "http://cran.r-project.org/web/packages/NLP")
+   (synopsis
+    "Natural Language Processing Infrastructure")
+   (description
+    "Basic classes and methods for Natural Language Processing.")
+   (license license:gpl3)))
+
+(define-public r-tm
+  (package
+   (name "r-tm")
+   (version "0.7-5")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (cran-uri "tm" version))
+     (sha256
+      (base32
+       "05x3kj6dxffcfyn42q2fw9bby5f4wdmslc3ww1dl0r09pz950cax"))))
+   (build-system r-build-system)
+   (propagated-inputs
+    `(("r-bh" ,r-bh)
+      ("r-nlp" ,r-nlp)
+      ("r-rcpp" ,r-rcpp)
+      ("r-slam" ,r-slam)
+      ("r-xml2" ,r-xml2)))
+   (home-page "http://tm.r-forge.r-project.org/")
+   (synopsis "Text Mining Package")
+   (description
+    "This package provides a framework for text mining applications within R.")
+   (license license:gpl3)))