Subject: [bug#59541] [PATCH] Added r-rfacts package

From: Navid Afkhami <[email-masked]>
Date: Thu, 24 Nov 2022 12:09:56 +0100

---
 gnu/packages/cran.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 3e5d654c5a..1487af41e6 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -472,6 +472,33 @@ (define-public r-emdist
 Distance (EMD).")
     (license license:expat)))
 
+(define-public r-rfacts
+  (package
+    (name "r-rfacts")
+    (version "0.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "rfacts" version))
+              (sha256
+               (base32
+                "0h2ryyl5zc3pxi85y0qwadfz7sdzz0m6ilwzabw317sb0z5lms5b"))))
+    (properties `((upstream-name . "rfacts")))
+    (build-system r-build-system)
+    (inputs (list))
+    (propagated-inputs (list r-digest r-fs r-tibble r-xml2))
+    (native-inputs (list r-knitr))
+    (home-page "https://elilillyco.github.io/rfacts/")
+    (synopsis "Tool for invoking FACTS to run clinical trial simulations")
+    (description
+     "The rfacts package is an R interface to the Fixed and Adaptive Clinical Trial
+Simulator @code{FACTS} on Unix-like systems.
+It programmatically invokes @code{FACTS} to run clinical trial simulations.
+It aggregates simulation output data into tidy data frames.
+These capabilities provide end-to-end automation for
+large-scale simulation pipelines, and they enhance computational
+reproducibility.")
+    (license license:expat)))
+
 (define-public r-ggalt
   (package
     (name "r-ggalt")
-- 
2.34.1