summary refs log tree commit diff
path: root/gnu/packages/cran.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-02-26 10:12:02 +0100
committerRicardo Wurmus <rekado@elephly.net>2020-02-26 10:12:02 +0100
commit70af390f62262ca52173d908a9ffeb334f0e4589 (patch)
tree9e7d46ef922c6f642073892346d870ac26dfedb3 /gnu/packages/cran.scm
parent410cfa78be1a47f5f280acb7195a0264c4ec2810 (diff)
downloadguix-70af390f62262ca52173d908a9ffeb334f0e4589.tar.gz
gnu: Add r-rstantools.
* gnu/packages/cran.scm (r-rstantools): New variable.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r--gnu/packages/cran.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 7d53e5e623..618f892cc9 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -20409,3 +20409,30 @@ application framework and works with the output of MCMC programs written in
 any programming language (and has extended functionality for Stan models fit
 using the @code{rstan} and @code{rstanarm} packages).")
     (license license:gpl3+)))
+
+(define-public r-rstantools
+  (package
+    (name "r-rstantools")
+    (version "2.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "rstantools" version))
+       (sha256
+        (base32
+         "1il0pn4ksbdkska5fmhvgaicvwnnc6cs08g6ags9fj1xkjiqmrsa"))))
+    (properties `((upstream-name . "rstantools")))
+    (build-system r-build-system)
+    (inputs `(("pandoc" ,ghc-pandoc)))
+    (propagated-inputs
+     `(("r-desc" ,r-desc)
+       ("r-rcpp" ,r-rcpp)))
+    (home-page "https://mc-stan.org/rstantools/")
+    (synopsis "Tools for developing R packages interfacing with Stan")
+    (description
+     "This package provides various tools for developers of R packages
+interfacing with @url{https://mc-stan.org, Stan}, including functions to set
+up the required package structure, S3 generics and default methods to unify
+function naming across Stan-based R packages, and vignettes with
+recommendations for developers.")
+    (license license:gpl3+)))