Subject: [PATCH 1/4] gnu: Add r-ctrialsgov.

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

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index a36c845479..a3590fe9cd 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -396,6 +396,43 @@ (define-public r-cplm
 comparison tool involving zero-inflated and highly skewed distributions.")
     (license license:gpl2+)))
 
+(define-public r-ctrialsgov
+  (package
+    (name "r-ctrialsgov")
+    (version "0.2.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "ctrialsgov" version))
+       (sha256
+        (base32 "0hdh1fdfaja8amf7fkvk1c6yif703132bvacq0j9pk5jr97czgpw"))))
+    (properties `((upstream-name . "ctrialsgov")))
+    (build-system r-build-system)
+    (propagated-inputs
+     (list r-dbi
+           r-dplyr
+           r-ggplot2
+           r-htmlwidgets
+           r-lubridate
+           r-matrix
+           r-plotly
+           r-purrr
+           r-rlang
+           r-stringi
+           r-tibble))
+    (native-inputs (list r-knitr))
+    (home-page "https://cran.r-project.org/package=ctrialsgov")
+    (synopsis
+     "Query data from U.S. National Library of Medicine's Clinical trials database")
+    (description
+     "The ctrialsgov package implements a series of tools which create and query
+database from the United States National Library of Medicine's Clinical trials
+database @url{https://clinicaltrials.gov/}.  Functions provide access a variety
+of techniques for searching the data using range queries, categorical filtering,
+and by searching for full-text keywords.  Minimal graphical tools are also
+provided for interactively exploring the constructed data.")
+    (license license:expat)))
+
 (define-public r-curry
   (package
     (name "r-curry")

base-commit: de84b24613afa4020f3f0553dad8e39a78d1f92c
-- 
2.39.2