1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015 Vicente Vera Parra <vicentemvp@gmail.com>
4 ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2016, 2017, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
7 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
8 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
9 ;;; Copyright © 2016, 2017 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com>
11 ;;; Copyright © 2017–2020, 2022 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Alex Kost <alezost@gmail.com>
13 ;;; Copyright © 2018 Alex Branham <alex.branham@gmail.com>
14 ;;; Copyright © 2020 Tim Howes <timhowes@lavabit.com>
15 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
17 ;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
18 ;;; Copyright © 2021 Frank Pursel <frank.pursel@gmail.com>
19 ;;; Copyright © 2022 Simon Tournier <zimon.toutoune@gmail.com>
21 ;;; This file is part of GNU Guix.
23 ;;; GNU Guix is free software; you can redistribute it and/or modify it
24 ;;; under the terms of the GNU General Public License as published by
25 ;;; the Free Software Foundation; either version 3 of the License, or (at
26 ;;; your option) any later version.
28 ;;; GNU Guix is distributed in the hope that it will be useful, but
29 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
30 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 ;;; GNU General Public License for more details.
33 ;;; You should have received a copy of the GNU General Public License
34 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
36 (define-module (gnu packages statistics)
37 #:use-module (guix gexp)
38 #:use-module ((guix licenses) #:prefix license:)
39 #:use-module (guix packages)
40 #:use-module (guix download)
41 #:use-module (guix hg-download)
42 #:use-module (guix git-download)
43 #:use-module (guix utils)
44 #:use-module (guix build-system ant)
45 #:use-module (guix build-system emacs)
46 #:use-module (guix build-system gnu)
47 #:use-module (guix build-system r)
48 #:use-module (guix build-system python)
49 #:use-module (guix build-system trivial)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages algebra)
52 #:use-module (gnu packages autotools)
53 #:use-module (gnu packages bash)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages cran)
57 #:use-module (gnu packages curl)
58 #:use-module (gnu packages emacs)
59 #:use-module (gnu packages emacs-xyz)
60 #:use-module (gnu packages fontutils)
61 #:use-module (gnu packages gcc)
62 #:use-module (gnu packages gtk)
63 #:use-module (gnu packages gettext)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages haskell-xyz)
66 #:use-module (gnu packages icu4c)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages java)
69 #:use-module (gnu packages javascript)
70 #:use-module (gnu packages libffi)
71 #:use-module (gnu packages linux)
72 #:use-module (gnu packages machine-learning)
73 #:use-module (gnu packages maths)
74 #:use-module (gnu packages multiprecision)
75 #:use-module (gnu packages ncurses)
76 #:use-module (gnu packages pcre)
77 #:use-module (gnu packages perl)
78 #:use-module (gnu packages pkg-config)
79 #:use-module (gnu packages python)
80 #:use-module (gnu packages python-science)
81 #:use-module (gnu packages python-xyz)
82 #:use-module (gnu packages readline)
83 #:use-module (gnu packages shells)
84 #:use-module (gnu packages sphinx)
85 #:use-module (gnu packages ssh)
86 #:use-module (gnu packages tcl)
87 #:use-module (gnu packages tex)
88 #:use-module (gnu packages texinfo)
89 #:use-module (gnu packages time)
90 #:use-module (gnu packages tls)
91 #:use-module (gnu packages base)
92 #:use-module (gnu packages uglifyjs)
93 #:use-module (gnu packages version-control)
94 #:use-module (gnu packages web)
95 #:use-module (gnu packages xml)
96 #:use-module (gnu packages xorg)
97 #:use-module (srfi srfi-1)
98 #:use-module (ice-9 match))
108 (uri (string-append "mirror://gnu/pspp/pspp-"
112 "0lqrash677b09zxdlxp89z6k02y4i23mbqg83956dwl69wc53dan"))))
113 (build-system gnu-build-system)
116 #~(modify-phases %standard-phases
117 (add-before 'check 'prepare-tests
118 ;; Prevent irrelevant errors that cause test output mismatches:
119 ;; ‘Fontconfig error: No writable cache directories’
121 (setenv "XDG_CACHE_HOME" (getcwd)))))))
134 (list autoconf ;for tests
135 `(,glib "bin") ;for glib-genmarshal
140 (home-page "https://www.gnu.org/software/pspp/")
141 (synopsis "Statistical analysis")
143 "GNU PSPP is a statistical analysis program. It can perform
144 descriptive statistics, T-tests, linear regression and non-parametric tests.
145 It features both a graphical interface as well as command-line input. PSPP
146 is designed to interoperate with Gnumeric, LibreOffice and OpenOffice. Data
147 can be imported from spreadsheets, text files and database sources and it can
148 be output in text, PostScript, PDF or HTML.")
149 (license license:gpl3+)))
157 (uri (string-append "mirror://sourceforge/mcmc-jags/JAGS/"
158 (version-major version) ".x/Source/"
159 "JAGS-" version ".tar.gz"))
162 "0aa2w4g5057vn1qjp954s2kwxfmy1h7p5yn56fyi7sz9nmaq69gr"))))
163 (build-system gnu-build-system)
164 (home-page "http://mcmc-jags.sourceforge.net/")
166 (list gfortran lapack))
167 (synopsis "Gibbs sampler")
168 (description "JAGS is Just Another Gibbs Sampler. It is a program for
169 analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC)
170 simulation not wholly unlike BUGS. JAGS was written with three aims in mind:
173 @item To have a cross-platform engine for the BUGS language;
174 @item To be extensible, allowing users to write their own functions,
175 distributions and samplers;
176 @item To be a platform for experimentation with ideas in Bayesian modelling.
178 (license license:gpl2)))
180 (define-public libxls
187 (uri (string-append "https://github.com/libxls/libxls/releases/download/"
188 "v" version "/libxls-" version ".tar.gz"))
190 (base32 "0wg3ymr43aa1j3scyl9x83b2xgg7wilzpil0dj91a8dzji6w7b2x"))))
191 (build-system gnu-build-system)
192 (home-page "https://github.com/libxls/libxls")
193 (synopsis "Read binary (.xls) Excel spreadsheet files")
195 "libxls is a C library to read .xls spreadsheet files in the binary OLE
196 BIFF8 format as created by Excel 97 and later versions. It cannot write them.
198 This package also provides @command{xls2csv} to export Excel files to CSV.")
199 (license license:bsd-2)))
201 ;; Update this package together with the set of recommended packages: r-boot,
202 ;; r-class, r-cluster, r-codetools, r-foreign, r-kernsmooth, r-lattice,
203 ;; r-mass, r-matrix, r-mgcv, r-nlme, r-nnet, r-rpart, r-spatial, r-survival.
206 (name "r-with-tests")
210 (uri (string-append "mirror://cran/src/base/R-"
211 (version-major version) "/R-"
215 "0gv4di1x835i4nsy21vqw66c0blmmmvyjkixc5a8x117dm4dnljd"))))
216 (build-system gnu-build-system)
218 `(#:disallowed-references (,tzdata-for-tests)
220 (list (string-append "LDFLAGS=-Wl,-rpath="
221 (assoc-ref %outputs "out")
223 ;; This affects the embedded timestamp of only the core packages.
224 "PKG_BUILT_STAMP=1970-01-01")
226 (modify-phases %standard-phases
227 (add-before 'configure 'do-not-compress-serialized-files
228 (lambda* (#:key inputs #:allow-other-keys)
229 ;; This ensures that Guix can detect embedded store references;
230 ;; see bug #28157 for details.
231 (substitute* "src/library/base/makebasedb.R"
232 (("compress = TRUE") "compress = FALSE"))))
233 (add-before 'configure 'patch-coreutils-paths
234 (lambda* (#:key inputs #:allow-other-keys)
235 (let ((uname-bin (search-input-file inputs "/bin/uname"))
236 (rm-bin (search-input-file inputs "/bin/rm")))
237 (substitute* "src/scripts/R.sh.in"
238 (("uname") uname-bin))
239 (substitute* "src/unix/sys-std.c"
240 (("rm -Rf ") (string-append rm-bin " -Rf "))))))
241 (add-after 'unpack 'patch-tests
243 ;; This is needed because R is run during the check phase and
244 ;; /bin/sh doesn't exist in the build container.
245 (substitute* "src/unix/sys-unix.c"
247 (string-append "\"" (which "sh") "\"")))
248 ;; This test fails because line numbers are off by two.
249 (substitute* "tests/reg-packages.R"
250 (("8 <= print" m) (string-append "## " m)))))
251 (add-after 'unpack 'build-reproducibly
253 ;; The documentation contains time stamps to demonstrate
254 ;; documentation generation in different phases.
255 (substitute* "src/library/tools/man/Rd2HTML.Rd"
256 (("\\\\%Y-\\\\%m-\\\\%d at \\\\%H:\\\\%M:\\\\%S")
257 "(removed for reproducibility)"))
259 ;; Remove timestamp from tracing environment. This fixes
260 ;; reproducibility of "methods.rd{b,x}".
261 (substitute* "src/library/methods/R/trace.R"
262 (("dateCreated = Sys.time\\(\\)")
263 "dateCreated = as.POSIXct(\"1970-1-1 00:00:00\", tz = \"UTC\")"))
265 ;; Ensure that gzipped files are reproducible.
266 (substitute* '("src/library/grDevices/Makefile.in"
267 "doc/manual/Makefile.in")
268 (("R_GZIPCMD\\)" line)
269 (string-append line " -n")))
271 ;; The "srcfile" procedure in "src/library/base/R/srcfile.R"
272 ;; queries the mtime of a given file and records it in an object.
273 ;; This is acceptable at runtime to detect stale source files,
274 ;; but it destroys reproducibility at build time.
276 ;; Similarly, the "srcfilecopy" procedure records the current
277 ;; time. We change both of them to respect SOURCE_DATE_EPOCH.
278 (substitute* "src/library/base/R/srcfile.R"
279 (("timestamp <- (timestamp.*|file.mtime.*)" _ time)
280 (string-append "timestamp <- \
281 as.POSIXct(if (\"\" != Sys.getenv(\"SOURCE_DATE_EPOCH\")) {\
282 as.numeric(Sys.getenv(\"SOURCE_DATE_EPOCH\"))\
283 } else { " time "}, origin=\"1970-01-01\")\n")))
285 ;; This library is installed using "install_package_description",
286 ;; so we need to pass the "builtStamp" argument.
287 (substitute* "src/library/tools/Makefile.in"
288 (("(install_package_description\\(.*\"')\\)\"" line prefix)
289 (string-append prefix ", builtStamp='1970-01-01')\"")))
291 (substitute* "src/library/Recommended/Makefile.in"
292 (("INSTALL_OPTS =" m)
293 (string-append m " --built-timestamp=1970-01-01" m)))
295 ;; R bundles an older version of help2man, which does not respect
296 ;; SOURCE_DATE_EPOCH. We cannot just use the latest help2man,
297 ;; because that breaks a test.
298 (with-fluids ((%default-port-encoding "ISO-8859-1"))
299 (substitute* "tools/help2man.pl"
300 (("my \\$date = strftime \"%B %Y\", localtime" line)
301 (string-append line " 1"))))
303 ;; The "References" section of this file when converted to
304 ;; package.rds is sometimes stored with a newline, sometimes with
305 ;; a space. We avoid this problem by removing the line break
306 ;; that is suspected to be the culprit.
307 (substitute* "src/library/methods/DESCRIPTION.in"
308 (("\\(2008\\)\n") "(2008) ")
309 ((" ``Software") "``Software")
310 (("Data Analysis:.") "Data Analysis:\n")
311 (("Programming with R") " Programming with R"))))
312 (add-before 'build 'set-locales
314 (setlocale LC_ALL "C")
315 (setenv "LC_ALL" "C")))
316 (add-before 'configure 'set-default-pager
317 ;; Set default pager to "cat", because otherwise it is "false",
318 ;; making "help()" print nothing at all.
319 (lambda _ (setenv "PAGER" "cat")))
320 (add-before 'check 'set-timezone
321 ;; Some tests require the timezone to be set. However, the
322 ;; timezone may not just be "UTC", or else a brittle regression
323 ;; test in reg-tests-1d will fail.
324 (lambda* (#:key inputs #:allow-other-keys)
325 (setenv "TZ" "UTC+1")
327 (search-input-directory inputs
329 (add-before 'check 'set-home
330 ;; Some tests require that HOME be set.
331 (lambda _ (setenv "HOME" "/tmp")))
332 (add-after 'build 'make-info
333 (lambda _ (invoke "make" "info")))
334 (add-after 'build 'install-info
335 (lambda _ (invoke "make" "install-info"))))
337 `(;; We build the recommended packages here, because they are needed in
338 ;; order to run the test suite. We disable them in the r-minimal
341 "--with-blas=-lopenblas"
347 ,(string-append "--with-tcl-config="
348 (assoc-ref %build-inputs "tcl")
350 ,(string-append "--with-tk-config="
351 (assoc-ref %build-inputs "tk")
354 "--enable-BLAS-shlib"
355 "--with-system-tre")))
356 ;; R has some support for Java. When the JDK is available at configure
357 ;; time environment variables pointing to the JDK will be recorded under
358 ;; $R_HOME/etc and ./tools/getsp.java will be compiled which is used by "R
359 ;; CMD javareconf". "R CMD javareconf" appears to only be used to update
360 ;; the recorded environment variables in $R_HOME/etc. Refer to
361 ;; https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
362 ;; for additional information.
364 ;; As the JDK is a rather large input with only very limited effects on R,
365 ;; we decided to drop it.
369 ("pkg-config" ,pkg-config)
370 ("texinfo" ,texinfo) ; for building HTML manuals
371 ("texlive" ,(texlive-updmap.cfg (list texlive-ae
377 texlive-latex-fancyvrb
378 texlive-latex-graphics
382 texlive-latex-upquote
384 texlive-latex-xkeyval)))
385 ("tzdata" ,tzdata-for-tests)
388 `(;; We need not only cairo here, but pango to ensure that tests for the
389 ;; "cairo" bitmapType plotting backend succeed.
391 ("coreutils" ,coreutils)
393 ("openblas" ,openblas)
394 ("gfortran" ,gfortran)
396 ("libjpeg" ,libjpeg-turbo)
401 ("readline" ,readline)
402 ;; This avoids a reference to the ungraftable static bash. R uses the
403 ;; detected shell for the "system" procedure.
404 ("bash" ,bash-minimal)
410 (list (search-path-specification
411 (variable "R_LIBS_SITE")
412 (files (list "site-library/")))))
413 (home-page "https://www.r-project.org/")
414 (synopsis "Environment for statistical computing and graphics")
416 "R is a language and environment for statistical computing and graphics.
417 It provides a variety of statistical techniques, such as linear and nonlinear
418 modeling, classical statistical tests, time-series analysis, classification
419 and clustering. It also provides robust support for producing
420 publication-quality data plots. A large amount of 3rd-party packages are
421 available, greatly increasing its breadth and scope.")
422 (license license:gpl3+)))
424 (define-public r-minimal
425 (package (inherit r-with-tests)
429 ,@(substitute-keyword-arguments (package-arguments r-with-tests)
430 ((#:disallowed-references refs '())
432 ((#:configure-flags flags)
433 ;; Do not build the recommended packages. The build system creates
434 ;; random temporary directories and embeds their names in some
435 ;; package files. We build these packages with the r-build-system
437 `(cons "--without-recommended-packages" ,flags))
438 ((#:phases phases '%standard-phases)
439 `(modify-phases ,phases
440 (add-after 'install 'remove-extraneous-references
441 (lambda* (#:key inputs outputs #:allow-other-keys)
442 (let ((out (assoc-ref outputs "out")))
443 (substitute* (string-append out "/lib/R/etc/Makeconf")
445 "# Removed to avoid extraneous references\n"))
446 (substitute* (string-append out "/lib/R/bin/libtool")
449 (assoc-ref inputs "bzip2")
451 (assoc-ref inputs "perl")
453 (assoc-ref inputs "texlive")
455 (assoc-ref inputs "texlive-bin")
457 (assoc-ref inputs "texinfo")
459 (assoc-ref inputs "xz")
462 "/gnu/store/[^-]+-(~{~a~^|~})-[^/]+"
463 '("glibc-utf8-locales"
471 "/gnu/store/[^-]+-glibc-[^-]+-static"
472 ")/lib")) ""))))))))))))
474 (define-public rmath-standalone
475 (package (inherit r-minimal)
476 (name "rmath-standalone")
479 (modify-phases %standard-phases
480 (add-after 'configure 'chdir
481 (lambda _ (chdir "src/nmath/standalone/") #t)))))
482 (synopsis "Standalone R math library")
484 "This package provides the R math library as an independent package.")))
486 (define-public r-boot
493 (uri (cran-uri "boot" version))
496 "0cjafhqv1c1mrjjcasqr767vs96wjcc6am9r1icryr8l4zymhwcz"))))
497 (build-system r-build-system)
498 (home-page "https://cran.r-project.org/web/packages/boot")
499 (synopsis "Bootstrap functions for R")
501 "This package provides functions and datasets for bootstrapping from the
502 book \"Bootstrap Methods and Their Application\" by A.C. Davison and
503 D.V. Hinkley (1997, CUP), originally written by Angelo Canty for S.")
504 ;; Unlimited distribution
505 (license (license:non-copyleft "file://R/bootfuns.q"))))
507 (define-public r-mass
514 (uri (cran-uri "MASS" version))
517 "080l4gqkaw9r4s7b0q9hda489rn24p4ma5xf4g8405qkzgif817p"))))
518 (properties `((upstream-name . "MASS")))
519 (build-system r-build-system)
520 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
521 (synopsis "Support functions and datasets for Venables and Ripley's MASS")
523 "This package provides functions and datasets for the book \"Modern
524 Applied Statistics with S\" (4th edition, 2002) by Venables and Ripley.")
525 ;; Either version may be picked.
526 (license (list license:gpl2 license:gpl3))))
528 (define-public r-class
535 (uri (cran-uri "class" version))
538 "10slys2jny4k2j8l8k97hwrwd6ryzajfnzywqpq2yc9bqxmh8nz6"))))
539 (build-system r-build-system)
542 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
543 (synopsis "R functions for classification")
545 "This package provides various functions for classification, including
546 k-nearest neighbour, Learning Vector Quantization and Self-Organizing Maps.")
547 ;; Either of the two versions can be picked.
548 (license (list license:gpl2 license:gpl3))))
550 (define-public r-cluster
557 (uri (cran-uri "cluster" version))
560 "1dpmss4mdpw6la5kjf135h2jj5j5zmqvykpj6fl6n5wslbn0rwf6"))))
561 (build-system r-build-system)
564 (home-page "https://cran.r-project.org/web/packages/cluster")
565 (synopsis "Methods for cluster analysis")
567 "This package provides methods for cluster analysis. It is a much
568 extended version of the original from Peter Rousseeuw, Anja Struyf and Mia
569 Hubert, based on Kaufman and Rousseeuw (1990) \"Finding Groups in Data\".")
570 (license license:gpl2+)))
572 (define-public r-codetools
579 (uri (cran-uri "codetools" version))
582 "0a2c115glq8jxixwfigrpvjabhxchn9r4mc40y41dg9dg6wsd7hs"))))
583 (build-system r-build-system)
584 (home-page "https://cran.r-project.org/web/packages/codetools")
585 (synopsis "Code analysis tools for R")
586 (description "This package provides code analysis tools for R to check R
587 code for possible problems.")
588 ;; Any version of the GPL.
589 (license (list license:gpl2+ license:gpl3+))))
591 (define-public r-foreign
598 (uri (cran-uri "foreign" version))
601 "1yw07yqzfm4w1h92ijyamrmf7rmkqxgamqfd74x7zv4vsn20dvgq"))))
602 (build-system r-build-system)
603 (home-page "https://cran.r-project.org/web/packages/foreign")
604 (synopsis "Read data stored by other statistics software")
606 "This package provides functions for reading and writing data stored by
607 some versions of Epi Info, Minitab, S, SAS, SPSS, Stata, Systat and Weka and
608 for reading and writing some dBase files.")
609 (license license:gpl2+)))
611 (define-public r-kernsmooth
613 (name "r-kernsmooth")
618 (uri (cran-uri "KernSmooth" version))
621 "0fgclmzk3ksjsh3j47jqzm3jhqrwn12rkp7f84yr6wr43q2pbsr0"))))
622 (properties `((upstream-name . "KernSmooth")))
623 (build-system r-build-system)
626 (home-page "https://cran.r-project.org/web/packages/KernSmooth")
627 (synopsis "Functions for kernel smoothing")
629 "This package provides functions for kernel smoothing (and density
630 estimation) corresponding to the book: Wand, M.P. and Jones, M.C. (1995)
631 \"Kernel Smoothing\".")
632 ;; Unlimited use and distribution
633 (license (license:non-copyleft "file://LICENCE.note"))))
635 (define-public r-lattice
641 (uri (cran-uri "lattice" version))
644 "1b87fmyjzbg854vpi03my1p25n3d0bchhwsdm2frblxppn98sf12"))))
645 (build-system r-build-system)
646 (home-page "http://lattice.r-forge.r-project.org/")
647 (synopsis "High-level data visualization system")
649 "The lattice package provides a powerful and elegant high-level data
650 visualization system inspired by Trellis graphics, with an emphasis on
651 multivariate data. Lattice is sufficient for typical graphics needs, and is
652 also flexible enough to handle most nonstandard requirements.")
653 (license license:gpl2+)))
655 (define-public r-matrix
662 (uri (cran-uri "Matrix" version))
665 "0pap6pb0is2s02l43y982p7banwi844bjpgbcgf6fb8pb01vlzam"))))
666 (properties `((upstream-name . "Matrix")))
667 (build-system r-build-system)
670 (home-page "http://Matrix.R-forge.R-project.org/")
671 (synopsis "Sparse and dense matrix classes and methods")
673 "This package provides classes and methods for dense and sparse matrices
674 and operations on them using LAPACK and SuiteSparse.")
675 (license license:gpl2+)))
677 (define-public r-nlme
684 (uri (cran-uri "nlme" version))
686 (base32 "1gqrv4skfgcny4pdpmymdwjcmsd3hla84s76g18dgqj665f5zc4v"))))
687 (build-system r-build-system)
692 (home-page "https://cran.r-project.org/web/packages/nlme")
693 (synopsis "Linear and nonlinear mixed effects models")
695 "This package provides tools to fit and compare Gaussian linear and
696 nonlinear mixed-effects models.")
697 (license license:gpl2+)))
699 (define-public r-mgcv
706 (uri (cran-uri "mgcv" version))
708 (base32 "19g4lzxjw931s68ni7ii81jwi25sf19qs8nlw8r94crvdhk2grnv"))))
709 (build-system r-build-system)
711 (list r-matrix r-nlme))
712 (home-page "https://cran.r-project.org/web/packages/mgcv")
713 (synopsis "Mixed generalised additive model computation")
715 "GAMs, GAMMs and other generalized ridge regression with multiple smoothing
716 parameter estimation by GCV, REML or UBRE/AIC. The library includes a
717 @code{gam()} function, a wide variety of smoothers, JAGS support and
718 distributions beyond the exponential family.")
719 (license license:gpl2+)))
721 (define-public r-nnet
728 (uri (cran-uri "nnet" version))
731 "0rws3rkd7dz1maz2mkld29jfrixjgacay8rqz7nmi82a2sw0nxgf"))))
732 (build-system r-build-system)
733 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
734 (synopsis "Feed-forward neural networks and multinomial log-linear models")
736 "This package provides functions for feed-forward neural networks with a
737 single hidden layer, and for multinomial log-linear models.")
738 (license (list license:gpl2+ license:gpl3+))))
740 (define-public r-rpart
747 (uri (cran-uri "rpart" version))
750 "0p22657j6ps6z1dn0ja2fhq4k5xd1rv3cpwzk6nmjd2si8jpbv17"))))
751 (build-system r-build-system)
752 (home-page "https://cran.r-project.org/web/packages/rpart")
753 (synopsis "Recursive partitioning and regression trees")
755 "This package provides recursive partitioning functions for
756 classification, regression and survival trees.")
757 (license (list license:gpl2+ license:gpl3+))))
759 (define-public r-spatial
766 (uri (cran-uri "spatial" version))
769 "1vwc7ingskdj1k4nq418x9yl3cw699pckb9xh5a1yp3g9plknqg5"))))
770 (build-system r-build-system)
771 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
772 (synopsis "Functions for kriging and point pattern analysis")
774 "This package provides functions for kriging and point pattern
776 ;; Either version may be picked.
777 (license (list license:gpl2 license:gpl3))))
779 (define-public r-survival
786 (uri (cran-uri "survival" version))
789 "04pqkklbjpcqaq49h49j0vw18q4hi31ry3szzf84vzk5fba273m4"))))
790 (build-system r-build-system)
793 (home-page "https://github.com/therneau/survival")
794 (synopsis "Survival analysis")
796 "This package contains the core survival analysis routines, including
797 definition of Surv objects, Kaplan-Meier and Aalen-Johansen (multi-state)
798 curves, Cox models, and parametric accelerated failure time models.")
799 (license license:lgpl2.0+)))
802 (package (inherit r-minimal)
805 (build-system trivial-build-system)
806 (arguments '(#:builder (begin (mkdir %output) #t)))
832 (uri (cran-uri "bit" version))
835 "0s7isadibxp2wr62r5cpbyh9z31sczzfz4j3rm7gxgjfpqgq8174"))))
836 (build-system r-build-system)
839 (home-page "http://ff.r-forge.r-project.org")
840 (synopsis "Class for vectors of 1-bit booleans")
842 "This package provides bitmapped vectors of booleans (no @code{NA}s),
843 coercion from and to logicals, integers and integer subscripts, fast boolean
844 operators and fast summary statistics. With @code{bit} class vectors of true
845 binary booleans, @code{TRUE} and @code{FALSE} can be stored with 1 bit only.")
846 (license license:gpl2)))
848 (define-public r-bit64
855 (uri (cran-uri "bit64" version))
858 "0y0m7q1rwam1g88cjx7zyi07mj5dipxd9jkl90f294syx8k6ipr5"))))
859 (build-system r-build-system)
862 (home-page "http://ff.r-forge.r-project.org/")
863 (synopsis "S3 class for vectors of 64 bit integers")
865 "The bit64 package provides serializable S3 atomic 64 bit (signed)
866 integers that can be used in vectors, matrices, arrays and @code{data.frames}.
867 Methods are available for coercion from and to logicals, integers, doubles,
868 characters and factors as well as many elementwise and summary functions.
869 Many fast algorithmic operations such as @code{match} and @code{order} support
870 interactive data exploration and manipulation and optionally leverage
872 (license license:gpl2)))
874 (define-public r-chorddiag
882 (url "https://github.com/mattflor/chorddiag")
883 (commit (string-append "v" version))))
884 (file-name (git-file-name name version))
887 "1bpy9q861l1hyyiqbx2f7qzp7j7im8bkcfdwgxzk5fm0250p359a"))
888 ;; Delete minified JavaScript file
890 '(delete-file "inst/htmlwidgets/lib/d3/d3.min.js"))))
891 (build-system r-build-system)
894 (modify-phases %standard-phases
895 (add-after 'unpack 'process-javascript
896 (lambda* (#:key inputs #:allow-other-keys)
897 (with-directory-excursion "inst/htmlwidgets/lib/d3"
898 (let ((source (assoc-ref inputs "d3.v4.js"))
899 (target "d3.min.js"))
900 (format #true "Processing ~a --> ~a~%"
902 (invoke "esbuild" source "--minify"
903 (string-append "--outfile=" target)))))))))
905 (list r-htmlwidgets r-rcolorbrewer))
907 `(("esbuild" ,esbuild)
912 (uri "https://d3js.org/d3.v4.js")
915 "0y7byf6kcinfz9ac59jxc4v6kppdazmnyqfav0dm4h550fzfqqlg"))))))
916 (home-page "https://github.com/mattflor/chorddiag")
917 (synopsis "Create D3 chord diagram")
919 "This package provides tools to create interactive chords diagrams via
920 the D3 Javascript library. Chord diagrams show directed relationships among a
921 group of entities. This package is based on
922 @url{http://bl.ocks.org/mbostock/4062006} with some modifications (fading) and
923 additions (tooltips, bipartite diagram type).")
924 (license license:gpl3+)))
926 (define-public r-dichromat
933 (uri (cran-uri "dichromat" version))
935 (base32 "10b0avdar3d1y8x2ya3x5kqxqg0z0mq872hdzvc1nn4amplph1d1"))))
936 (build-system r-build-system)
937 (home-page "https://cran.r-project.org/web/packages/dichromat")
938 (synopsis "Color schemes for dichromats")
940 "Dichromat collapses red-green or green-blue distinctions to simulate the
941 effects of different types of color-blindness.")
942 (license license:gpl2+)))
944 (define-public r-digest
951 (uri (cran-uri "digest" version))
953 (base32 "1ncwc5fwsylwlcp9vhkhszw8m5sifg74apig2m2pf168lha1yb3r"))))
954 (build-system r-build-system)
955 ;; Vignettes require r-knitr, which requires r-digest, so we have to
956 ;; disable them and the tests.
959 #:configure-flags (list "--no-build-vignettes")))
960 (home-page "http://dirk.eddelbuettel.com/code/digest.html")
961 (synopsis "Create cryptographic hash digests of R objects")
963 "This package contains an implementation of a function @code{digest()} for
964 the creation of hash digests of arbitrary R objects (using the md5, sha-1,
965 sha-256, crc32, xxhash and murmurhash algorithms) permitting easy comparison
966 of R language objects, as well as a function @code{hmac()} to create hash-based
967 message authentication code.
969 Please note that this package is not meant to be deployed for cryptographic
970 purposes for which more comprehensive (and widely tested) libraries such as
971 OpenSSL should be used.")
972 (license license:gpl2+)))
974 (define-public r-estimability
976 (name "r-estimability")
980 (uri (cran-uri "estimability" version))
983 "090i1xwdp4fwj8jr8nk13w49516lfkk5mq1w7l0lff9g8lgaynn6"))))
984 (build-system r-build-system)
985 (home-page "https://cran.r-project.org/web/packages/estimability")
986 (synopsis "Tools for assessing estimability of linear predictions")
987 (description "Provides tools for determining estimability of linear
988 functions of regression coefficients, and @code{epredict} methods that handle
989 non-estimable cases correctly.")
990 (license license:gpl2+)))
992 (define-public r-labeling
999 (uri (cran-uri "labeling" version))
1001 (base32 "0rfikd9gy70b8qz87q9axcwv8nmn9mbxfdwypxi0sghpfs9df8p0"))))
1002 (build-system r-build-system)
1003 (home-page "https://cran.r-project.org/web/packages/labeling")
1004 (synopsis "Axis labeling algorithms")
1005 (description "The labeling package provides a range of axis labeling
1007 (license license:expat)))
1009 (define-public r-magrittr
1016 (uri (cran-uri "magrittr" version))
1018 (base32 "1ljmrrm36y31db5z4cl863ap8k3jcaxk0qzy3f0cn6iag4zzigx2"))))
1019 (build-system r-build-system)
1020 ;; knitr needs magrittr
1023 `(("r-knitr" ,r-knitr)))
1024 (home-page "https://cran.r-project.org/web/packages/magrittr/index.html")
1025 (synopsis "Forward-pipe operator for R")
1027 "Magrittr provides a mechanism for chaining commands with a new
1028 forward-pipe operator, %>%. This operator will forward a value, or the result
1029 of an expression, into the next function call/expression. There is flexible
1030 support for the type of right-hand side expressions. For more information,
1031 see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"")
1032 (license license:expat)))
1034 (define-public r-munsell
1041 (uri (cran-uri "munsell" version))
1043 (base32 "16g1fzisbpqb15yh3pqf3iia4csppva5dnv1z88x9dg263xskwyh"))))
1044 (build-system r-build-system)
1046 (list r-colorspace))
1047 (home-page "https://cran.r-project.org/web/packages/munsell")
1048 (synopsis "Munsell colour system")
1050 "The Munsell package contains Functions for exploring and using the
1051 Munsell colour system.")
1052 (license license:expat)))
1054 (define-public r-permute
1061 (uri (cran-uri "permute" version))
1064 "1h4dyhcsv8p3h3qxsy98pib9v79dddvrnq7qx6abkblsazxqzy7g"))))
1065 (build-system r-build-system)
1066 (native-inputs (list r-knitr))
1067 ;; Tests do not run correctly, but running them properly would entail a
1068 ;; circular dependency with vegan.
1069 (home-page "https://github.com/gavinsimpson/permute")
1070 (synopsis "Functions for Generating Restricted Permutations of Data")
1072 "This package provides a set of restricted permutation designs for freely
1073 exchangeable, line transects (time series), spatial grid designs and permutation
1074 of blocks (groups of samples). @code{permute} also allows split-plot designs,
1075 in which the whole-plots or split-plots or both can be freely exchangeable.")
1076 (license license:gpl2+)))
1078 (define-public r-plyr
1085 (uri (cran-uri "plyr" version))
1087 (base32 "0zz88q055c38b9xqzfg1mwm7ikxzlyx3pnk16sfa8dbh2pqxm7vx"))))
1088 (build-system r-build-system)
1089 (propagated-inputs (list r-rcpp))
1090 (home-page "http://had.co.nz/plyr")
1091 (synopsis "Tools for Splitting, Applying and Combining Data")
1093 "Plyr is a set of tools that solves a common set of problems: you need to
1094 break a big problem down into manageable pieces, operate on each piece and
1095 then put all the pieces back together. For example, you might want to fit a
1096 model to each spatial location or time point in your study, summarise data by
1097 panels or collapse high-dimensional arrays to simpler summary statistics.")
1098 (license license:expat)))
1100 (define-public r-proto
1107 (uri (cran-uri "proto" version))
1109 (base32 "1l843p8vckjckdhgv37ngv47fga5jzy0n00pmipvp05nnaixk54j"))))
1110 (build-system r-build-system)
1111 (home-page "https://github.com/hadley/proto")
1112 (synopsis "Prototype object-based programming")
1114 "Proto is an object oriented system using object-based, also called
1115 prototype-based, rather than class-based object oriented ideas.")
1116 (license license:gpl2+)))
1118 (define-public r-rcolorbrewer
1120 (name "r-rcolorbrewer")
1125 (uri (cran-uri "RColorBrewer" version))
1127 (base32 "1h0s0f4vvlk40cagp3qwhd0layzkjcnqkiwjyhwqns257i1gahjg"))))
1128 (build-system r-build-system)
1129 (home-page "https://cran.r-project.org/web/packages/RColorBrewer")
1130 (synopsis "ColorBrewer palettes")
1132 "This package provides color schemes for maps (and other graphics)
1133 designed by Cynthia Brewer as described at http://colorbrewer2.org")
1134 ;; Includes code licensed under bsd-4
1135 (license license:asl2.0)))
1137 (define-public r-sendmailr
1139 (name "r-sendmailr")
1144 (uri (cran-uri "sendmailR" version))
1147 "1dgxl6wnadlw5b3m4has5zalpk3pd5j70hfps92b9lbx4i7xbmr0"))))
1148 (properties `((upstream-name . "sendmailR")))
1149 (build-system r-build-system)
1153 "https://cran.r-project.org/web/packages/sendmailR")
1154 (synopsis "Send email using R")
1156 "This package contains a simple SMTP client which provides a portable
1157 solution for sending email, including attachments, from within R.")
1158 (license license:gpl2+)))
1160 (define-public r-stringi
1167 (uri (cran-uri "stringi" version))
1170 "074b8wky3dhm4vcdqliwz6cqw20ah2x4dcasvnidilbfrnqii2ak"))))
1171 (build-system r-build-system)
1172 (inputs (list icu4c))
1173 (native-inputs (list pkg-config))
1174 (home-page "http://stringi.rexamine.com/")
1175 (synopsis "Character string processing facilities")
1177 "This package allows for fast, correct, consistent, portable, as well as
1178 convenient character string/text processing in every locale and any native
1179 encoding. Owing to the use of the ICU library, the package provides R users
1180 with platform-independent functions known to Java, Perl, Python, PHP, and Ruby
1181 programmers. Among available features there are: pattern searching
1182 (e.g. via regular expressions), random string generation, string collation,
1183 transliteration, concatenation, date-time formatting and parsing, etc.")
1184 (license license:bsd-3)))
1186 (define-public r-stringr
1193 (uri (cran-uri "stringr" version))
1195 (base32 "1cfw1lv64lzg16zb04c0fcmd3gx8vq9x73hqikqhgqd3ra88w3gc"))))
1196 (build-system r-build-system)
1198 (list r-glue r-magrittr r-stringi))
1199 ;; We can't add r-knitr here, because this package ends up being an input
1204 (home-page "https://github.com/hadley/stringr")
1205 (synopsis "Simple, consistent wrappers for common string operations")
1207 "Stringr is a consistent, simple and easy to use set of wrappers around
1208 the fantastic @code{stringi} package. All function and argument names (and
1209 positions) are consistent, all functions deal with \"NA\"'s and zero length
1210 vectors in the same way, and the output from one function is easy to feed into
1211 the input of another.")
1212 (license license:gpl2+)))
1214 (define-public r-reshape2
1221 (uri (cran-uri "reshape2" version))
1223 (base32 "1n0jrajpvc8hjkh9z4g8bwq63qy5vy5cgl2pzjardyih4ngcz3fq"))))
1224 (build-system r-build-system)
1226 (list r-plyr r-rcpp r-stringr))
1227 (home-page "https://github.com/hadley/reshape")
1228 (synopsis "Flexibly reshape data: a reboot of the \"reshape\" package")
1230 "Reshape2 is an R library to flexibly restructure and aggregate data
1231 using just two functions: melt and dcast (or acast).")
1232 (license license:expat)))
1234 (define-public r-ggplot2
1241 (uri (cran-uri "ggplot2" version))
1243 (base32 "1aa377jdfajj8ld2fh159y8havlibsr4pjisf6mkzk8g5awlxjxz"))))
1244 (build-system r-build-system)
1255 r-svglite ; Needed for 'ggsave'
1259 (home-page "https://ggplot2.tidyverse.org")
1260 (synopsis "Implementation of the grammar of graphics")
1262 "Ggplot2 is an implementation of the grammar of graphics in R. It
1263 combines the advantages of both base and lattice graphics: conditioning and
1264 shared axes are handled automatically, and you can still build up a plot step
1265 by step from multiple data sources. It also implements a sophisticated
1266 multidimensional conditioning system and a consistent interface to map data to
1267 aesthetic attributes.")
1268 (license license:gpl2+)))
1270 (define-public r-ggdendro
1276 (uri (cran-uri "ggdendro" version))
1279 "1f4fz9llmbpb8gh90aid7dvriadx16xdhsl7832yw4pyqj4fjcrs"))))
1280 (build-system r-build-system)
1282 (list r-ggplot2 r-mass))
1285 (home-page "https://github.com/andrie/ggdendro")
1286 (synopsis "Create Dendrograms and Tree Diagrams Using ggplot2")
1287 (description "This is a set of tools for dendrograms and tree plots using
1288 ggplot2. The ggplot2 philosophy is to clearly separate data from the
1289 presentation. Unfortunately the plot method for dendrograms plots directly
1290 to a plot device with out exposing the data. The ggdendro package resolves
1291 this by making available functions that extract the dendrogram plot data.
1292 The package provides implementations for tree, rpart, as well as diana and
1293 agnes cluster diagrams.")
1294 (license license:gpl2+)))
1296 (define-public r-gdtools
1303 (uri (cran-uri "gdtools" version))
1306 "0a1hqg5b484ji4g9dy0zi06wn9w7pk6hiy5ljzc1zgj9mbhlr21j"))))
1307 (build-system r-build-system)
1311 (list cairo fontconfig freetype zlib))
1313 (list r-rcpp r-systemfonts))
1314 (home-page "https://cran.r-project.org/web/packages/gdtools")
1315 (synopsis "Utilities for graphical rendering")
1317 "The @code{gdtools} package provides functionalities to get font metrics
1318 and to generate base64 encoded string from raster matrix.")
1319 (license license:gpl3)))
1321 (define-public r-svglite
1328 (uri (cran-uri "svglite" version))
1331 "16wwhfmp9agdz9azslgd8qs77fllhdp6p0m304qfh2p8qy8gah5d"))))
1332 (build-system r-build-system)
1336 (list r-cpp11 r-systemfonts))
1339 (home-page "https://github.com/hadley/svglite")
1340 (synopsis "SVG graphics device")
1342 "@code{svglite} is a graphics device that produces clean
1343 @dfn{SVG} (Scalable Vector Graphics) output, suitable for use on the web, or
1344 hand editing. Compared to the built-in @code{svg()}, @code{svglite} is
1345 considerably faster, produces smaller files, and leaves text as is.")
1346 (license license:gpl2+)))
1348 (define-public r-assertthat
1350 (name "r-assertthat")
1354 (uri (cran-uri "assertthat" version))
1357 "17wy5bdfzg73sg2clisg1k3zyn1adkj59x56m5nwia2k8z67zkw5"))))
1358 (build-system r-build-system)
1359 (home-page "https://github.com/hadley/assertthat")
1360 (synopsis "Easy pre and post assertions")
1362 "Assertthat is an extension to stopifnot() that makes it easy to declare
1363 the pre and post conditions that your code should satisfy, while also
1364 producing friendly error messages so that your users know what they've done
1366 (license license:gpl3+)))
1368 (define-public r-lazyeval
1374 (uri (cran-uri "lazyeval" version))
1377 "1m10i059csrcqkcn59a8wspn784alxsq3symzhn24mhhl894346n"))))
1378 (build-system r-build-system)
1379 (home-page "https://github.com/hadley/lazyeval")
1380 (synopsis "Lazy (non-standard) evaluation in R")
1382 "This package provides the tools necessary to do non-standard
1383 evaluation (NSE) in R.")
1384 (license license:gpl3+)))
1386 (define-public r-dbi
1392 (uri (cran-uri "DBI" version))
1395 "13a2656w5j9shpcwa7gj2szy7nk9sajjhlisi5wdpgd57msk7frq"))))
1396 (build-system r-build-system)
1399 (home-page "https://github.com/rstats-db/DBI")
1400 (synopsis "R database interface")
1402 "The DBI package provides a database interface (DBI) definition for
1403 communication between R and relational database management systems. All
1404 classes in this package are virtual and need to be extended by the various
1405 R/DBMS implementations.")
1406 (license license:lgpl2.0+)))
1411 (version "1.78.0-0")
1414 (uri (cran-uri "BH" version))
1417 "1cwc1q8w9d6i81nclgi7lycsnpj0dcbxlv9rdb0f04r0d03rv7iv"))))
1418 (build-system r-build-system)
1419 (home-page "https://github.com/eddelbuettel/bh")
1420 (synopsis "R package providing subset of Boost headers")
1422 "This package aims to provide the most useful subset of Boost libraries
1423 for template use among CRAN packages.")
1424 (license license:boost1.0)))
1426 (define-public r-evaluate
1432 (uri (cran-uri "evaluate" version))
1435 "009861l805z4c10cz0pyym5qd2b2wsiignjkz74vl25718k0mz0h"))))
1436 (build-system r-build-system)
1437 (home-page "https://github.com/hadley/evaluate")
1438 (synopsis "Parsing and evaluation tools for R")
1440 "This package provides tools that allow you to recreate the parsing,
1441 evaluation and display of R code, with enough information that you can
1442 accurately recreate what happens at the command line. The tools can easily be
1443 adapted for other output formats, such as HTML or LaTeX.")
1444 (license license:gpl3+)))
1446 (define-public r-formatr
1452 (uri (cran-uri "formatR" version))
1455 "12wch1774113nlrc0lihfn5rbh4hln9sg6dv6zc2bvyb8fzyyllb"))))
1456 (build-system r-build-system)
1459 (home-page "https://yihui.org/formatr/")
1460 (synopsis "Format R code automatically")
1462 "This package provides a function to format R source code. Spaces and
1463 indent will be added to the code automatically, and comments will be preserved
1464 under certain conditions, so that R code will be more human-readable and tidy.
1465 There is also a Shiny app as a user interface in this package.")
1466 (license license:gpl3+)))
1468 (define-public r-highr
1474 (uri (cran-uri "highr" version))
1477 "0kgdv2vf1lz3b5kbal9s83gg6812nw7fvrq0rkyr0v4k1lwi3zxy"))))
1478 (build-system r-build-system)
1481 ;; We cannot add knitr to the inputs, because highr depends on xfun, which
1482 ;; is an input to knitr.
1485 `(("r-knitr" ,r-knitr)))
1486 (home-page "https://github.com/yihui/highr")
1487 (synopsis "Syntax highlighting for R source code")
1489 "This package provides syntax highlighting for R source code. Currently
1490 it supports LaTeX and HTML output. Source code of other languages is
1491 supported via Andre Simon's highlight package.")
1492 (license license:gpl3+)))
1494 (define-public r-mime
1500 (uri (cran-uri "mime" version))
1503 "0j9qbq9jfsp61h2d0xmb87pa2wi8nhb1h2wih7l5drf1sr8i0059"))))
1504 (build-system r-build-system)
1505 (home-page "https://github.com/yihui/mime")
1506 (synopsis "R package to map filenames to MIME types")
1508 "This package guesses the MIME type from a filename extension using the
1509 data derived from /etc/mime.types in UNIX-type systems.")
1510 (license license:gpl2)))
1512 (define-public r-markdown
1518 (uri (cran-uri "markdown" version))
1521 "06zwbrp14bri3470anadd7dvgmw06xf8df6v2pk64wx3f9sd934d"))))
1522 (build-system r-build-system)
1523 ;; Skip check phase because the tests require the r-knitr package to be
1524 ;; installed. This prevents installation failures. Knitr normally
1525 ;; shouldn't be available since r-markdown is a dependency of the r-knitr
1527 (arguments `(#:tests? #f))
1529 (list r-mime r-xfun))
1530 (home-page "https://github.com/rstudio/markdown")
1531 (synopsis "Markdown rendering for R")
1533 "This package provides R bindings to the Sundown Markdown rendering
1534 library (https://github.com/vmg/sundown). Markdown is a plain-text formatting
1535 syntax that can be converted to XHTML or other formats.")
1536 (license license:gpl2)))
1538 (define-public r-yaml
1544 (uri (cran-uri "yaml" version))
1547 "0h2ixd95ww12ir13fdzbvjq4lsz6l8hmgv4bbsi89qd0ah2nrpry"))))
1548 (build-system r-build-system)
1549 (home-page "https://cran.r-project.org/web/packages/yaml/")
1550 (synopsis "Methods to convert R data to YAML and back")
1552 "This package implements the libyaml YAML 1.1 parser and
1553 emitter (http://pyyaml.org/wiki/LibYAML) for R.")
1554 (license license:bsd-3)))
1556 (define-public r-knitr
1562 (uri (cran-uri "knitr" version))
1565 "1g1mhnkyxd2sv6p1l6iph9dnmpbwxhah78xx4kq543ks6vzrb3wv"))))
1566 (build-system r-build-system)
1568 (list r-evaluate r-highr r-stringr r-xfun r-yaml))
1569 (home-page "https://yihui.org/knitr/")
1570 (synopsis "General-purpose package for dynamic report generation in R")
1572 "This package provides a general-purpose tool for dynamic report
1573 generation in R using Literate Programming techniques.")
1574 ;; The code is released under any version of the GPL. As it is used by
1575 ;; r-markdown which is available under GPLv2 only, we have chosen GPLv2+
1577 (license license:gpl2+)))
1579 (define-public r-knitrbootstrap
1581 (name "r-knitrbootstrap")
1586 (uri (cran-uri "knitrBootstrap" version))
1589 "1aj60j7f0gcs120fdrnfbnb7vk7lfn1phil0mghg6a5zldz4cqs3"))))
1590 (properties `((upstream-name . "knitrBootstrap")))
1591 (build-system r-build-system)
1593 (list r-knitr r-rmarkdown r-markdown))
1594 (home-page "https://github.com/jimhester/knitrBootstrap")
1595 (synopsis "Knitr bootstrap framework")
1597 "This package provides a framework to create Bootstrap 3 HTML reports
1598 from knitr Rmarkdown.")
1599 (license license:expat)))
1601 (define-public r-microbenchmark
1603 (name "r-microbenchmark")
1607 (uri (cran-uri "microbenchmark" version))
1610 "1lpzpffnjiwnxxl0jhrvyj88fvxqksnpccbpq953xwqf6ypjqga4"))))
1611 (build-system r-build-system)
1612 (home-page "https://cran.r-project.org/web/packages/microbenchmark/")
1613 (synopsis "Accurate timing functions for R")
1615 "This package provides infrastructure to accurately measure and compare
1616 the execution time of R expressions.")
1617 (license license:bsd-2)))
1619 (define-public r-pryr
1625 (uri (cran-uri "pryr" version))
1628 "02vp1y7zhv22id43j5c0gdcgn9171dyypqp8rqrlc3w5a7n565kv"))))
1629 (build-system r-build-system)
1631 (list r-codetools r-lobstr r-rcpp r-stringr))
1632 (home-page "https://github.com/hadley/pryr")
1633 (synopsis "Tools for computing on the R language")
1635 "This package provides useful tools to pry back the covers of R and
1636 understand the language at a deeper level.")
1637 (license license:gpl2)))
1639 (define-public r-memoise
1645 (uri (cran-uri "memoise" version))
1648 "1srdzv2bp0splislrabmf1sfbqfi3hn189nq7kxhgjn8k3p38l7q"))))
1649 (build-system r-build-system)
1651 (list r-cachem r-rlang))
1652 (home-page "https://github.com/hadley/memoise")
1653 (synopsis "Memoise functions for R")
1655 "This R package caches the results of a function so that when
1656 you call it again with the same arguments it returns the pre-computed value.")
1657 (license license:expat)))
1659 (define-public r-crayon
1665 (uri (cran-uri "crayon" version))
1668 "1yaxwkmvjaillngfafgapakqjl6s86ly3j338f78xs58g0xwf9f0"))))
1669 (build-system r-build-system)
1670 (home-page "https://github.com/gaborcsardi/crayon")
1671 (synopsis "Colored terminal output for R")
1673 "Colored terminal output on terminals that support ANSI color and
1674 highlight codes. It also works in Emacs ESS. ANSI color support is
1675 automatically detected. Colors and highlighting can be combined and nested.
1676 New styles can also be created easily. This package was inspired by the
1677 \"chalk\" JavaScript project.")
1678 (license license:expat)))
1680 (define-public r-praise
1687 (uri (cran-uri "praise" version))
1690 "1gfyypnvmih97p2r0php9qa39grzqpsdbq5g0fdsbpq5zms5w0sw"))))
1691 (build-system r-build-system)
1692 (home-page "https://github.com/gaborcsardi/praise")
1693 (synopsis "Functions to praise users")
1695 "This package provides template functions to assist in building friendly
1696 R packages that praise their users.")
1697 (license license:expat)))
1699 (define-public r-testthat
1705 (uri (cran-uri "testthat" version))
1708 "02cwdix7v8zsvcmcl3h5hfi66w1ln9qi60risf5nl62f3c1yqzm4"))))
1709 (build-system r-build-system)
1732 (home-page "https://github.com/hadley/testthat")
1733 (synopsis "Unit testing for R")
1735 "This package provides a unit testing system for R designed to be fun,
1736 flexible and easy to set up.")
1737 (license license:expat)))
1745 (uri (cran-uri "R6" version))
1748 "0j5z0b0myzjyyykk310xsa9n2mcm9bz8yqbq4xgz2yzdq8lvv4ld"))))
1749 (build-system r-build-system)
1750 (home-page "https://github.com/wch/R6/")
1751 (synopsis "Classes with reference semantics in R")
1753 "The R6 package allows the creation of classes with reference semantics,
1754 similar to R's built-in reference classes. Compared to reference classes, R6
1755 classes are simpler and lighter-weight, and they are not built on S4 classes
1756 so they do not require the methods package. These classes allow public and
1757 private members, and they support inheritance, even when the classes are
1758 defined in different packages.")
1759 (license license:expat)))
1761 (define-public r-rlang
1767 (uri (cran-uri "rlang" version))
1770 "1argj8pvf8b19693r6j7rw1fl4bd99b39h5y52qrm1wpcvjkba9d"))))
1771 (build-system r-build-system)
1772 (home-page "http://rlang.tidyverse.org")
1773 (synopsis "Functions for base types, core R and Tidyverse features")
1774 (description "This package provides a toolbox for working with base types,
1775 core R features like the condition system, and core @code{Tidyverse} features
1776 like tidy evaluation.")
1777 (license license:gpl3)))
1779 (define-public r-tibble
1786 (uri (cran-uri "tibble" version))
1789 "1spdbk5s0wlipfq8jc08p2mk5fq2ql9hm8iwwlfzdlhqbl3hxwxc"))))
1790 (build-system r-build-system)
1801 (home-page "https://github.com/hadley/tibble")
1802 (synopsis "Simple data frames")
1804 "This package provides a @code{tbl_df} class that offers better checking
1805 and printing capabilities than traditional data frames.")
1806 (license license:expat)))
1808 (define-public r-dplyr
1814 (uri (cran-uri "dplyr" version))
1817 "0aqggs0gk95b326gzqjab8i27cna1hzik3zi5l2kkr5l4zv3kdis"))))
1818 (build-system r-build-system)
1832 (home-page "https://github.com/hadley/dplyr")
1833 (synopsis "Tools for working with data frames in R")
1835 "dplyr is the next iteration of plyr. It is focused on tools for
1836 working with data frames. It has three main goals: 1) identify the most
1837 important data manipulation tools needed for data analysis and make them easy
1838 to use in R; 2) provide fast performance for in-memory data by writing key
1839 pieces of code in C++; 3) use the same code interface to work with data no
1840 matter where it is stored, whether in a data frame, a data table or
1842 (license license:expat)))
1844 (define-public r-dbplyr
1851 (uri (cran-uri "dbplyr" version))
1854 "1xqdrfpl5l94cw717d90xx1hs5aswl6s38wr7qximzk8q12gdwx6"))))
1855 (build-system r-build-system)
1875 (home-page "https://github.com/tidyverse/dbplyr")
1876 (synopsis "Dplyr back end for databases")
1878 "This package provides a dplyr back end for databases that allows you to
1879 work with remote database tables as if they are in-memory data frames. Basic
1880 features works with any database that has a @code{DBI} back end; more advanced
1881 features require SQL translation to be provided by the package author.")
1882 (license license:expat)))
1884 (define-public r-acepack
1891 (uri (cran-uri "acepack" version))
1894 "1f98rpfjmhd92rdc3j004plyfpjailz6j0ycysbac0kgj83haxc2"))))
1895 (build-system r-build-system)
1898 (home-page "https://cran.r-project.org/web/packages/acepack")
1899 (synopsis "Functions for regression transformations")
1901 "This package provides ACE and AVAS methods for choosing regression
1903 (license license:expat)))
1905 (define-public r-formula
1912 (uri (cran-uri "Formula" version))
1915 "1bsw282i5m8rlirbhz7hqvf25zbxschk7yrp152whbzdnmry6w6b"))))
1916 (properties `((upstream-name . "Formula")))
1917 (build-system r-build-system)
1918 (home-page "https://cran.r-project.org/web/packages/Formula")
1919 (synopsis "Extended model formulas")
1921 "This package provides a new class @code{Formula}, which extends the base
1922 class @code{formula}. It supports extended formulas with multiple parts of
1923 regressors on the right-hand side and/or multiple responses on the left-hand
1925 (license (list license:gpl2+ license:gpl3+))))
1927 (define-public r-locfit
1934 (uri (cran-uri "locfit" version))
1937 "0xilf6gp3m8xla2fvxr491j31pvim707mnhswvm9yxnb0d09xs0y"))))
1938 (build-system r-build-system)
1941 (home-page "https://cran.r-project.org/web/packages/locfit")
1942 (synopsis "Local regression, likelihood and density estimation")
1944 "This package provides functions used for local regression, likelihood
1945 and density estimation.")
1946 (license (list license:gpl2+ license:gpl3+))))
1948 (define-public r-chron
1954 (uri (cran-uri "chron" version))
1957 "0cn2367mw27qf2nj8d1i182ns3nlzlkgix6c18mc3byihimdhicn"))))
1958 (build-system r-build-system)
1959 (home-page "https://cran.r-project.org/web/packages/chron")
1960 (synopsis "Chronological R objects which can handle dates and times")
1962 "This package provides chronological R objects which can handle dates and
1964 (license license:gpl2)))
1966 (define-public r-data-table
1968 (name "r-data-table")
1972 (uri (cran-uri "data.table" version))
1975 "0arx5wna0sh0vf5q8rjhh8nqdmnvg2pdpbhljl9l0x4kwm8vjhgp"))))
1976 (build-system r-build-system)
1980 (list pkg-config r-knitr))
1981 (home-page "https://github.com/Rdatatable/data.table/wiki")
1982 (synopsis "Enhanced version of data.frame R object")
1984 "The R package @code{data.table} is an extension of @code{data.frame}
1985 providing functions for fast aggregation of large data (e.g. 100GB in RAM),
1986 fast ordered joins, fast add/modify/delete of columns by group, column listing
1987 and fast file reading.")
1988 (license license:gpl3+)))
1990 (define-public r-xtable
1997 (uri (cran-uri "xtable" version))
2000 "077xfm0gphvhsay75amd9v90zk57kjgrrlgih04fyrbqqblc1gjs"))))
2001 (build-system r-build-system)
2003 (list r-knitr)) ; for vignettes
2004 (home-page "http://xtable.r-forge.r-project.org/")
2005 (synopsis "Export R tables to LaTeX or HTML")
2007 "This package provides tools to export R data as LaTeX and HTML tables.")
2008 (license license:gpl2+)))
2010 (define-public python-patsy
2012 (name "python-patsy")
2016 (uri (pypi-uri "patsy" version))
2019 "17dn72519gvwifw3i8mzwlslxmxkl8ihzfrxg1iblsk70iwdwlsh"))))
2020 (build-system python-build-system)
2023 (modify-phases %standard-phases
2025 (lambda* (#:key tests? #:allow-other-keys)
2026 (when tests? (invoke "pytest" "-vv")))))))
2028 (list python-numpy python-scipy python-six))
2030 (list python-pytest))
2031 (home-page "https://github.com/pydata/patsy")
2032 (synopsis "Describe statistical models and build design matrices")
2034 "Patsy is a Python package for describing statistical models and for
2035 building design matrices.")
2036 ;; The majority of the code is distributed under BSD-2. The module
2037 ;; patsy.compat contains code derived from the Python standard library,
2038 ;; and is covered by the PSFL.
2039 (license (list license:bsd-2 license:psfl))))
2041 (define-public python-statsmodels
2043 (name "python-statsmodels")
2048 (uri (pypi-uri "statsmodels" version))
2050 (base32 "0sbsyxgpzhys5padhkhrj71z4i1q41sm938pz0x8ff6jjvcchvh0"))
2051 (modules '((guix build utils)))
2054 (for-each delete-file (find-files "." "\\.c$"))))))
2055 (build-system python-build-system)
2057 `(;; The test suite is very large and rather brittle. Tests often fail
2058 ;; because of minor changes in dependencies that upstream hasn't fixed
2059 ;; in a new release.
2062 (modify-phases %standard-phases
2063 (add-after 'unpack 'set-matplotlib-backend-to-agg
2065 ;; Set the matplotlib backend to Agg to avoid problems using the
2066 ;; GTK backend without a display.
2067 (substitute* (append (find-files "statsmodels/graphics/tests" "\\.py")
2068 '("statsmodels/tsa/vector_ar/tests/test_var.py"
2069 "statsmodels/duration/tests/test_survfunc.py"))
2070 (("import matplotlib\\.pyplot as plt" line)
2071 (string-append "import matplotlib;matplotlib.use('Agg');"
2075 (list python-numpy python-scipy python-pandas python-patsy
2078 (list python-cython python-nose python-sphinx))
2079 (home-page "http://statsmodels.sourceforge.net/")
2080 (synopsis "Statistical modeling and econometrics in Python")
2082 "Statsmodels is a Python package that provides a complement to scipy for
2083 statistical computations including descriptive statistics and estimation and
2084 inference for statistical models.")
2085 (license license:bsd-3)))
2087 (define-public r-coda
2093 (uri (cran-uri "coda" version))
2096 "13z5dwfpnyyhpsbpg4xr9g5c1685jhqj90f4x4qkcykr6kykqba2"))))
2097 (build-system r-build-system)
2100 (home-page "https://cran.r-project.org/web/packages/coda")
2101 (synopsis "This is a package for Output Analysis and Diagnostics for MCMC")
2102 (description "This package provides functions for summarizing and plotting
2103 the output from Markov Chain Monte Carlo (MCMC) simulations, as well as
2104 diagnostic tests of convergence to the equilibrium distribution of the Markov
2106 (license license:gpl2+)))
2108 (define-public r-ade4
2115 (uri (cran-uri "ade4" version))
2118 "1vv5y6badksnpjb3bcphhjdzzh6i2grmwnsalcf2cfpr3y412lf8"))))
2119 (build-system r-build-system)
2121 (list r-mass r-pixmap r-sp))
2122 (home-page "http://pbil.univ-lyon1.fr/ADE-4")
2123 (synopsis "Multivariate data analysis and graphical display")
2125 "The ade4 package contains data analysis functions to analyze ecological
2126 and environmental data in the framework of Euclidean exploratory methods.")
2127 (license license:gpl2+)))
2129 (define-public r-xml2
2136 (uri (cran-uri "xml2" version))
2139 "138w7hb487al9cbahmnk5rhi23k8a9g7nk7s5dyxd3k1646rqknb"))))
2140 (build-system r-build-system)
2142 (list libxml2 zlib))
2144 (list pkg-config r-knitr))
2145 (home-page "https://github.com/hadley/xml2")
2146 (synopsis "Parse XML with R")
2148 "This package provides a simple, consistent interface to working with XML
2149 files in R. It is built on top of the libxml2 C library.")
2150 (license license:gpl2+)))
2152 (define-public r-multitaper
2154 (name "r-multitaper")
2159 (uri (cran-uri "multitaper" version))
2162 "1gm3wr8xqpqiby7q1dr3zxim77v0bvvrqi0hlazf5g3gnkrp2zc3"))))
2163 (build-system r-build-system)
2166 (home-page "https://github.com/wesleyburr/multitaper/")
2167 (synopsis "Multitaper spectral analysis tools")
2169 "This package implements multitaper spectral estimation
2170 techniques using prolate spheroidal sequences (Slepians) and sine
2171 tapers for time series analysis. It includes an adaptive weighted
2172 multitaper spectral estimate, a coherence estimate, Thomson's Harmonic
2173 F-test, and complex demodulation. The Slepians sequences are
2174 generated efficiently using a tridiagonal matrix solution, and
2175 jackknifed confidence intervals are available for most estimates.")
2176 (license license:gpl2+)))
2178 (define-public r-rversions
2180 (name "r-rversions")
2184 (uri (cran-uri "rversions" version))
2187 "0q5ip3rkhcxz7472fbqddrw3a2wm31b18w7ax0pi6wc27qiihn6y"))))
2188 (build-system r-build-system)
2190 (list r-curl r-xml2))
2191 (home-page "https://github.com/metacran/rversions")
2192 (synopsis "Query R versions, including 'r-release' and 'r-oldrel'")
2194 "This package provides functions to query the main R repository to find
2195 the versions that @code{r-release} and @code{r-oldrel} refer to, and also all
2196 previous R versions and their release dates.")
2197 (license license:expat)))
2199 (define-public r-whisker
2205 (uri (cran-uri "whisker" version))
2208 "1a7vz0dk95xfjvi38wbpw8vmf5qn3g8p490msz2rw0piwidmk1ks"))))
2209 (build-system r-build-system)
2210 (home-page "https://github.com/edwindj/whisker")
2211 (synopsis "Logicless mustache templating for R")
2213 "This package provides logicless templating, with a syntax that is not
2215 (license license:gpl3+)))
2217 (define-public r-backports
2219 (name "r-backports")
2224 (uri (cran-uri "backports" version))
2227 "0x144hij0rzhrxdq3k5ph8fk7pdgl1avjca25j4mlpmhzdckqp44"))))
2228 (build-system r-build-system)
2229 (home-page "https://cran.r-project.org/web/packages/backports")
2230 (synopsis "Reimplementations of functions introduced since R 3.0.0")
2232 "Provides implementations of functions which have been introduced in R
2233 since version 3.0.0. The backports are conditionally exported which results
2234 in R resolving the function names to the version shipped with R (if available)
2235 and uses the implemented backports as fallback. This way package developers
2236 can make use of the new functions without worrying about the minimum required
2238 (license license:gpl2+)))
2240 (define-public r-checkmate
2242 (name "r-checkmate")
2247 (uri (cran-uri "checkmate" version))
2250 "1ii11lypfz8qwswaiagaxnfq6wqkg3cq4j7k9q40sdd0cd8xv15p"))))
2251 (build-system r-build-system)
2256 (home-page "https://github.com/mllg/checkmate")
2257 (synopsis "Fast and versatile argument checks")
2259 "This package provides tests and assertions to perform frequent argument
2260 checks. A substantial part of the package was written in C to minimize any
2261 worries about execution time overhead.")
2262 (license license:bsd-3)))
2264 (define-public r-bbmisc
2271 (uri (cran-uri "BBmisc" version))
2274 "0gh5f342rwra79i7imv50x8vrhd2zkifm7khb0yv3ndpd4zn62lh"))))
2275 (properties `((upstream-name . "BBmisc")))
2276 (build-system r-build-system)
2278 (list r-checkmate r-data-table))
2279 (home-page "https://github.com/berndbischl/BBmisc")
2280 (synopsis "Miscellaneous functions for R package development")
2282 "This package provides miscellaneous helper functions for the development
2284 (license license:bsd-3)))
2286 (define-public r-fail
2293 (uri (cran-uri "fail" version))
2296 "0vfm6kmpmgsamda5p0sl771kbnsscan31l2chzssyw93kwmams7d"))))
2297 (build-system r-build-system)
2299 (list r-bbmisc r-checkmate))
2300 (home-page "https://github.com/mllg/fail")
2301 (synopsis "File abstraction interface layer (FAIL)")
2303 "This package provides a more comfortable interface to work with R data
2304 or source files in a key-value fashion.")
2305 (license license:bsd-3)))
2307 (define-public r-batchjobs
2309 (name "r-batchjobs")
2314 (uri (cran-uri "BatchJobs" version))
2317 "0xsw25j2ks9bqgz189qdcyj8hzz93snknlik83nj04s6vy0w7aax"))))
2318 (properties `((upstream-name . "BatchJobs")))
2319 (build-system r-build-system)
2331 (home-page "https://github.com/tudo-r/BatchJobs")
2332 (synopsis "Batch computing with R")
2334 "This package provides @code{Map}, @code{Reduce} and @code{Filter}
2335 variants to generate jobs on batch computing systems like PBS/Torque, LSF,
2336 SLURM and Sun Grid Engine. Multicore and SSH systems are also supported.")
2337 (license license:bsd-2)))
2339 (define-public r-brew
2345 (uri (cran-uri "brew" version))
2348 "0vp7d628j6zzxhh6xfw5jlkv7wh6z2l3snbwjgv7jd56vk0mkf1q"))))
2349 (build-system r-build-system)
2350 (home-page "https://cran.r-project.org/web/packages/brew")
2351 (synopsis "Templating framework for report generation")
2353 "The brew package implements a templating framework for mixing text and R
2354 code for report generation. The template syntax is similar to PHP, Ruby's erb
2355 module, Java Server Pages, and Python's psp module.")
2356 (license license:gpl2+)))
2358 (define-public r-desc
2365 (uri (cran-uri "desc" version))
2368 "0z1259ghccmrjylydra4bpryqasirsky7bc4gsx0k327pqacz2km"))))
2369 (build-system r-build-system)
2371 (list r-cli r-r6 r-rprojroot))
2372 (home-page "https://github.com/r-pkgs/desc")
2373 (synopsis "Manipulate DESCRIPTION Files")
2375 "This package provides tools to read, write, create, and manipulate
2376 DESCRIPTION files. It is intended for packages that create or manipulate
2378 (license license:expat)))
2380 (define-public r-commonmark
2382 (name "r-commonmark")
2387 (uri (cran-uri "commonmark" version))
2390 "0s765c650id19ygx57bsjsw93fwxywmp50zid671bkxi6wlyf1vx"))))
2391 (build-system r-build-system)
2392 (home-page "https://cran.r-project.org/web/packages/commonmark")
2393 (synopsis "CommonMark and Github Markdown Rendering in R")
2395 "The CommonMark specification defines a rationalized version of markdown
2396 syntax. This package uses the @code{cmark} reference implementation for
2397 converting markdown text into various formats including HTML, LaTeX and groff
2398 man. In addition, it exposes the markdown parse tree in XML format. The latest
2399 version of this package also adds support for Github extensions including
2400 tables, autolinks and strikethrough text.")
2401 (license license:bsd-2)))
2403 (define-public r-roxygen2
2409 (uri (cran-uri "roxygen2" version))
2412 "08fs5jw6npriqsr8pribs2yy1r8163xzcv4gmlgmcaywj4jk9w6j"))))
2413 (build-system r-build-system)
2432 (home-page "https://github.com/klutometis/roxygen")
2433 (synopsis "In-source documentation system for R")
2435 "Roxygen2 is a Doxygen-like in-source documentation system for Rd,
2436 collation, and NAMESPACE files.")
2437 (license license:gpl2+)))
2439 (define-public r-openssl
2446 (uri (cran-uri "openssl" version))
2449 "1al6cb0qwafa32dxr2hhhv6hvbp26hiykamn7w27z1gc1d99ipkw"))))
2450 (build-system r-build-system)
2454 '(modify-phases %standard-phases
2455 (add-after 'unpack 'do-not-use-versioned-linking
2457 (substitute* "configure"
2458 (("PKG_LIBS=\"\\$\\{PKG_LIBS_VERSIONED\\}\"")
2459 "PKG_LIBS=\"${PKG_LIBS}\"")))))))
2463 (list pkg-config r-knitr))
2466 (home-page "https://github.com/jeroenooms/openssl")
2467 (synopsis "Toolkit for encryption, signatures and certificates")
2469 "This package provides R bindings to OpenSSL libssl and libcrypto, plus
2470 custom SSH pubkey parsers. It supports RSA, DSA and NIST curves P-256, P-384
2471 and P-521. Cryptographic signatures can either be created and verified
2472 manually or via x509 certificates. AES block cipher is used in CBC mode for
2473 symmetric encryption; RSA for asymmetric (public key) encryption. High-level
2474 envelope functions combine RSA and AES for encrypting arbitrary sized data.
2475 Other utilities include key generators, hash functions (md5, sha1, sha256,
2476 etc), base64 encoder, a secure random number generator, and @code{bignum} math
2477 methods for manually performing crypto calculations on large multibyte
2479 (license license:expat)))
2481 (define-public r-httr
2487 (uri (cran-uri "httr" version))
2490 "0pa3ypkq6kq6sw7b8w62rfpcbjwhc49y8nkvk900s9pfycijbn21"))))
2491 (build-system r-build-system)
2493 (list r-curl r-jsonlite r-openssl r-mime r-r6))
2496 (home-page "https://github.com/hadley/httr")
2497 (synopsis "Tools for working with URLs and HTTP")
2499 "The aim of httr is to provide a wrapper for RCurl customised to the
2500 demands of modern web APIs. It provides useful tools for working with HTTP
2501 organised by HTTP verbs (@code{GET()}, @code{POST()}, etc). Configuration
2502 functions make it easy to control additional request components.")
2503 (license license:expat)))
2505 (define-public r-git2r
2511 (uri (cran-uri "git2r" version))
2514 "0h58djc9cim8iskkyhdxllbpf6ycl5zj9g4fp70k57k5qzfi7nc5"))))
2515 (build-system r-build-system)
2517 (list libgit2 zlib))
2520 (home-page "https://github.com/ropensci/git2r")
2521 (synopsis "Access Git repositories with R")
2523 "This package provides an R interface to the libgit2 library, which is a
2524 pure C implementation of the Git core methods.")
2525 ;; GPLv2 only with linking exception.
2526 (license license:gpl2)))
2528 (define-public r-rstudioapi
2530 (name "r-rstudioapi")
2534 (uri (cran-uri "rstudioapi" version))
2537 "1i5g9l2739mlaglzg98iifycx98jlzxj5933qfb8lwmdn63hk7a6"))))
2538 (build-system r-build-system)
2541 (home-page "https://cran.r-project.org/web/packages/rstudioapi")
2542 (synopsis "Safely access the RStudio API")
2544 "This package provides functions to access the RStudio API and provide
2545 informative error messages when it's not available.")
2546 (license license:expat)))
2548 (define-public r-devtools
2554 (uri (cran-uri "devtools" version))
2557 "0kckjr12qi8nw498x3iw648pllz63j5p6fhpv8z8jc4z4sfpbmmc"))))
2558 (build-system r-build-system)
2583 (home-page "https://github.com/hadley/devtools")
2584 (synopsis "Tools to make developing R packages easier")
2585 (description "The devtools package is a collection of package development
2586 tools to simplify the devolpment of R packages.")
2587 (license license:gpl2+)))
2589 (define-public r-withr
2595 (uri (cran-uri "withr" version))
2598 "1h4bzj0am9lawbh1cam1jmgk1xjmn9da14r90w3q984hswz7nc9p"))))
2599 (build-system r-build-system)
2602 (home-page "https://github.com/jimhester/withr")
2603 (synopsis "Run code with temporarily modified global state")
2605 "This package provides a set of functions to run R code in an environment
2606 in which global state has been temporarily modified. Many of these functions
2607 were originally a part of the r-devtools package.")
2608 (license license:gpl2+)))
2610 (define-public r-hms
2617 (uri (cran-uri "hms" version))
2620 "1vdx08irnh8q5232hriv47hh88hc55nbbrff7y6zbainff2akrhy"))))
2621 (build-system r-build-system)
2623 (list r-ellipsis r-lifecycle r-pkgconfig r-rlang r-vctrs))
2624 (home-page "https://github.com/rstats-db/hms")
2625 (synopsis "Pretty time of day")
2627 "This package implements an S3 class for storing and formatting
2628 time-of-day values, based on the @code{difftime} class.")
2629 (license license:gpl3+)))
2631 (define-public r-readr
2637 (uri (cran-uri "readr" version))
2640 "06qcw57yz0fhh3ni41d5w68cbmwmb6zkp47chllwzax43wxd1bwl"))))
2641 (build-system r-build-system)
2656 (home-page "https://github.com/hadley/readr")
2657 (synopsis "Read tabular data")
2659 "This package provides functions to read flat or tabular text files from
2660 disk (or a connection).")
2661 (license license:gpl2+)))
2663 (define-public r-plotrix
2669 (uri (cran-uri "plotrix" version))
2672 "07xwq3505qb2yak7pfda22yqwifj6m78f8b5rm0ym74808qrawmv"))))
2673 (build-system r-build-system)
2674 (home-page "https://cran.r-project.org/web/packages/plotrix")
2675 (synopsis "Various plotting functions")
2677 "This package provides lots of plotting, various labeling, axis and color
2678 scaling functions for R.")
2679 (license license:gpl2+)))
2681 (define-public r-gridbase
2687 (uri (cran-uri "gridBase" version))
2690 "09jzw4rzwf2y5lcz7b16mb68pn0fqigv34ff7lr6w3yi9k91i1xy"))))
2691 (build-system r-build-system)
2692 (home-page "https://cran.r-project.org/web/packages/gridBase")
2693 (synopsis "Integration of base and grid graphics")
2695 "This package provides an integration of base and grid graphics for R.")
2696 (license license:gpl2+)))
2698 (define-public r-latticeextra
2700 (name "r-latticeextra")
2705 (uri (cran-uri "latticeExtra" version))
2708 "1vcy4xr6c53nbvnxikjnlf5kd3n5hf4d8dzj5d41hj322dlsfl65"))))
2709 (properties `((upstream-name . "latticeExtra")))
2710 (build-system r-build-system)
2718 (home-page "http://latticeextra.r-forge.r-project.org/")
2719 (synopsis "Extra graphical utilities based on lattice")
2721 "Building on the infrastructure provided by the lattice package, this
2722 package provides several new high-level graphics functions and methods, as
2723 well as additional utilities such as panel and axis annotation functions.")
2724 (license license:gpl2+)))
2726 (define-public r-rcpparmadillo
2728 (name "r-rcpparmadillo")
2729 (version "0.11.2.4.0")
2732 (uri (cran-uri "RcppArmadillo" version))
2735 "1y499idmci72x6gpj855vf4rlzh1r2qqpxyzs53r59ay8f4g0jar"))))
2736 (properties `((upstream-name . "RcppArmadillo")))
2737 (build-system r-build-system)
2740 (home-page "https://github.com/RcppCore/RcppArmadillo")
2741 (synopsis "Rcpp integration for the Armadillo linear algebra library")
2743 "Armadillo is a templated C++ linear algebra library that aims towards a
2744 good balance between speed and ease of use. Integer, floating point and
2745 complex numbers are supported, as well as a subset of trigonometric and
2746 statistics functions. Various matrix decompositions are provided through
2747 optional integration with LAPACK and ATLAS libraries. This package includes
2748 the header files from the templated Armadillo library.")
2749 ;; Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
2750 ;; bindings to Armadillo) is licensed under the GNU GPL version 2 or
2751 ;; later, as is the rest of 'Rcpp'.
2752 (license license:gpl2+)))
2754 (define-public r-bitops
2760 (uri (cran-uri "bitops" version))
2763 "1i0phmq5yynla5x0frqll1gbf5ww59p3sgz1s06a354zqf9grdg9"))))
2764 (build-system r-build-system)
2765 (home-page "https://cran.r-project.org/web/packages/bitops")
2766 (synopsis "Bitwise operations")
2768 "This package provides functions for bitwise operations on integer
2770 (license license:gpl2+)))
2772 (define-public r-catools
2778 (uri (cran-uri "caTools" version))
2781 "14q2ry8gaszjl0m97qg62dxv5bpj6k02qwyi7q2lnxgcmwai3mkm"))))
2782 (properties `((upstream-name . "caTools")))
2783 (build-system r-build-system)
2786 (home-page "https://cran.r-project.org/web/packages/caTools")
2787 (synopsis "Various tools including functions for moving window statistics")
2789 "This package contains several basic utility functions including:
2790 moving (rolling, running) window statistic functions, read/write for GIF and
2791 ENVI binary files, fast calculation of AUC, LogitBoost classifier, base64
2792 encoder/decoder, round-off-error-free sum and cumsum, etc.")
2793 (license license:gpl3+)))
2795 (define-public r-rprojroot
2797 (name "r-rprojroot")
2802 (uri (cran-uri "rprojroot" version))
2805 "15zq606s544wmbvk5dw13xq0sspr9dsxyxlvzvn0r48f8x3l4q2h"))))
2806 (build-system r-build-system)
2809 (home-page "https://github.com/krlmlr/rprojroot")
2810 (synopsis "Finding files in project subdirectories")
2812 "This package helps accessing files relative to a project root. It
2813 provides helpers for robust, reliable and flexible paths to files below a
2814 project root. The root of a project is defined as a directory that matches a
2815 certain criterion, e.g., it contains a certain regular file.")
2816 (license license:gpl3)))
2818 (define-public r-rmarkdown
2820 (name "r-rmarkdown")
2825 (uri (cran-uri "rmarkdown" version))
2827 (base32 "0wgsc5ax4wynviasyxr240fkjk0g1wm9aq7b42mx66f43424xlyk"))))
2828 (properties `((upstream-name . "rmarkdown")))
2829 (build-system r-build-system)
2844 (home-page "https://rmarkdown.rstudio.com")
2845 (synopsis "Convert R Markdown documents into a variety of formats")
2847 "This package provides tools to convert R Markdown documents into a
2848 variety of formats.")
2849 (license license:gpl3+)))
2851 (define-public r-gtable
2857 (uri (cran-uri "gtable" version))
2860 "1dbwxhxawwbmaixwxxglazv5bici56qvmjk7sqa8j66m49bjrmlb"))))
2861 (properties `((upstream-name . "gtable")))
2862 (build-system r-build-system)
2865 (home-page "https://cran.r-project.org/web/packages/gtable")
2866 (synopsis "R library to arrange grobs in tables")
2868 "Gtable is a collection of tools to make it easier to work with
2869 \"tables\" of grobs.")
2870 (license license:gpl2+)))
2872 (define-public r-gridextra
2874 (name "r-gridextra")
2878 (uri (cran-uri "gridExtra" version))
2881 "0fwfk3cdwxxim7nd55pn7m31bcaqj48y06j7an2k1v1pybk0rdl1"))))
2882 (properties `((upstream-name . "gridExtra")))
2883 (build-system r-build-system)
2887 (list r-knitr)) ;for building vignettes
2888 (home-page "https://github.com/baptiste/gridextra")
2889 (synopsis "Miscellaneous functions for \"Grid\" graphics")
2891 "This package provides a number of user-level functions to work with
2892 @code{grid} graphics, notably to arrange multiple grid-based plots on a page,
2894 (license license:gpl2+)))
2896 (define-public r-pkgconfig
2898 (name "r-pkgconfig")
2902 (uri (cran-uri "pkgconfig" version))
2905 "0l1qph8zyi2sic3k2qcd7vlfl7rzfh1q7z7zvjkl5f7y1x2fy3rk"))))
2906 (build-system r-build-system)
2907 (home-page "https://github.com/gaborcsardi/pkgconfig")
2908 (synopsis "Private configuration for R packages")
2909 (description "This package provides the functionality to set configuration
2910 options on a per-package basis. Options set by a given package only apply to
2911 that package, other packages are unaffected.")
2912 (license license:expat)))
2914 (define-public r-blob
2920 (uri (cran-uri "blob" version))
2923 "06v3ldnmf6f99riym1cjbm5rklxmg6cpdixm6armc6rxxs1xd21d"))))
2924 (build-system r-build-system)
2926 (list r-rlang r-vctrs))
2927 (home-page "https://github.com/hadley/blob")
2928 (synopsis "Simple S3 Class for representing vectors of binary data")
2929 (description "Raw vectors in R are useful for storing a single binary
2930 object. What if you want to put a vector of them in a data frame? The blob
2931 package provides the blob object, a list of raw vectors, suitable for use as
2932 a column in data frame.")
2933 (license license:gpl3+)))
2935 (define-public r-rsqlite
2941 (uri (cran-uri "RSQLite" version))
2944 "16l64ganvdlaldmqryz2c95id2m8vchlj9x5rz9kppbmhy122vjw"))))
2945 (properties `((upstream-name . "RSQLite")))
2946 (build-system r-build-system)
2957 (home-page "https://github.com/rstats-db/RSQLite")
2958 (synopsis "SQLite interface for R")
2960 "This package embeds the SQLite database engine in R and provides an
2961 interface compliant with the DBI package. The source for the SQLite
2962 engine (version 3.8.8.2) is included.")
2963 (license license:lgpl2.0+)))
2965 (define-public r-rcurl
2968 (version "1.98-1.8")
2971 (uri (cran-uri "RCurl" version))
2974 "0a4gr264ycy6am4849y79h3vc9vg7cgpizb88v4xw076pyn52fqy"))))
2975 (properties `((upstream-name . "RCurl")))
2976 (build-system r-build-system)
2979 (modify-phases %standard-phases
2980 (add-after 'unpack 'respect-CURL_CA_BUNDLE
2982 (substitute* "R/options.S"
2983 (("\\.els = rev\\(merge\\(list\\(\\.\\.\\.\\), \\.opts\\)\\)" m)
2985 certs = Sys.getenv(\"CURL_CA_BUNDLE\")
2986 if (certs != \"\") { .opts = merge.list(.opts, list(cainfo=certs)) }
2994 (home-page "http://www.omegahat.net/RCurl")
2995 (synopsis "General network client interface for R")
2997 "The package allows one to compose general HTTP requests and provides
2998 convenient functions to fetch URIs, GET and POST forms, etc. and process the
2999 results returned by the Web server. This provides a great deal of control
3000 over the HTTP/FTP/... connection and the form of the request while providing a
3001 higher-level interface than is available just using R socket connections.
3002 Additionally, the underlying implementation is robust and extensive,
3003 supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict,
3004 ldap, and also supports cookies, redirects, authentication, etc.")
3005 (license license:bsd-3)))
3007 (define-public r-xml
3010 (version "3.99-0.10")
3013 (uri (cran-uri "XML" version))
3016 "0nzkgylnqnnvsh27007np8klwv2xi9wqxhw05mzczhxdxnsr2nf4"))))
3018 `((upstream-name . "XML")))
3019 (build-system r-build-system)
3021 (list libxml2 zlib))
3024 (home-page "http://www.omegahat.net/RSXML")
3025 (synopsis "Tools for parsing and generating XML within R")
3027 "Many approaches for both reading and creating XML (and HTML)
3028 documents (including DTDs), both local and accessible via HTTP or FTP. Also
3029 offers access to an XPath \"interpreter\".")
3030 (license license:bsd-2)))
3032 (define-public r-xnomial
3037 (origin (method url-fetch)
3038 (uri (cran-uri "XNomial" version))
3041 "1mwx302576rmsjllbq2clfxilm3hkyp5bw0wmwqbn0kgv5wpy8z6"))))
3042 (properties (quasiquote ((upstream-name . "XNomial"))))
3043 (build-system r-build-system)
3044 (home-page "https://cran.r-project.org/web/packages/XNomial")
3045 (synopsis "Goodness-of-Fit test for multinomial data")
3047 "This package provides an exact Goodness-of-Fit test for
3048 multinomial data with fixed probabilities. It can be used to
3049 determine whether a set of counts fits a given expected ratio. To see
3050 whether a set of observed counts fits an expectation, one can examine
3051 all possible outcomes with @code{xmulti()} or a random sample of them
3052 with @code{xmonte()} and find the probability of an observation
3053 deviating from the expectation by at least as much as the observed.
3054 As a measure of deviation from the expected, one can use the
3055 log-likelihood ratio, the multinomial probability, or the classic
3056 chi-square statistic. A histogram of the test statistic can also be
3057 plotted and compared with the asymptotic curve.")
3058 (license (list license:gpl2+ license:gpl3+))))
3060 (define-public r-lambda-r
3066 (uri (cran-uri "lambda.r" version))
3069 "1mh1g0gsd58gng0hb29vww2yqb2jfs07kba5kxnnqck5j3izwlnj"))))
3070 (properties `((upstream-name . "lambda.r")))
3071 (build-system r-build-system)
3074 (home-page "https://cran.r-project.org/web/packages/lambda.r")
3075 (synopsis "Functional programming extension for R")
3077 "This package provides a language extension to efficiently write
3078 functional programs in R. Syntax extensions include multi-part function
3079 definitions, pattern matching, guard statements, built-in (optional) type
3081 (license license:lgpl3+)))
3083 (define-public r-futile-options
3085 (name "r-futile-options")
3089 (uri (cran-uri "futile.options" version))
3092 "0w15agpi88y3qkv6fl72zy2pzyplzgvnj41a4ixhg64mw1sck73s"))))
3094 `((upstream-name . "futile.options")))
3095 (build-system r-build-system)
3096 (home-page "https://cran.r-project.org/web/packages/futile.options")
3097 (synopsis "Options management framework")
3099 "The futile.options subsystem provides an easy user-defined options
3100 management system that is properly scoped. This means that options created
3101 via @code{futile.options} are fully self-contained and will not collide with
3102 options defined in other packages.")
3103 (license license:lgpl3+)))
3105 (define-public r-futile-logger
3107 (name "r-futile-logger")
3111 (uri (cran-uri "futile.logger" version))
3114 "1r3nayk0z9n1svbf8640vw90dal5q07nkn0gv4bnva3pbzb352sy"))))
3115 (properties `((upstream-name . "futile.logger")))
3116 (build-system r-build-system)
3118 (list r-futile-options r-lambda-r))
3119 (home-page "https://cran.r-project.org/web/packages/futile.logger")
3120 (synopsis "Logging utility for R")
3122 "This package provides a simple yet powerful logging utility. Based
3123 loosely on log4j, futile.logger takes advantage of R idioms to make logging a
3124 convenient and easy to use replacement for @code{cat} and @code{print}
3126 (license license:lgpl3+)))
3128 (define-public r-segmented
3130 (name "r-segmented")
3135 (uri (cran-uri "segmented" version))
3138 "0sg59j59kz3zrwl3mi4ps1qw3hvwljygqa1d652vjdsx9w57zbvb"))))
3139 (build-system r-build-system)
3140 (propagated-inputs (list r-mass r-nlme))
3141 (home-page "https://cran.r-project.org/web/packages/segmented")
3142 (synopsis "Regression models with breakpoints estimation")
3144 "Given a regression model, segmented updates the model by adding one or
3145 more segmented (i.e., piecewise-linear) relationships. Several variables with
3146 multiple breakpoints are allowed.")
3147 (license (list license:gpl2+ license:gpl3+))))
3149 (define-public r-snow
3155 (uri (cran-uri "snow" version))
3158 "1j8kvf3imxijsqkdjz4i9s7qggfxqrpas46y5wz6za92y937yn44"))))
3159 (build-system r-build-system)
3160 (home-page "https://cran.r-project.org/web/packages/snow")
3161 (synopsis "Support for simple parallel computing in R")
3163 "The snow package provides support for simple parallel computing on a
3164 network of workstations using R. A master R process calls @code{makeCluster}
3165 to start a cluster of worker processes; the master process then uses functions
3166 such as @code{clusterCall} and @code{clusterApply} to execute R code on the
3167 worker processes and collect and return the results on the master.")
3168 (license (list license:gpl2+ license:gpl3+))))
3170 (define-public r-sparsem
3176 (uri (cran-uri "SparseM" version))
3179 "0csbqd9wm6r4162mday1iaigzf9wv2rp1zq8hnihys6f38w8z0xx"))))
3181 `((upstream-name . "SparseM")))
3184 (build-system r-build-system)
3185 (home-page "http://www.econ.uiuc.edu/~roger/research/sparse/sparse.html")
3186 (synopsis "Sparse linear algebra")
3188 "This package provides some basic linear algebra functionality for sparse
3189 matrices. It includes Cholesky decomposition and backsolving as well as
3190 standard R subsetting and Kronecker products.")
3191 (license license:gpl2+)))
3193 (define-public r-iterators
3195 (name "r-iterators")
3200 (uri (cran-uri "iterators" version))
3203 "0yv7rh6ghlfx727xy2aq64a7skyxp9msakaffs641q9h15d0gwyf"))))
3204 (build-system r-build-system)
3205 (home-page "https://cran.r-project.org/web/packages/iterators")
3206 (synopsis "Iterator construct for R")
3208 "This package provides support for iterators, which allow a programmer to
3209 traverse through all the elements of a vector, list, or other collection of
3211 (license license:asl2.0)))
3213 (define-public r-foreach
3220 (uri (cran-uri "foreach" version))
3223 "1r5gdf9fp3rprvrhf0gzl9qmmqhgdn5gscpm5hk8zxpraf3qscsn"))))
3224 (build-system r-build-system)
3226 (list r-codetools r-iterators))
3229 (home-page "https://cran.r-project.org/web/packages/foreach")
3230 (synopsis "Foreach looping construct for R")
3232 "This package provides support for the @code{foreach} looping construct.
3233 @code{foreach} is an idiom that allows for iterating over elements in a
3234 collection, without the use of an explicit loop counter. This package in
3235 particular is intended to be used for its return value, rather than for its
3236 side effects. In that sense, it is similar to the standard @code{lapply}
3237 function, but doesn't require the evaluation of a function. Using
3238 @code{foreach} without side effects also facilitates executing the loop in
3240 (license license:asl2.0)))
3242 (define-public r-doparallel
3244 (name "r-doparallel")
3249 (uri (cran-uri "doParallel" version))
3252 "1mxbg2qqda1775vb4s26gz27p5n91lljgjmlqxq4sras22njasmr"))))
3253 (properties `((upstream-name . "doParallel")))
3254 (build-system r-build-system)
3256 (list r-foreach r-iterators))
3257 (home-page "https://cran.r-project.org/web/packages/doParallel")
3258 (synopsis "Foreach parallel adaptor for the 'parallel' package")
3260 "This package provides a parallel backend for the @code{%dopar%} function
3261 using the parallel package.")
3262 (license license:gpl2+)))
3264 (define-public r-domc
3271 (uri (cran-uri "doMC" version))
3274 "18qrcvqwm4cclvk8spvyi281y8prwzivj52xmzk1l9a82j2ny65j"))))
3275 (properties `((upstream-name . "doMC")))
3276 (build-system r-build-system)
3278 (list r-foreach r-iterators))
3279 (home-page "https://cran.r-project.org/web/packages/doMC")
3280 (synopsis "Foreach parallel adaptor for the 'parallel' package")
3282 "This package provides a parallel backend for the @code{%dopar%} function
3283 using the multicore functionality of the parallel package.")
3284 (license license:gpl2+)))
3287 (let ((javascript-sources
3288 '(("https://cdn.datatables.net/1.10.20/js/jquery.dataTables.js"
3289 "03ln7ys1q1hy3xpsrjxnjpg9hq3lfpqz0firrxsgjzj8fsw20is3"
3291 ("https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap.js"
3292 "16clrnxm7axn6cdimyf3qbskxg10gpn9ld5ls2xdfw5q1qf2i4ml"
3294 ("https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.js"
3295 "16v49zqxr1zil19bcx3wdnv95zdpiz2m979aazan7z04ymqb2rzb"
3297 ("https://cdn.datatables.net/1.10.20/js/dataTables.foundation.js"
3298 "1gpjm1pi2pl0hxsn0pg3s3f382y2s7nsr06866vxld6gb8054lld"
3300 ("https://cdn.datatables.net/1.10.20/js/dataTables.jqueryui.js"
3301 "0nxd8jph34vsk8k8whs2yiybrn6nsnwzhri0bxn2k1dzmcvpn24i"
3303 ("https://cdn.datatables.net/1.10.20/js/dataTables.semanticui.js"
3304 "1477f49xyxs4phias789mbspv23w8alxchhl5b5iy0aw6vd35c43"
3307 ("https://cdn.datatables.net/autofill/2.3.4/js/dataTables.autoFill.js"
3308 "04i6n7r3512gzfihl5wnhrvm0klnjp41g1z6cny3j803hvmnp8zk"
3309 "datatables-extensions/AutoFill")
3310 ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.bootstrap.js"
3311 "1zi7iiq63i5qx3p9cyynn6am4idxwj8xaz8mp4n3klm1x68sc0ja"
3312 "datatables-extensions/AutoFill")
3313 ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.bootstrap4.js"
3314 "1vk2smcz14raf0cz88a65yf36a7mnmbml02q03apg2b8bqy91m7w"
3315 "datatables-extensions/AutoFill")
3316 ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.foundation.js"
3317 "0sbcib1461pkglk69fzzqi73g4abylah74f264v0f79dc5247yzz"
3318 "datatables-extensions/AutoFill")
3319 ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.jqueryui.js"
3320 "1dw9vbbchzbd2c7id8na2p1cxac2kgjbzjrvqafra715hr0i4z3z"
3321 "datatables-extensions/AutoFill")
3322 ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.semanticui.js"
3323 "07ck81y6wpqchq8jfym6gjgc57xwj6vv9h5w9grc1gps6p7q9xnr"
3324 "datatables-extensions/AutoFill")
3326 ("https://cdn.datatables.net/buttons/1.6.1/js/dataTables.buttons.js"
3327 "15l9kd9898zm8xf996d5c761rwl55k4w718k9k5fzz2gh91g21g5"
3328 "datatables-extensions/Buttons")
3329 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.colVis.js"
3330 "1rqlv5pacipl652xgyzsdq1gbfwv52rwl4mr2fx9a3py21yskppk"
3331 "datatables-extensions/Buttons")
3332 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.flash.js"
3333 "150r2ypxl017kl5agrn17cnyvwpf7x2x7vkqbc1qxif8vclf35kj"
3334 "datatables-extensions/Buttons")
3335 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.html5.js"
3336 "1d8is99yrh95hycjijzbrbxy1anfslab6krmhj2xbwsmssyn16xh"
3337 "datatables-extensions/Buttons")
3338 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.print.js"
3339 "1irgspv2zidv6v0ay92152d8cvhz2zyrwb71xk3nw903223vc2gl"
3340 "datatables-extensions/Buttons")
3341 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.semanticui.js"
3342 "1p02r953ampxlzfzpay227ya6qdzsxz2anjxpnx3q8qs6gv6y2jl"
3343 "datatables-extensions/Buttons")
3344 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.foundation.js"
3345 "0aykm1sk8rwvxp5r4qnvbb2scx2bln5kh88h36829mcqcdksfc50"
3346 "datatables-extensions/Buttons")
3347 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.jqueryui.js"
3348 "1im6f6jw3yc3959rw1i3bghvz863kmp3wgfvz661r1r2wjzzfs4d"
3349 "datatables-extensions/Buttons")
3350 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.bootstrap.js"
3351 "1mzmpabhrk0iag7hb16n8bhghx4cprq39p2vqn3v65mpklajzznc"
3352 "datatables-extensions/Buttons")
3353 ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.bootstrap4.js"
3354 "0hfclipg43wr9p7irrcn9vp5wji8z7gz6y5mclkq88z1mlpwklzf"
3355 "datatables-extensions/Buttons")
3356 ("https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.js"
3357 "01l5lw49jz2qn6k9i63dk4llar4lvvpd6xp6i45mpwfk49fbxqg2"
3358 "datatables-extensions/Buttons")
3359 ("https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.js"
3360 "1sfw80az2cgzin5wk7q1p2n9zm66c35cz0m6isdygml81i594wia"
3361 "datatables-extensions/Buttons")
3362 ("https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"
3363 "1k324s0hw4lfpd71bb1cnv4j5096k8smk64fjdsh81sl0ykizf2w"
3364 "datatables-extensions/Buttons")
3366 ("https://cdn.datatables.net/colreorder/1.5.2/js/dataTables.colReorder.js"
3367 "1dalc28km19xzzszsa82hsd9alikrqpzjvf9vzxkccjpf7m2sdqg"
3368 "datatables-extensions/ColReorder")
3369 ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.foundation.js"
3370 "0nrddc8swkmsfzji518kh6ks55ykyk9p8r4x5fmf8ckr9fhjkh0s"
3371 "datatables-extensions/ColReorder")
3372 ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.bootstrap.js"
3373 "0crgmjwcn817yz6ibjkji6gsickvv2a4las9asyldfcpj2c99x84"
3374 "datatables-extensions/ColReorder")
3375 ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.bootstrap4.js"
3376 "065fhw4v2d9rp3ic9zfb1q5d7pfq4f2949rr24hdjbspf19m3ymd"
3377 "datatables-extensions/ColReorder")
3378 ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.semanticui.js"
3379 "17kw143ny0nq0yidsffw3cpghvlg2bzlzavfi0ihkamcn26ymxcp"
3380 "datatables-extensions/ColReorder")
3381 ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.jqueryui.js"
3382 "1rd8hijz3prg2y36fvqczrpdzixibjy2dxgs2fmgr8wrm8k01rrm"
3383 "datatables-extensions/ColReorder")
3385 ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/dataTables.fixedColumns.js"
3386 "0vsqk2fv59n351bdfcbvhmvpq38qwf41j1cn810xz1l1i07cg4hg"
3387 "datatables-extensions/FixedColumns")
3388 ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.bootstrap.js"
3389 "1j4wvg694l960gk5dg7wghwa3dpgq8mnrcgp78ghm92i08djb1wy"
3390 "datatables-extensions/FixedColumns")
3391 ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.bootstrap4.js"
3392 "1p79k9bjslyvmp1bdhmg4nm2l9nbfsi4kgw7rx3vjka3n50qy730"
3393 "datatables-extensions/FixedColumns")
3394 ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.foundation.js"
3395 "0f0xkrsapzgma58f6l63rpn68xid098dxwqqddsyddl0hy0x1z82"
3396 "datatables-extensions/FixedColumns")
3397 ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.jqueryui.js"
3398 "0lw35c8vkajx75pg4ddik4gyzmjak1jaw3flq850frwgnzsvhahx"
3399 "datatables-extensions/FixedColumns")
3400 ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.semanticui.js"
3401 "1kqsap9y0d25a7m5zjakipifl5qi2qr72kfj4ap3zxavd8md2wyn"
3402 "datatables-extensions/FixedColumns")
3404 ("https://cdn.datatables.net/fixedheader/3.1.6/js/dataTables.fixedHeader.js"
3405 "1ml5ilnm8nirr6rsgmzn75l1k0hcjz3sqk6h1y1gy8cpwpklvqri"
3406 "datatables-extensions/FixedHeader")
3407 ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.bootstrap.js"
3408 "1qf3pkb3svpia7g8bwyql7ma3x2g4zj5bp0d14pnv8xpc9h52r93"
3409 "datatables-extensions/FixedHeader")
3410 ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.bootstrap4.js"
3411 "19jcvnk7zh4k6fd5si3b743x70qzlkqiw3m10jbc5jzbpz8sj6qd"
3412 "datatables-extensions/FixedHeader")
3413 ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.foundation.js"
3414 "0xmpx1r76vykqygksyjaf4d1ql1fid69rqhvk4k857iybqz3gdcv"
3415 "datatables-extensions/FixedHeader")
3416 ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.jqueryui.js"
3417 "1lc0g2cag1sj3bqmh7rh5z00pmfv1srxfhwi32y4mgpzhrzpfzxn"
3418 "datatables-extensions/FixedHeader")
3419 ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.semanticui.js"
3420 "1v0i6dc68h8l8673fb5970igzkl7as36riv504iyg82glfi7n877"
3421 "datatables-extensions/FixedHeader")
3423 ("https://cdn.datatables.net/keytable/2.5.1/js/dataTables.keyTable.js"
3424 "16iib2icxsjh93x5hd42gpsl7bzpcsqb7zjgj0m1s02ls45bdlv5"
3425 "datatables-extensions/KeyTable")
3426 ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.bootstrap.js"
3427 "0hnhk6am4yl6h6bb7as935k8h2syil9hf8g7nn409yd3ws736xpj"
3428 "datatables-extensions/KeyTable")
3429 ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.bootstrap4.js"
3430 "0r85mp5yf9hgl5ayzzs46dfbxa231bjlvgb8lqpyzik1m6afa51i"
3431 "datatables-extensions/KeyTable")
3432 ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.foundation.js"
3433 "11fr14p33lyvs0wfcx228m600i4qcaqb44q3hk723jxcz59k17dw"
3434 "datatables-extensions/KeyTable")
3435 ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.jqueryui.js"
3436 "0572rxrvwyprdr8l5jkgacj2bkmhmgxjy5vybm65n54g9j19l6bc"
3437 "datatables-extensions/KeyTable")
3438 ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.semanticui.js"
3439 "157mqn9mhmmf7vas2das4hbpwipk3wshs8n0808q04rbijr0g2bz"
3440 "datatables-extensions/KeyTable")
3442 ("https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.js"
3443 "1jnsx4sqf7qjd1gz5ag9hn6n76cwwfms23rzw37lgbd6h54yqzwr"
3444 "datatables-extensions/Responsive")
3445 ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.foundation.js"
3446 "1vzzqpd9l8xv0am42g4cilx9igmq60mgk0hab4ssqvbicrmrgq9z"
3447 "datatables-extensions/Responsive")
3448 ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.semanticui.js"
3449 "1cjiwcf0d07482k08dhn5ffsizshw4hqgz5l58p03pq9g6wc9pvm"
3450 "datatables-extensions/Responsive")
3451 ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.jqueryui.js"
3452 "10nykak2kf4sai64girh26xdmdil29jvw3zja2rpp2qzjg4172z9"
3453 "datatables-extensions/Responsive")
3454 ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.js"
3455 "1xxlh01vmzmfwwlsa611pl2nrl2sx58rp8xmx301bfsylmp2v5b2"
3456 "datatables-extensions/Responsive")
3457 ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap4.js"
3458 "1zjh15p7n1038sggaxv1xvcwbkhw2nk1ndx745s6cxiqb69y3i0h"
3459 "datatables-extensions/Responsive")
3461 ("https://cdn.datatables.net/rowgroup/1.1.1/js/dataTables.rowGroup.js"
3462 "0s4q7ir2d6q36g29nn9mqk7vrqrdig2mm5zbcv0sn2lixqi29pkj"
3463 "datatables-extensions/RowGroup")
3464 ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.bootstrap.js"
3465 "1xfdhqgznz9x1v8spvql6b0wbna13h8cbzvkjza14nqsmccxck66"
3466 "datatables-extensions/RowGroup")
3467 ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.bootstrap4.js"
3468 "1xm53sda4fabwdaglngrj09bpiygkn9mm17grxbykn1jazqqdp62"
3469 "datatables-extensions/RowGroup")
3470 ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.foundation.js"
3471 "0832i10vils1wv1sm10qvsnd4i2k2xkhskz6i9y2q0axkmk73hcd"
3472 "datatables-extensions/RowGroup")
3473 ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.jqueryui.js"
3474 "0n53cd294s9mjblkykkqvd9n414bsc26wpcg5spxdscjl6hxh79p"
3475 "datatables-extensions/RowGroup")
3476 ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.semanticui.js"
3477 "010wls5nf387p21fdc2k952bxq89r5kxkv7j4wbvwf8k2a18cmc9"
3478 "datatables-extensions/RowGroup")
3480 ("https://cdn.datatables.net/rowreorder/1.2.6/js/dataTables.rowReorder.js"
3481 "13ymbn3h9755pgb0gmlb9gl54vz9nqnz4mws7g6mlmz53r3sqhmj"
3482 "datatables-extensions/RowReorder")
3483 ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.bootstrap.js"
3484 "185if2pxgc940rm49hdgln57pc5h9cszlii3bfpdf3pdc1fjhckm"
3485 "datatables-extensions/RowReorder")
3486 ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.bootstrap4.js"
3487 "14129x4md57i4ff7j18m49jn5fw8r716np84cdrcawlydgjsxp4a"
3488 "datatables-extensions/RowReorder")
3489 ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.foundation.js"
3490 "0zg94jckymxzda2xjyj9p38y5v61cji55kak1ylq72l6a9sw8sg6"
3491 "datatables-extensions/RowReorder")
3492 ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.jqueryui.js"
3493 "08gm419xcixgqw0i5yv2mxyyvafhzviibifp6nv129vdxx0a5d8v"
3494 "datatables-extensions/RowReorder")
3495 ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.semanticui.js"
3496 "1zjrx2rlgw3qannsqa88pcp3i4pc87pwv7rmgfw1dar8namkr9kk"
3497 "datatables-extensions/RowReorder")
3499 ("https://cdn.datatables.net/scroller/2.0.1/js/dataTables.scroller.js"
3500 "0zfjjdvwwlsnps24i9l4c97hmway2qs6addks1is5bxl4k1r6d16"
3501 "datatables-extensions/Scroller")
3502 ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.foundation.js"
3503 "04bk6ink8wqay7655v93jvv86m3bn6asrsfb22i99rgxdvm8gn1z"
3504 "datatables-extensions/Scroller")
3505 ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.bootstrap.js"
3506 "19dl40dl8ir21xvs1j7xhm2a4py1m21xbypwn499fg2awj8vaidi"
3507 "datatables-extensions/Scroller")
3508 ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.bootstrap4.js"
3509 "0pbkgncijlafwdmyh4l65dabd18hzjh8r01cad3b9iy8cfif6iwd"
3510 "datatables-extensions/Scroller")
3511 ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.jqueryui.js"
3512 "1md5mpx5in7wzsr38yn801cmv3phm0i0ikdnpd0b1nsna5ccpj14"
3513 "datatables-extensions/Scroller")
3514 ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.semanticui.js"
3515 "1dfbblbzbryjgiv31qfdjnijz19lmyijg12win3y8gsgfd4fp9zz"
3516 "datatables-extensions/Scroller")
3518 ("https://cdn.datatables.net/searchbuilder/1.0.0/js/dataTables.searchBuilder.js"
3519 "0n5g0j0yfzqvdpsmwb27bj1rd8zx864fsx2k7b2kpv6mqqavzpqc"
3520 "datatables-extensions/SearchBuilder")
3521 ("https://cdn.datatables.net/searchbuilder/1.0.0/js/searchBuilder.bootstrap.js"
3522 "1gnd8rjcg9c96xayshn9rwinzgmlwzddczjlpfmf2j33npmyka2y"
3523 "datatables-extensions/SearchBuilder")
3524 ("https://cdn.datatables.net/searchbuilder/1.0.0/js/searchBuilder.bootstrap4.js"
3525 "0vdv5mi6zbp2dspmj0lw2vaqxvfadcydlmc6frqv4a68rms7wz05"
3526 "datatables-extensions/SearchBuilder")
3527 ("https://cdn.datatables.net/searchbuilder/1.0.0/js/searchBuilder.dataTables.js"
3528 "0fbzfnaqswb2xq7m1vdzcg7l7qi0wmyz64ml6k4002kp0dm4xnlx"
3529 "datatables-extensions/SearchBuilder")
3531 ("https://cdn.datatables.net/searchpanes/1.1.1/js/dataTables.searchPanes.js"
3532 "1s697avk42h24fsaq79d1kkw66dqig7xgpx9bvmhwncv8amkmz6i"
3533 "datatables-extensions/SearchPanes")
3534 ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.bootstrap.js"
3535 "0n3z4fdx1nsga4l5hmd4s93piv9k0v607xd7q9h2zpq613if7sld"
3536 "datatables-extensions/SearchPanes")
3537 ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.bootstrap4.js"
3538 "1i1arnvxp57z01wc207jxnw9h8clcish6l96c2gnmachgkaz8lqa"
3539 "datatables-extensions/SearchPanes")
3540 ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.dataTables.js"
3541 "04zzg7i46igcd6gfvdln5alpgjn7m663yf9bf2f3fk9va4fvis6y"
3542 "datatables-extensions/SearchPanes")
3543 ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.foundation.js"
3544 "0m78wdajxn1m3j9jn9jfwqf73wwsxrsfw4zf84h5y6saj4rrcz72"
3545 "datatables-extensions/SearchPanes")
3546 ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.jqueryui.js"
3547 "0zb2x736isb8nxrmd7j8nb78lj8h0h9j3axnbjiybwzzk819xw1m"
3548 "datatables-extensions/SearchPanes")
3549 ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.semanticui.js"
3550 "1781d0xmx7xz0jly0wsw2zbrdmfc1crahmcdbsfbj5s66kdsnd7c"
3551 "datatables-extensions/SearchPanes")
3553 ("https://cdn.datatables.net/select/1.3.1/js/dataTables.select.js"
3554 "0a7bkbz1cizhiq4h417b4rcdr7998pn8q4dlyzx8449xdp0h0n0v"
3555 "datatables-extensions/Select")
3556 ("https://cdn.datatables.net/select/1.3.1/js/select.bootstrap.js"
3557 "0mm5ly3p2iprlfi8ajz548rjqx8lz1sbjj5ysgqmwqg14gw7l9k7"
3558 "datatables-extensions/Select")
3559 ("https://cdn.datatables.net/select/1.3.1/js/select.bootstrap4.js"
3560 "1hv6d9lwgflmxhy7mdfb9rvli2wa2cbkdhqjz64zkf1a1a7wlb5q"
3561 "datatables-extensions/Select")
3562 ("https://cdn.datatables.net/select/1.3.1/js/select.foundation.js"
3563 "1zzygcbngvrqh7m22x0s23k8m5xj5fv1p466pzjs23p94qq24a2r"
3564 "datatables-extensions/Select")
3565 ("https://cdn.datatables.net/select/1.3.1/js/select.jqueryui.js"
3566 "1hv5zlmfifd27hylfqsji09y2hbp3m2hnb7j41418sjrxs63f6x6"
3567 "datatables-extensions/Select")
3568 ("https://cdn.datatables.net/select/1.3.1/js/select.semanticui.js"
3569 "0q6q3vb6pa5nmkxy7zcnjs0bkn4ldw8ykdcfrc04bf1d2hjjaw47"
3570 "datatables-extensions/Select"))))
3576 (uri (cran-uri "DT" version))
3579 "0as43h4minnz5c09nvbvq8b1d9506mzkcdl98bhf87rf0q9qgz0d"))
3580 (modules '((guix build utils)))
3582 '(for-each delete-file
3583 (find-files "inst/htmlwidgets/lib" "\\.min\\.js$")))))
3585 `((upstream-name . "DT")))
3586 (build-system r-build-system)
3589 ((guix build r-build-system)
3590 (guix build minify-build-system)
3594 (,@%r-build-system-modules
3595 (guix build minify-build-system))
3597 (modify-phases (@ (guix build r-build-system) %standard-phases)
3598 (add-after 'unpack 'process-javascript
3599 (lambda* (#:key inputs #:allow-other-keys)
3600 (with-directory-excursion "inst/htmlwidgets/lib/"
3601 (for-each (match-lambda
3603 (let* ((input (string-append "js:" (basename url)))
3604 (source (assoc-ref inputs input))
3605 (target (string-append dir "/js/"
3606 (basename url ".js")
3609 (minify source #:target target))))
3610 ',javascript-sources)
3611 (minify (string-append (assoc-ref inputs "datatables-plugins")
3612 "/features/scrollResize/dataTables.scrollResize.js")
3613 #:target "datatables-plugins/features/scrollResize/source.min.js")
3614 (minify (string-append (assoc-ref inputs "datatables-plugins")
3615 "/features/searchHighlight/dataTables.searchHighlight.js")
3616 #:target "datatables-plugins/features/searchHighlight/source.min.js")
3617 (minify (assoc-ref inputs "js-nouislider")
3618 #:target "nouislider/jquery.nouislider.min.js")
3620 (let ((replace-file (lambda (old new)
3621 (format #t "replacing ~a with ~a\n" old new)
3622 (symlink new old))))
3623 (replace-file "selectize/selectize.min.js"
3624 (string-append (assoc-ref inputs "js-selectize")
3625 "/share/javascript/selectize.min.js")))))))))
3635 (list js-selectize))
3637 `(("r-knitr" ,r-knitr)
3638 ("uglifyjs" ,node-uglify-js)
3639 ("datatables-plugins"
3640 ,(let ((version "1.10.20"))
3644 (url "https://github.com/DataTables/Plugins.git")
3646 (file-name (git-file-name "datatables-plugins" version))
3649 "05zni20863ml1711lfllljdfkb3k05h0kpqhkijkbp0bp7q0ak94")))))
3651 ,(let ((version "7.0.10"))
3654 (uri (string-append "https://raw.githubusercontent.com/leongersen/noUiSlider/"
3655 version "/distribute/jquery.nouislider.js"))
3658 "1f7vsfcn7wwzngib6j0wpl0psd6qriiaa6kv728ynfn5da73zfxm")))))
3659 ,@(map (match-lambda
3661 `(,(string-append "js:" (basename url))
3662 ,(origin (method url-fetch)
3664 (sha256 (base32 hash))))))
3665 javascript-sources)))
3666 (home-page "https://rstudio.github.io/DT")
3667 (synopsis "R wrapper of the DataTables JavaScript library")
3669 "This package allows for data objects in R to be rendered as HTML tables
3670 using the JavaScript library @code{DataTables} (typically via R Markdown or
3671 Shiny). The @code{DataTables} library has been included in this R package.")
3672 ;; The DT package as a whole is distributed under GPLv3. The DT package
3673 ;; inludes other software components under different licenses:
3675 ;; * Expat: jquery.highlight.js, DataTables
3676 ;; * WTFPL: noUiSlider
3677 (license (list license:gpl3
3681 (define-public r-base64enc
3683 (name "r-base64enc")
3687 (uri (cran-uri "base64enc" version))
3690 "13b89fhg1nx7zds82a0biz847ixphg9byf5zl2cw9kab6s56v1bd"))))
3691 (build-system r-build-system)
3692 (home-page "https://www.rforge.net/base64enc")
3693 (synopsis "Tools for Base64 encoding")
3695 "This package provides tools for handling Base64 encoding. It is more
3696 flexible than the orphaned \"base64\" package.")
3697 (license license:gpl2+)))
3699 (define-public r-irlba
3706 (uri (cran-uri "irlba" version))
3709 "1fcv4vazg2sbsda8qqjjsjn2wagcp2bsahvznwm443j66q6qrz16"))))
3710 (build-system r-build-system)
3713 (home-page "https://cran.r-project.org/web/packages/irlba")
3714 (synopsis "Methods for eigendecomposition of large matrices")
3716 "This package provides fast and memory efficient methods for truncated
3717 singular and eigenvalue decompositions, as well as for principal component
3718 analysis of large sparse or dense matrices.")
3719 (license (list license:gpl2+ license:gpl3+))))
3721 (define-public r-glmnet
3728 (uri (cran-uri "glmnet" version))
3730 (base32 "1y80a3b5s24ywhlil3r7b3a0vs9j59d7jkxrqa8zz09x1c5ggc7n"))))
3731 (build-system r-build-system)
3733 (list gfortran r-knitr))
3741 (home-page "https://www.jstatsoft.org/article/view/v033i01")
3742 (synopsis "Lasso and elastic-net regularized generalized linear models")
3744 "The glmnet package provides efficient procedures for fitting the entire
3745 lasso or elastic-net regularization path for linear and Poisson regression, as
3746 well as logistic, multinomial, Cox, multiple-response Gaussian and grouped
3747 multinomial models. The algorithm uses cyclical coordinate descent in a
3748 path-wise fashion.")
3749 (license license:gpl2+)))
3751 (define-public r-pkgmaker
3758 (uri (cran-uri "pkgmaker" version))
3761 "14ggsd24n5g5rvn0wl4w90ipxzmywqikh28llj89q6kpxwnv4iff"))))
3762 (build-system r-build-system)
3771 (home-page "https://renozao.github.io/pkgmaker")
3772 (synopsis "Package development utilities")
3774 "This package provides some low-level utilities to use for R package
3775 development. It currently provides managers for multiple package specific
3776 options and registries, vignette, unit test and bibtex related utilities.")
3777 (license license:gpl2+)))
3779 (define-public r-registry
3786 (uri (cran-uri "registry" version))
3789 "1k3j6dx350awamr0dwwgkhfs46vsnj4nf08iw5byq0x7n3nkdsnz"))))
3790 (build-system r-build-system)
3791 (home-page "https://cran.r-project.org/web/packages/registry")
3792 (synopsis "Infrastructure for R package registries")
3794 "This package provides a generic infrastructure for creating and using R
3795 package registries.")
3796 (license license:gpl2+)))
3798 (define-public r-rngtools
3805 (uri (cran-uri "rngtools" version))
3808 "0kd7x214cqw7hzpmk1iqy1bn7j6x0ady0yz2hsdbclbq9k57d33z"))))
3809 (build-system r-build-system)
3812 (home-page "https://renozao.github.io/rngtools")
3813 (synopsis "Utility functions for working with random number generators")
3815 "This package contains a set of functions for working with Random Number
3816 Generators (RNGs). In particular, it defines a generic S4 framework for
3817 getting/setting the current RNG, or RNG data that are embedded into objects
3818 for reproducibility. Notably, convenient default methods greatly facilitate
3819 the way current RNG settings can be changed.")
3820 (license license:gpl3+)))
3822 (define-public r-rtsne
3829 (uri (cran-uri "Rtsne" version))
3832 "1mgviwrqwapn8w7rq0sjxca5vi7ylgmm876ijwp22a3chbf5m82j"))))
3833 (properties `((upstream-name . "Rtsne")))
3834 (build-system r-build-system)
3837 (home-page "https://github.com/jkrijthe/Rtsne")
3838 (synopsis "T-distributed stochastic neighbor embedding")
3840 "This package provides an R wrapper around the fast T-distributed
3841 Stochastic Neighbor Embedding using a Barnes-Hut implementation.")
3842 ;; The declared license for this package is BSD-3, but it also includes
3843 ;; code licensed under BSD-4.
3844 (license (list license:bsd-3 license:bsd-4))))
3846 (define-public r-e1071
3853 (uri (cran-uri "e1071" version))
3856 "0byr92csnydycdarxdkq4cghddnx5qp6fqxm6wnp9g6aww88xha8"))))
3857 (build-system r-build-system)
3859 (list r-class r-proxy))
3860 (home-page "https://cran.r-project.org/web/packages/e1071")
3861 (synopsis "Miscellaneous functions for probability theory")
3863 "This package provides functions for latent class analysis, short time
3864 Fourier transform, fuzzy clustering, support vector machines, shortest path
3865 computation, bagged clustering, naive Bayes classifier, and more.")
3866 (license license:gpl2+)))
3868 (define-public r-bigmemory-sri
3870 (name "r-bigmemory-sri")
3875 (uri (cran-uri "bigmemory.sri" version))
3877 (base32 "0mg14ilwdkd64q2ri9jdwnk7mp55dqim7xfifrs65sdsv1934h2m"))))
3879 `((upstream-name . "bigmemory.sri")))
3880 (build-system r-build-system)
3881 (home-page "https://cran.r-project.org/web/packages/bigmemory.sri")
3882 (synopsis "Shared resource interface for the bigmemory package")
3883 (description "This package provides a shared resource interface for the
3884 bigmemory and synchronicity packages.")
3885 ;; Users can choose either LGPLv3 or ASL2.0.
3886 (license (list license:lgpl3 license:asl2.0))))
3888 (define-public r-synchronicity
3890 (name "r-synchronicity")
3895 (uri (cran-uri "synchronicity" version))
3898 "1kgsk64aifjm3mfj102y3va7x1abypq2zi0cqbnjhl8fqyzp69hx"))))
3899 (build-system r-build-system)
3901 (list r-bh r-bigmemory-sri r-rcpp r-uuid))
3902 (home-page "http://www.bigmemory.org")
3903 (synopsis "Boost mutex functionality in R")
3904 (description "This package provides support for synchronization
3905 via mutexes and may eventually support interprocess communication and
3907 ;; Users can choose either LGPLv3 or ASL2.0.
3908 (license (list license:lgpl3 license:asl2.0))))
3910 (define-public r-bigmemory
3912 (name "r-bigmemory")
3917 (uri (cran-uri "bigmemory" version))
3920 "0hainqkm7cs8gjm42vkpdrr0284smsbwdfackp34yv7dhxy1avmm"))))
3921 (build-system r-build-system)
3923 (list r-bh r-bigmemory-sri r-rcpp r-uuid))
3925 (list `(,util-linux "lib"))) ;for -luuid
3926 (home-page "http://www.bigmemory.org")
3927 (synopsis "Manage large matrices with shared memory or memory-mapped files")
3928 (description "This package provides methods to create, store, access, and
3929 manipulate large matrices. Matrices are allocated to shared memory and may use
3930 memory-mapped files.")
3931 ;; Users can choose either LGPLv3 or ASL2.0.
3932 (license (list license:lgpl3 license:asl2.0))))
3934 (define-public r-r-methodss3
3936 (name "r-r-methodss3")
3940 (uri (cran-uri "R.methodsS3" version))
3943 "0bkwj9c2cpgb0ibk9znh8qh4k1wzp3bkhaxyhf41xjflv9hmwbc2"))))
3944 (properties `((upstream-name . "R.methodsS3")))
3945 (build-system r-build-system)
3946 (home-page "https://cran.r-project.org/web/packages/R.methodsS3")
3947 (synopsis "S3 methods simplified")
3949 "This package provides methods that simplify the setup of S3 generic
3950 functions and S3 methods. Major effort has been made in making definition of
3951 methods as simple as possible with a minimum of maintenance for package
3952 developers. For example, generic functions are created automatically, if
3953 missing, and naming conflict are automatically solved, if possible. The
3954 method @code{setMethodS3()} is a good start for those who in the future may
3955 want to migrate to S4.")
3956 (license license:lgpl2.1+)))
3958 (define-public r-r-oo
3964 (uri (cran-uri "R.oo" version))
3967 "1vxy8yw4yblb3vgl64yh0b6zf1d51rnc2c23kmyyw629fxhr1cdq"))))
3968 (properties `((upstream-name . "R.oo")))
3969 (build-system r-build-system)
3971 (list r-r-methodss3))
3972 (home-page "https://github.com/HenrikBengtsson/R.oo")
3973 (synopsis "R object-oriented programming with or without references")
3975 "This package provides methods and classes for object-oriented
3976 programming in R with or without references. Large effort has been made on
3977 making definition of methods as simple as possible with a minimum of
3978 maintenance for package developers.")
3979 (license license:lgpl2.1+)))
3981 (define-public r-r-utils
3987 (uri (cran-uri "R.utils" version))
3990 "00v5hpdid6h1yiwpf631xf1dk1z6dcx7dx83qn56a7pa4194bpkl"))))
3991 (properties `((upstream-name . "R.utils")))
3992 (build-system r-build-system)
3994 (list r-r-methodss3 r-r-oo))
3995 (home-page "https://github.com/HenrikBengtsson/R.utils")
3996 (synopsis "Various programming utilities")
3998 "This package provides utility functions useful when programming and
3999 developing R packages.")
4000 (license license:lgpl2.1+)))
4002 (define-public r-r-cache
4008 (uri (cran-uri "R.cache" version))
4011 "14cja0d78mzipb94cwgdl00k5r7awjclzxl30c77j6jpc68l0lvq"))))
4012 (properties `((upstream-name . "R.cache")))
4013 (build-system r-build-system)
4016 (modify-phases %standard-phases
4017 (add-after 'unpack 'set-HOME
4018 (lambda _ (setenv "HOME" "/tmp"))))))
4020 (list r-digest r-r-methodss3 r-r-oo r-r-utils))
4021 (home-page "https://github.com/HenrikBengtsson/R.cache")
4022 (synopsis "Light-weight caching of objects and results")
4024 "This package provides methods for caching or memoization of objects and
4025 results. With this package, any R object can be cached in a key-value storage
4026 where the key can be an arbitrary set of R objects. The cache memory is
4027 persistent (on the file system).")
4028 (license license:lgpl2.1+)))
4030 (define-public r-r-rsp
4036 (uri (cran-uri "R.rsp" version))
4039 "192x8cvna1j0sx37xh3ha8bjjyx39pn5wnxzn5gs3z5j93a4d055"))))
4040 (properties `((upstream-name . "R.rsp")))
4041 (build-system r-build-system)
4044 (modify-phases %standard-phases
4045 (add-after 'unpack 'set-HOME
4046 (lambda _ (setenv "HOME" "/tmp"))))))
4048 (list r-digest r-r-cache r-r-methodss3 r-r-oo r-r-utils))
4049 (home-page "https://github.com/HenrikBengtsson/R.rsp")
4050 (synopsis "Dynamic generation of scientific reports")
4052 "The RSP markup language provides a powerful markup for controlling the
4053 content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr
4054 documents (and more), e.g. @code{Today's date is <%=Sys.Date()%>}. Contrary
4055 to many other literate programming languages, with RSP it is straightforward
4056 to loop over mixtures of code and text sections, e.g. in month-by-month
4057 summaries. RSP has also several preprocessing directives for incorporating
4058 static and dynamic contents of external files (local or online) among other
4059 things. RSP is ideal for self-contained scientific reports and R package
4061 (license license:lgpl2.1+)))
4063 (define-public r-mvtnorm
4069 (uri (cran-uri "mvtnorm" version))
4072 "0j14q2bkc14v35s5k03sw44zsssrd2qjljlwzj014qxs74hk0kpz"))))
4073 (build-system r-build-system)
4076 (home-page "http://mvtnorm.R-forge.R-project.org")
4077 (synopsis "Package for multivariate normal and t-distributions")
4078 (description "This package can compute multivariate normal and
4079 t-probabilities, quantiles, random deviates and densities.")
4080 (license license:gpl2)))
4082 (define-public r-matrixstats
4084 (name "r-matrixstats")
4088 (uri (cran-uri "matrixStats" version))
4091 "1jjfsi5vzx6js7phlnd3v64fd05fg0jyz8iq5pivy36jdmmh3ql5"))))
4092 (properties `((upstream-name . "matrixStats")))
4093 (build-system r-build-system)
4096 (modify-phases %standard-phases
4097 (add-after 'unpack 'set-HOME
4098 (lambda _ (setenv "HOME" "/tmp"))))))
4100 (list r-r-rsp)) ;used to build vignettes
4101 (home-page "https://github.com/HenrikBengtsson/matrixStats")
4102 (synopsis "Methods applying to vectors and matrix rows and columns")
4104 "This package provides methods operating on rows and columns of matrices,
4105 e.g. @code{rowMedians()}, @code{rowRanks()}, and @code{rowSds()}. There are
4106 also some vector-based methods, e.g. @code{binMeans()}, @code{madDiff()} and
4107 @code{weightedMedians()}. All methods have been optimized for speed and
4109 (license license:artistic2.0)))
4111 (define-public r-viridis
4117 (uri (cran-uri "viridis" version))
4120 "048kwhbhd49g86cq11fl7vm0whwhjl5gs9xjn040lwcjv78qrdb9"))))
4121 (build-system r-build-system)
4123 (list r-ggplot2 r-gridextra r-viridislite))
4125 (list r-knitr)) ; for vignettes
4126 (home-page "https://github.com/sjmgarnier/viridis")
4127 (synopsis "Matplotlib default color map")
4129 "This package is a port of the new @url{matplotlib,
4130 http://matplotlib.org/} color maps (@code{viridis}--the default--,
4131 @code{magma}, @code{plasma}, and @code{inferno}) to R. These color maps are
4132 designed in such a way that they will analytically be perfectly
4133 perceptually-uniform, both in regular form and also when converted to
4134 black-and-white. They are also designed to be perceived by readers with the
4135 most common form of color blindness.")
4136 (license license:x11)))
4138 (define-public r-viridislite
4140 (name "r-viridislite")
4145 (uri (cran-uri "viridisLite" version))
4148 "15zaf2c7kzjf3i0g7y8w6jlgfkpprqj2zl346y5imz75r8fdp5m8"))))
4149 (properties `((upstream-name . "viridisLite")))
4150 (build-system r-build-system)
4151 (home-page "https://github.com/sjmgarnier/viridisLite")
4152 (synopsis "Default color maps from matplotlib")
4154 "This package is a port of the new @code{matplotlib} color maps
4155 (@code{viridis}, @code{magma}, @code{plasma} and @code{inferno}) to R.
4156 matplotlib is a popular plotting library for Python. These color maps are
4157 designed in such a way that they will analytically be perfectly
4158 perceptually-uniform, both in regular form and also when converted to
4159 black-and-white. They are also designed to be perceived by readers with the
4160 most common form of color blindness. This is the @code{lite} version of the
4161 more complete @code{viridis} package.")
4162 (license license:expat)))
4164 (define-public r-tidyselect
4166 (name "r-tidyselect")
4171 (uri (cran-uri "tidyselect" version))
4174 "0w423pmg9wjx6q2rnp2ap66323rxvpmzd4nnsqq4m58pajqs7283"))))
4175 (build-system r-build-system)
4177 (list r-ellipsis r-glue r-purrr r-rlang r-vctrs))
4180 (home-page "https://cran.r-project.org/web/packages/tidyselect")
4181 (synopsis "Select from a set of strings")
4183 "This package provides a backend for the selecting functions of the
4184 tidyverse. It makes it easy to implement select-like functions in your own
4185 packages in a way that is consistent with other tidyverse interfaces for
4187 (license license:gpl3)))
4189 (define-public r-tidyr
4196 (uri (cran-uri "tidyr" version))
4199 "1bv1rvnbbfdqf78qfbawq3yxjhjfdy0mgcla6b17bp336rnpcwb9"))))
4200 (build-system r-build-system)
4215 (home-page "https://github.com/hadley/tidyr")
4216 (synopsis "Tidy data with `spread()` and `gather()` functions")
4218 "tidyr is a reframing of the reshape2 package designed to accompany the
4219 tidy data framework, and to work hand-in-hand with magrittr and dplyr to build
4220 a solid pipeline for data analysis. It is designed specifically for tidying
4221 data, not the general reshaping that reshape2 does, or the general aggregation
4222 that reshape did. In particular, built-in methods only work for data frames,
4223 and tidyr provides no margins or aggregation.")
4224 (license license:expat)))
4226 (define-public r-hexbin
4233 (uri (cran-uri "hexbin" version))
4236 "0bbhs5pwxh474w62sq6gqvih7habancxng9wd4f2rgn6lv9zhhb2"))))
4237 (build-system r-build-system)
4241 (list gfortran r-knitr)) ; for vignettes
4242 (home-page "https://github.com/edzer/hexbin")
4243 (synopsis "Hexagonal binning routines")
4245 "This package provides binning and plotting functions for hexagonal bins.
4246 It uses and relies on grid graphics and formal (S4) classes and methods.")
4247 (license license:gpl2+)))
4249 (define-public r-purrr
4256 (uri (cran-uri "purrr" version))
4259 "1cj091rsjdj2xz16qhynyw72gh5cyhznifcfbrbygndfr4xwksr3"))))
4260 (build-system r-build-system)
4262 (list r-magrittr r-rlang))
4265 (home-page "https://github.com/hadley/purrr")
4266 (synopsis "Functional programming tools")
4268 "This package completes R's functional programming tools with missing
4269 features present in other programming languages.")
4270 (license license:gpl3+)))
4272 (define-public r-plotly
4278 (uri (cran-uri "plotly" version))
4281 "16iqj7sv49mva6siibsci7iijsbnk7pqvfns9al0k35w9mjmr6dx"))))
4282 (build-system r-build-system)
4305 (home-page "https://plot.ly/r")
4306 (synopsis "Create interactive web graphics")
4308 "This package enables the translation of ggplot2 graphs to an interactive
4309 web-based version and/or the creation of custom web-based visualizations
4310 directly from R. Once uploaded to a plotly account, plotly graphs (and the
4311 data behind them) can be viewed and modified in a web browser.")
4312 (license license:x11)))
4314 (define-public r-biased-urn
4316 (name "r-biased-urn")
4321 (uri (cran-uri "BiasedUrn" version))
4324 "13i2lgfnjhlbbm2yxfc2l5hswqw6x03pwba5csjmirv8kpjw4xr3"))))
4325 (properties `((upstream-name . "BiasedUrn")))
4326 (build-system r-build-system)
4327 (home-page "https://www.agner.org/random/")
4328 (synopsis "Biased urn model distributions")
4330 "This package provides statistical models of biased sampling in the form
4331 of univariate and multivariate noncentral hypergeometric distributions,
4332 including Wallenius' noncentral hypergeometric distribution and Fisher's
4333 noncentral hypergeometric distribution (also called extended hypergeometric
4335 (license license:gpl3+)))
4337 (define-public r-rematch
4344 (uri (cran-uri "rematch" version))
4347 "0y3mshvpvz9csmq8hk8jbabx4nxlv5sckvfzvm6920ndg34xw2d4"))))
4348 (build-system r-build-system)
4349 (home-page "https://github.com/MangoTheCat/rematch")
4350 (synopsis "Match regular expressions with a nicer API")
4352 "This package provides a small wrapper on @code{regexpr} to extract the
4353 matches and captured groups from the match of a regular expression to a
4355 (license license:expat)))
4357 (define-public r-cellranger
4359 (name "r-cellranger")
4364 (uri (cran-uri "cellranger" version))
4367 "16fgi3annn34c3cxi0pxf62mmmmxi21hp0zzlv7bkfsjqy4g4f2x"))))
4368 (build-system r-build-system)
4370 (list r-rematch r-tibble))
4371 (home-page "https://github.com/rsheets/cellranger")
4372 (synopsis "Translate spreadsheet cell ranges to rows and columns")
4374 "This package provides helper functions to work with spreadsheets and the
4375 @code{A1:D10} style of cell range specification.")
4376 (license license:expat)))
4378 (define-public r-googlesheets
4380 (name "r-googlesheets")
4385 (uri (cran-uri "googlesheets" version))
4388 "11q07nxys72wkxx9mawmjyf20gvwvrb7h3gpa73h6lgh2vgrwnv8"))))
4389 (build-system r-build-system)
4401 (home-page "https://github.com/jennybc/googlesheets")
4402 (synopsis "Manage Google spreadsheets from R")
4403 (description "This package provides tools to interact with Google Sheets
4405 (license license:expat)))
4407 (define-public r-spams
4410 (version "2.6-2017-03-22")
4414 ;; Use the ‘Latest version’ link for a stable URI across releases.
4415 (uri (string-append "https://gforge.inria.fr/frs/download.php/"
4416 "latestfile/4531/spams-R-v" version ".tar.gz"))
4419 "13z2293jixf1r9g8dyy856xrhvpjr2ln2n9smn6644126r9hmhkx"))))
4420 (build-system r-build-system)
4423 (modify-phases %standard-phases
4424 (add-after 'unpack 'chdir
4425 (lambda _ (chdir "spams") #t))
4426 ;; Don't tune for the building machine.
4427 (add-after 'chdir 'no-mtune
4429 (substitute* "src/Makevars"
4430 (("-mtune=native") ""))
4433 (list r-lattice r-matrix))
4434 (home-page "https://spams-devel.gforge.inria.fr")
4435 (synopsis "Toolbox for solving sparse estimation problems")
4436 (description "SPAMS (SPArse Modeling Software) is an optimization toolbox
4437 for solving various sparse estimation problems. It includes tools for the
4441 @item Dictionary learning and matrix factorization (NMF, sparse @dfn{principle
4442 component analysis} (PCA), ...)
4443 @item Solving sparse decomposition problems with LARS, coordinate descent,
4444 OMP, SOMP, proximal methods
4445 @item Solving structured sparse decomposition problems (l1/l2, l1/linf, sparse
4446 group lasso, tree-structured regularization, structured sparsity with
4447 overlapping groups,...).
4449 (license license:gpl3+)))
4451 (define-public r-base64
4458 (uri (cran-uri "base64" version))
4461 "1w9m4n29xmj7px8fbmha04vq146bxfqi7ipj1ag09hlm05y6h8jd"))))
4462 (build-system r-build-system)
4465 (home-page "https://cran.r-project.org/web/packages/base64")
4466 (synopsis "Base64 encoder and decoder")
4468 "This package is a compatibility wrapper to replace the orphaned package
4469 by Romain Francois. New applications should use the openssl or base64enc
4471 (license license:expat)))
4473 (define-public r-hmisc
4480 (uri (cran-uri "Hmisc" version))
4482 (base32 "0zrfi2mmi6wfl6440iqflzzmkina8dhxia2qsamqw6djd0d5fp9j"))))
4483 (properties `((upstream-name . "Hmisc")))
4484 (build-system r-build-system)
4504 (home-page "http://biostat.mc.vanderbilt.edu/Hmisc")
4505 (synopsis "Miscellaneous data analysis and graphics functions")
4507 "This package contains many functions useful for data analysis,
4508 high-level graphics, utility operations, functions for computing sample size
4509 and power, importing and annotating datasets, imputing missing values,
4510 advanced table making, variable clustering, character string manipulation,
4511 conversion of R objects to LaTeX code, and recoding variables.")
4512 (license license:gpl2+)))
4514 (define-public r-runit
4521 (uri (cran-uri "RUnit" version))
4524 "1wc1gwb7yw7phf8b0gkig6c23klya3ax11c6i4s0f049k42r78r3"))))
4525 (properties `((upstream-name . "RUnit")))
4526 (build-system r-build-system)
4527 (home-page "https://cran.r-project.org/web/packages/RUnit")
4528 (synopsis "R unit test framework")
4530 "This package provides R functions implementing a standard unit testing
4531 framework, with additional code inspection and report generation tools.")
4532 (license license:gpl2+)))
4534 (define-public r-dynamictreecut
4536 (name "r-dynamictreecut")
4541 (uri (cran-uri "dynamicTreeCut" version))
4544 "1fadbql7g5r2vvlkr89nlrjxwp4yx4xrdqmv077qvmnx9vv0f4w3"))))
4545 (properties `((upstream-name . "dynamicTreeCut")))
4546 (build-system r-build-system)
4548 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/BranchCutting/")
4549 (synopsis "Detect clusters in hierarchical clustering dendrograms")
4551 "This package contains methods for the detection of clusters in
4552 hierarchical clustering dendrograms.")
4553 (license license:gpl2+)))
4555 (define-public r-fastcluster
4557 (name "r-fastcluster")
4562 (uri (cran-uri "fastcluster" version))
4565 "009amz7i5yndqw2008fgd3p11n4fsb291k2ypg3pip6dw4lr28hz"))))
4566 (build-system r-build-system)
4567 (home-page "http://danifold.net/fastcluster.html")
4568 (synopsis "Fast hierarchical clustering routines")
4570 "This package implements fast hierarchical, agglomerative clustering
4571 routines. Part of the functionality is designed as drop-in replacement for
4572 existing routines: @code{linkage()} in the SciPy package
4573 @code{scipy.cluster.hierarchy}, @code{hclust()} in R's @code{stats} package,
4574 and the @code{flashClust} package. It provides the same functionality with
4575 the benefit of a much faster implementation. Moreover, there are
4576 memory-saving routines for clustering of vector data, which go beyond what the
4577 existing packages provide.")
4578 (license license:bsd-2)))
4580 (define-public r-sfsmisc
4587 (uri (cran-uri "sfsmisc" version))
4590 "0622yf4fl1b1zm988dfwdrhq7pg0rllhm8wz1pqdmp72glsi05x8"))))
4591 (build-system r-build-system)
4592 (home-page "https://cran.r-project.org/web/packages/sfsmisc")
4593 (synopsis "Utilities from \"Seminar fuer Statistik\" ETH Zurich")
4595 "This package provides useful utilities from Seminar fuer Statistik ETH
4596 Zurich, including many that are related to graphics.")
4597 (license license:gpl2+)))
4599 (define-public r-gtools
4606 (uri (cran-uri "gtools" version))
4609 "0criwc0jmbrgaslh2kdjirgdzbf0ycry8yjryi95fb9qgckm7yvs"))))
4610 (build-system r-build-system)
4611 (home-page "https://cran.r-project.org/web/packages/gtools")
4612 (synopsis "Various R programming tools")
4614 "This package contains a collection of various functions to assist in R
4615 programming, such as tools to assist in developing, updating, and maintaining
4616 R and R packages, calculating the logit and inverse logit transformations,
4617 tests for whether a value is missing, empty or contains only @code{NA} and
4618 @code{NULL} values, and many more.")
4619 (license license:gpl2)))
4621 (define-public r-gdata
4624 (version "2.18.0.1")
4628 (uri (cran-uri "gdata" version))
4631 "1n9jw136kk5ld27qvny7cx2s8l34jdgmzlx40x62mmcqjddksbsy"))))
4632 (build-system r-build-system)
4637 (home-page "https://cran.r-project.org/web/packages/gdata")
4638 (synopsis "Various R programming tools for data manipulation")
4640 "This package provides various R programming tools for data manipulation,
4644 @item medical unit conversions
4645 @item combining objects
4646 @item character vector operations
4647 @item factor manipulation
4648 @item obtaining information about R objects
4649 @item manipulating MS-Excel formatted files
4650 @item generating fixed-width format files
4651 @item extricating components of date and time objects
4652 @item operations on columns of data frames
4653 @item matrix operations
4654 @item operations on vectors and data frames
4655 @item value of last evaluated expression
4656 @item wrapper for @code{sample} that ensures consistent behavior for
4657 both scalar and vector arguments
4659 (license license:gpl2+)))
4661 (define-public r-gplots
4668 (uri (cran-uri "gplots" version))
4671 "05k7a8x62qs5g6mps62vb3mwjdnfjzvjb20yws3x0r2j42g3p1cz"))))
4672 (build-system r-build-system)
4674 (list r-catools r-gtools r-kernsmooth))
4677 (home-page "https://cran.r-project.org/web/packages/gplots")
4678 (synopsis "Various R programming tools for plotting data")
4680 "This package provides various R programming tools for plotting data,
4684 @item calculating and plotting locally smoothed summary function
4685 @item enhanced versions of standard plots
4686 @item manipulating colors
4687 @item calculating and plotting two-dimensional data summaries
4688 @item enhanced regression diagnostic plots
4689 @item formula-enabled interface to @code{stats::lowess} function
4690 @item displaying textual data in plots
4692 @item plotting \"Venn\" diagrams
4693 @item displaying Open-Office style plots
4694 @item plotting multiple data on same region, with separate axes
4695 @item plotting means and confidence intervals
4696 @item spacing points in an x-y plot so they don't overlap
4698 (license license:gpl2+)))
4700 (define-public r-rocr
4707 (uri (cran-uri "ROCR" version))
4710 "0amvvrkiflmr3qygrsgrsja4gaf2v6r6h6i2bgpsm8r069vmlf2p"))))
4711 (properties `((upstream-name . "ROCR")))
4712 (build-system r-build-system)
4717 (home-page "https://rocr.bioinf.mpi-sb.mpg.de/")
4718 (synopsis "Visualizing the performance of scoring classifiers")
4720 "ROCR is a flexible tool for creating cutoff-parameterized 2D performance
4721 curves by freely combining two from over 25 performance measures (new
4722 performance measures can be added using a standard interface). Curves from
4723 different cross-validation or bootstrapping runs can be averaged by different
4724 methods, and standard deviations, standard errors or box plots can be used to
4725 visualize the variability across the runs. The parameterization can be
4726 visualized by printing cutoff values at the corresponding curve positions, or
4727 by coloring the curve according to cutoff. All components of a performance
4728 plot can be quickly adjusted using a flexible parameter dispatching
4730 (license license:gpl2+)))
4732 (define-public r-ztable
4738 (uri (cran-uri "ztable" version))
4741 "1ps7ix0hc84s0p0ra6bkjxky3cffs1rvdcagqzj78lbdq22dk5j8"))))
4742 (build-system r-build-system)
4753 (home-page "https://cran.r-project.org/web/packages/ztable")
4754 (synopsis "Zebra-striped tables in LaTeX and HTML formats for R")
4756 "This package provides functions to make zebra-striped tables (tables
4757 with alternating row colors) in LaTeX and HTML formats easily from
4758 @code{data.frame}, @code{matrix}, @code{lm}, @code{aov}, @code{anova},
4759 @code{glm}, @code{coxph}, @code{nls}, @code{fitdistr}, @code{mytable} and
4760 @code{cbind.mytable} objects.")
4761 (license license:gpl2+)))
4763 (define-public r-vipor
4769 (uri (cran-uri "vipor" version))
4772 "112gc0d7f8iavgf56pnzfxb7hy75yhd0zlyjzshdcfbnqcd2a6bx"))))
4773 (build-system r-build-system)
4774 (home-page "https://cran.r-project.org/web/packages/vipor")
4775 (synopsis "Plot categorical data using noise and density estimates")
4777 "This package provides tools to generate a violin point plot, a
4778 combination of a violin/histogram plot and a scatter plot by offsetting points
4779 within a category based on their density using quasirandom noise.")
4780 (license license:gpl2+)))
4782 (define-public r-beeswarm
4788 (uri (cran-uri "beeswarm" version))
4791 "016mqcbdksialkmap56rprzna9b6cd6896ml9gl2n2h8yjdk7x2i"))))
4792 (build-system r-build-system)
4793 (home-page "https://www.cbs.dtu.dk/~eklund/beeswarm/")
4794 (synopsis "Implementation of bee swarm plots")
4796 "This package provides an implementation of bee swarm plots. The bee
4797 swarm plot is a one-dimensional scatter plot like stripchart, but with
4798 closely-packed, non-overlapping points.")
4799 (license license:artistic2.0)))
4801 (define-public r-sourcetools
4803 (name "r-sourcetools")
4808 (uri (cran-uri "sourcetools" version))
4811 "1jnjir0q2dj724f1mjm6p5h77yzyx6xcqy9r2g7gmcxkxw349627"))))
4812 (build-system r-build-system)
4813 (home-page "https://cran.r-project.org/web/packages/sourcetools")
4814 (synopsis "Tools for reading, tokenizing and parsing R code")
4816 "The sourcetools package provides both an R and C++ interface for the
4817 tokenization of R code, and helpers for interacting with the tokenized
4818 representation of R code.")
4819 (license license:expat)))
4821 (define-public r-ggbeeswarm
4823 (name "r-ggbeeswarm")
4827 (uri (cran-uri "ggbeeswarm" version))
4830 "0crk29p5vi1r3a988kms4y7r0iqwgwzsikgvh18r9wbzyr98bb5v"))))
4831 (build-system r-build-system)
4833 (list r-beeswarm r-ggplot2 r-vipor))
4834 (home-page "https://github.com/eclarke/ggbeeswarm")
4835 (synopsis "Categorical scatter (violin point) plots")
4837 "This package provides two methods of plotting categorical scatter plots
4838 such that the arrangement of points within a category reflects the density of
4839 data at that region, and avoids over-plotting.")
4840 (license license:gpl2+)))
4842 (define-public r-ggthemes
4848 (uri (cran-uri "ggthemes" version))
4851 "0rw5f6axyz1pqn6qx9jwm38hjzn8bqs1nfjkvm96z3xnyn61cdbv"))))
4852 (build-system r-build-system)
4854 (list r-ggplot2 r-purrr r-scales r-stringr r-tibble))
4855 (home-page "https://cran.rstudio.com/web/packages/ggthemes")
4856 (synopsis "Extra themes, scales and geoms for @code{ggplot2}")
4857 (description "This package provides extra themes and scales for
4858 @code{ggplot2} that replicate the look of plots by Edward Tufte and
4859 Stephen Few in Fivethirtyeight, The Economist, Stata, Excel, and The
4860 Wall Street Journal, among others. This package also provides
4861 @code{geoms} for Tufte's box plot and range frame.")
4862 (license license:gpl2)))
4864 (define-public r-statmod
4870 (uri (cran-uri "statmod" version))
4873 "04v9nynv3lakhnd7b17v5syrlnscrxml71jnd3r93chckskwillh"))))
4874 (build-system r-build-system)
4875 (home-page "https://cran.r-project.org/web/packages/statmod")
4878 (synopsis "Statistical modeling")
4880 "This package provides a collection of algorithms and functions to aid
4881 statistical modeling. It includes growth curve comparisons, limiting dilution
4882 analysis (aka ELDA), mixed linear models, heteroscedastic regression,
4883 inverse-Gaussian probability calculations, Gauss quadrature and a secure
4884 convergence algorithm for nonlinear models. It also includes advanced
4885 generalized linear model functions that implement secure convergence,
4886 dispersion modeling and Tweedie power-law families.")
4887 ;; Statmod is distributed under either license
4888 (license (list license:gpl2 license:gpl3))))
4890 (define-public r-rann
4896 (uri (cran-uri "RANN" version))
4899 "10kid40w9w7vkz2hpcfkdpxr4afxzms5dzvfwr0sl5xynzgw76dj"))))
4901 `((upstream-name . "RANN")))
4902 (build-system r-build-system)
4903 (home-page "https://github.com/jefferis/RANN")
4904 (synopsis "Fast nearest neighbour search")
4906 "This package finds the k nearest neighbours for every point in a given
4907 dataset in O(N log N) time using Arya and Mount's ANN library. Provides
4908 approximate, exact searches, fixed radius searches, bd and kb trees.")
4909 (license license:gpl3+)))
4911 (define-public r-fivethirtyeight
4913 (name "r-fivethirtyeight")
4918 (uri (string-append "https://mran.microsoft.com/src/contrib/"
4919 "fivethirtyeight_" version ".tar.gz"))
4922 "0fcc8rq745nsghp27dk0lgih90y4zx8hrzcvsn6ih786yv7qxhvl"))))
4923 (build-system r-build-system)
4932 (home-page "https://mran.microsoft.com/package/fivethirtyeight/")
4933 (synopsis "Data and code behind the stories at FiveThirtyEight")
4934 (description "This R package provides access to the code and data sets
4935 published by the statistics blog FiveThirtyEight.")
4936 (license license:expat)))
4938 (define-public r-compquadform
4940 (name "r-compquadform")
4945 (uri (cran-uri "CompQuadForm" version))
4948 "1i30hrqdk64q17vsn918c3q79brchgx2wzh1gbsgbn0dh1ncabq4"))))
4949 (properties `((upstream-name . "CompQuadForm")))
4950 (build-system r-build-system)
4951 (home-page "https://cran.r-project.org/web/packages/CompQuadForm")
4952 (synopsis "Distribution function of quadratic forms in normal variables")
4954 "This package provides functions to compute the distribution function of
4955 quadratic forms in normal variables using Imhof's method, Davies's algorithm,
4956 Farebrother's algorithm or Liu et al.'s algorithm.")
4957 (license license:gpl2+)))
4959 (define-public r-cowplot
4966 (uri (cran-uri "cowplot" version))
4969 "0j7d5vhzdxn1blrsfafx5z8lhq122rp8230hp9czrpsnnhjydp67"))))
4970 (build-system r-build-system)
4972 (list r-ggplot2 r-gtable r-rlang r-scales))
4975 (home-page "https://github.com/wilkelab/cowplot")
4976 (synopsis "Streamlined plot theme and plot annotations for ggplot2")
4978 "This package provides some helpful extensions and modifications to the
4979 ggplot2 package to combine multiple ggplot2 plots into one and label them with
4980 letters, as is often required for scientific publications.")
4981 (license license:gpl2)))
4983 (define-public r-mixtools
4990 (uri (cran-uri "mixtools" version))
4993 "08whic8hmmzi55b7azwj11l2x5r9s5qbyrv7s9jr08156vqkw0zg"))))
4994 (build-system r-build-system)
4996 (list r-mass r-kernlab r-segmented r-survival))
4997 (home-page "https://cran.r-project.org/web/packages/mixtools")
4998 (synopsis "Tools for analyzing finite mixture models")
5000 "This package provides a collection of R functions for analyzing finite
5002 (license license:gpl2+)))
5004 (define-public r-lars
5011 (uri (cran-uri "lars" version))
5014 "17al1g0pvfz9frs2kxicqr8dyp7ciz3x87yx2l4lqd53ls6nm7n6"))))
5015 (build-system r-build-system)
5018 (home-page "https://web.stanford.edu/~hastie/Papers/LARS/")
5019 (synopsis "Least angle regression software")
5021 "Least Angle Regression (\"LAR\") is a model selection algorithm; a
5022 useful and less greedy version of traditional forward selection methods. A
5023 simple modification of the LAR algorithm implements Tibshirani's Lasso; the
5024 Lasso modification of LARS calculates the entire Lasso path of coefficients
5025 for a given problem at the cost of a single least squares fit. Another LARS
5026 modification efficiently implements epsilon Forward Stagewise linear
5028 (license license:gpl2)))
5030 (define-public r-fastica
5037 (uri (cran-uri "fastICA" version))
5040 "0l49cmxm1n4dzrv8q3q3mq4drcjgby4f1dmpwfdb8jxn9ij85vz9"))))
5041 (properties `((upstream-name . "fastICA")))
5042 (build-system r-build-system)
5043 (home-page "https://cran.r-project.org/web/packages/fastICA")
5044 (synopsis "FastICA algorithms to perform ICA and projection pursuit")
5046 "This package provides an implementation of the FastICA algorithm to
5047 perform @dfn{independent component analysis} (ICA) and projection pursuit.")
5049 (license license:gpl3+)))
5051 (define-public r-randomforest
5053 (name "r-randomforest")
5058 (uri (cran-uri "randomForest" version))
5061 "1micz9794j7xmj755ln2692rzip8azndflxgdg6xn3j86issi7pm"))))
5062 (properties `((upstream-name . "randomForest")))
5063 (build-system r-build-system)
5064 (home-page "https://www.stat.berkeley.edu/~breiman/RandomForests/")
5067 (synopsis "Breiman and Cutler's random forests for classification and regression")
5069 "This package provides the Breiman and Cutler's random forests algorithm, based on a
5070 forest of trees using random inputs, for classification and regression.")
5071 (license license:gpl2+)))
5073 (define-public r-diptest
5080 (uri (cran-uri "diptest" version))
5083 "10629vwn6r2949jjrmj5slbb5v0vnm3w0v8mrl7ws68m2sxmx2jh"))))
5084 (build-system r-build-system)
5085 (home-page "https://cran.r-project.org/web/packages/diptest")
5086 (synopsis "Hartigan's dip test statistic for unimodality")
5088 "This package computes Hartigan's dip test statistic for unimodality,
5089 multimodality and provides a test with simulation based p-values, where the
5090 original public code has been corrected.")
5091 (license license:gpl2+)))
5093 (define-public r-modeltools
5095 (name "r-modeltools")
5100 (uri (cran-uri "modeltools" version))
5103 "1vqh69256h344sbj5affm0kmc77dakrxp6442xfdnfd0y5d8sgkb"))))
5104 (build-system r-build-system)
5105 (home-page "https://cran.r-project.org/web/packages/modeltools")
5106 (synopsis "Tools and classes for statistical models")
5108 "This package provides a collection of tools to deal with statistical
5109 models. The functionality is experimental and the user interface is likely
5110 to change in the future.")
5111 (license license:gpl2)))
5113 (define-public r-flexmix
5120 (uri (cran-uri "flexmix" version))
5123 "0lcvsvmhkbwac50l109an6prl1ng4mkyvr436344b20897ph28j6"))))
5124 (build-system r-build-system)
5126 (list r-lattice r-modeltools r-nnet))
5127 (home-page "https://cran.r-project.org/web/packages/flexmix")
5128 (synopsis "Flexible mixture modeling")
5130 "This package implements a general framework for finite mixtures of
5131 regression models using the EM algorithm. FlexMix provides the E-step and
5132 all data handling, while the M-step can be supplied by the user to easily
5133 define new models. Existing drivers implement mixtures of standard linear
5134 models, generalized linear models and model-based clustering.")
5135 (license license:gpl2+)))
5137 (define-public r-mclust
5144 (uri (cran-uri "mclust" version))
5147 "0wh6nsbma4b0wsmqm2ynbznl2wlwdly4vg583f6z0zd1qkrvn6ra"))))
5148 (build-system r-build-system)
5150 (list gfortran r-knitr))
5151 (home-page "https://www.stat.washington.edu/mclust/")
5152 (synopsis "Gaussian mixture modelling for model-based clustering etc.")
5154 "This package provides Gaussian finite mixture models fitted via EM
5155 algorithm for model-based clustering, classification, and density estimation,
5156 including Bayesian regularization, dimension reduction for visualisation,
5157 and resampling-based inference.")
5158 (license license:gpl2+)))
5160 (define-public r-prabclus
5167 (uri (cran-uri "prabclus" version))
5170 "0hg4d7y1w18jpgvw10z8833bbbcnlkwiasx0wh6iwa2pnnybq8gl"))))
5171 (build-system r-build-system)
5173 (list r-mass r-mclust))
5174 (home-page "https://cran.r-project.org/web/packages/prabclus")
5175 (synopsis "Parametric bootstrap tests for spatial neighborhood clustering")
5177 "This package provides distance-based parametric bootstrap tests for
5178 clustering with spatial neighborhood information. It implements some distance
5179 measures, clustering of presence-absence, abundance and multilocus genetical
5180 data for species delimitation, nearest neighbor based noise detection.")
5181 (license license:gpl2+)))
5183 (define-public r-deoptimr
5190 (uri (cran-uri "DEoptimR" version))
5193 "0nqn12n5qlyk2zsgh57dvizy5z71xgqrhrcqj6lbzybm9c7v6x0q"))))
5194 (properties `((upstream-name . "DEoptimR")))
5195 (build-system r-build-system)
5196 (home-page "https://cran.r-project.org/web/packages/DEoptimR")
5197 (synopsis "Differential evolution optimization in pure R")
5199 "This package provides a differential evolution (DE) stochastic
5200 algorithms for global optimization of problems with and without constraints.
5201 The aim is to curate a collection of its state-of-the-art variants that (1) do
5202 not sacrifice simplicity of design, (2) are essentially tuning-free, and (3)
5203 can be efficiently implemented directly in the R language.")
5204 (license license:gpl2+)))
5206 (define-public r-robustbase
5208 (name "r-robustbase")
5213 (uri (cran-uri "robustbase" version))
5216 "094pxwp78bmqyn6vncyzrazqxnn8abqsbzhlcq44avfz8qffmyjw"))))
5217 (build-system r-build-system)
5222 (home-page "http://robustbase.r-forge.r-project.org/")
5223 (synopsis "Basic robust statistics")
5225 "This package analyzes data with robust methods such as
5226 regression methodology including model selections and multivariate statistics.")
5227 (license license:gpl2+)))
5229 (define-public r-pcapp
5236 (uri (cran-uri "pcaPP" version))
5239 "0jxm1cl48bzfi0s0f2b0y0r5nq7x0iypgkasa3v5myhb9sbnd2x1"))))
5240 (properties `((upstream-name . "pcaPP")))
5241 (build-system r-build-system)
5244 (home-page "https://cran.r-project.org/web/packages/pcaPP")
5245 (synopsis "Robust PCA by projection pursuit")
5247 "This package provides functions for robust @dfn{principal component
5248 analysis} (PCA) by projection pursuit.")
5249 (license license:gpl3+)))
5251 (define-public r-rrcov
5258 (uri (cran-uri "rrcov" version))
5261 "1rd4r4acgpr25x2iy7v2mnahmmf76a378zq16gnpwv5ljycs05g1"))))
5262 (build-system r-build-system)
5264 (list r-lattice r-mvtnorm r-pcapp r-robustbase))
5267 (home-page "https://cran.r-project.org/web/packages/rrcov")
5268 (synopsis "Scalable robust estimators with high breakdown Point")
5270 "This package provides an implementation of robust location and scatter
5271 estimation and robust multivariate analysis with high breakdown point.")
5272 (license license:gpl2+)))
5274 (define-public r-fit-models
5276 (name "r-fit-models")
5281 (uri (cran-uri "fit.models" version))
5284 "1nk4x2q8cv79zcls61saf627ac0fci6jcrd6lmzk61asm2zhc27p"))))
5285 (properties `((upstream-name . "fit.models")))
5286 (build-system r-build-system)
5289 (home-page "https://cran.r-project.org/web/packages/fit.models")
5290 (synopsis "Compare fitted models")
5292 "The @code{fit.models} function and its associated methods (coefficients, print,
5293 summary, plot, etc.) were originally provided in the @code{robust} package to
5294 compare robustly and classically fitted model objects. The aim of the
5295 @code{fit.models} package is to separate this fitted model object comparison
5296 functionality from the robust package and to extend it to support fitting
5297 methods (e.g., classical, robust, Bayesian, regularized, etc.) more
5299 ;; Any version of the GPL
5300 (license (list license:gpl2+ license:gpl3+))))
5302 (define-public r-robust
5309 (uri (cran-uri "robust" version))
5312 "1pv5xvns3p8dpaadf6v0fqz099ml768ahgp271wpiclrcc6cgapg"))))
5313 (build-system r-build-system)
5315 (list r-fit-models r-lattice r-mass r-robustbase r-rrcov))
5318 (home-page "https://cran.r-project.org/web/packages/robust")
5319 (synopsis "Port of the S+ \"Robust Library\"")
5321 "This package is a port of the S+ \"Robust Library\". It provides
5322 methods for robust statistics, notably for robust regression and robust
5323 multivariate analysis.")
5324 (license license:gpl2)))
5326 (define-public r-trimcluster
5328 (name "r-trimcluster")
5333 (uri (cran-uri "trimcluster" version))
5336 "12siv8yx8dcavsz8jk96lwscbj257ar8jpaxksl2zb06987g4fcj"))))
5337 (build-system r-build-system)
5338 (home-page "https://cran.r-project.org/web/packages/trimcluster")
5339 (synopsis "Cluster analysis with trimming")
5341 "The trimmed k-means clustering method by Cuesta-Albertos, Gordaliza and
5342 Matran (1997). This optimizes the k-means criterion under trimming a portion
5345 (license (list license:gpl2+ license:gpl3+))))
5347 (define-public r-fpc
5354 (uri (cran-uri "fpc" version))
5357 "0f7sfmpcycr9y7cy5gasyjm2ardxa62kglqms92mcr68jrp01c19"))))
5358 (build-system r-build-system)
5369 (home-page "https://cran.r-project.org/web/packages/fpc")
5370 (synopsis "Flexible procedures for clustering")
5372 "This package provides various methods for clustering and cluster validation.
5373 For example, it provides fixed point clustering, linear regression clustering,
5374 clustering by merging Gaussian mixture components, as well as symmetric and
5375 asymmetric discriminant projections for visualisation of the separation of
5377 (license license:gpl2+)))
5379 (define-public r-vgam
5386 (uri (cran-uri "VGAM" version))
5388 (base32 "0zkmj7crkkvi7ki88f6vfn7x8gf0ycrbg13wann7wirj4cwjvid4"))))
5389 (properties `((upstream-name . "VGAM")))
5390 (build-system r-build-system)
5393 (home-page "https://www.stat.auckland.ac.nz/~yee/VGAM")
5394 (synopsis "Vector generalized linear and additive models")
5396 "This package is an implementation of about 6 major classes of statistical
5397 regression models. Currently only fixed-effects models are implemented, i.e.,
5398 no random-effects models. Many (150+) models and distributions are estimated
5399 by maximum likelihood estimation (MLE) or penalized MLE, using Fisher scoring.
5400 VGLMs can be loosely thought of as multivariate generalised linear models.")
5401 (license license:gpl2+)))
5403 (define-public r-pbapply
5410 (uri (cran-uri "pbapply" version))
5413 "0m8a0ygwl98cs0vcha5gs9f7z8whcplwxhravhs9bfp5hvigxzgg"))))
5414 (build-system r-build-system)
5415 (home-page "https://github.com/psolymos/pbapply")
5416 (synopsis "Adding progress bar to apply functions")
5418 "This lightweight package that adds progress bar to vectorized R
5419 functions apply. The implementation can easily be added to functions where
5420 showing the progress is useful e.g. bootstrap.")
5421 (license license:gpl2)))
5423 (define-public r-minqa
5430 (uri (cran-uri "minqa" version))
5433 "036drja6xz7awja9iwb76x91415p26fb0jmg7y7v0p65m6j978fg"))))
5434 (build-system r-build-system)
5439 (home-page "http://optimizer.r-forge.r-project.org")
5440 (synopsis "Derivative-free optimization algorithms by quadratic approximation")
5442 "This package provides a derivative-free optimization by quadratic approximation
5443 based on an interface to Fortran implementations by M. J. D. Powell.")
5444 (license license:gpl2)))
5446 (define-public r-rcppeigen
5448 (name "r-rcppeigen")
5449 (version "0.3.3.9.2")
5453 (uri (cran-uri "RcppEigen" version))
5456 "14ylrq7mmylmi513zkwyqqy43kqbz95fc6fzpagqvyx6snaffir5"))))
5457 (properties `((upstream-name . "RcppEigen")))
5458 (build-system r-build-system)
5460 (list r-rcpp r-matrix))
5461 (home-page "http://eigen.tuxfamily.org")
5462 (synopsis "Rcpp integration for the Eigen templated linear algebra library")
5464 "This package provides an integration of Eigen in R using a C++ template
5465 library for linear algebra: matrices, vectors, numerical solvers and related algorithms.
5466 It supports dense and sparse matrices on integer, floating point and complex numbers,
5467 decompositions of such matrices, and solutions of linear systems.")
5468 (license license:gpl2+)))
5470 (define-public r-modelmetrics
5472 (name "r-modelmetrics")
5477 (uri (cran-uri "ModelMetrics" version))
5480 "0mrlsw4c5y1vdsqynxr2dcvmhh5h37pnd71jw5a5djpbda9g21jy"))))
5481 (properties `((upstream-name . "ModelMetrics")))
5482 (build-system r-build-system)
5484 (list r-rcpp r-data-table))
5485 (home-page "https://cran.r-project.org/web/packages/ModelMetrics")
5486 (synopsis "Rapid calculation of model metrics")
5488 "Written in C++ using @code{Rcpp}, this package provides a collection of
5489 metrics for evaluating models.")
5490 (license license:gpl2+)))
5492 (define-public r-matrixmodels
5494 (name "r-matrixmodels")
5499 (uri (cran-uri "MatrixModels" version))
5502 "1a9ywhv1yklfcp0jgirkih3ib5scs61hkscmyddwfh5blpgmpi9z"))))
5503 (properties `((upstream-name . "MatrixModels")))
5504 (build-system r-build-system)
5507 (home-page "https://cran.r-project.org/web/packages/MatrixModels")
5508 (synopsis "Modelling with sparse and dense matrices")
5510 "This package models with sparse and dense matrix matrices,
5511 using modular prediction and response module classes.")
5512 (license license:gpl2+)))
5514 (define-public r-quantreg
5521 (uri (cran-uri "quantreg" version))
5523 (base32 "1h8p3gzaas8gdvyh13ir8xc92hiybmizb0yhnwk7gvbjp768bmaj"))))
5524 (build-system r-build-system)
5527 (modify-phases %standard-phases
5528 (add-after 'unpack 'set-HOME
5529 (lambda _ (setenv "HOME" "/tmp"))))))
5532 r-r-rsp)) ;for vignettes
5534 (list r-mass r-matrix r-matrixmodels r-sparsem r-survival))
5535 (home-page "https://www.r-project.org")
5536 (synopsis "Quantile regression")
5538 "This package provides an estimation and inference methods for models
5539 of conditional quantiles: linear and nonlinear parametric and non-parametric
5540 models for conditional quantiles of a univariate response and several methods
5541 for handling censored survival data. Portfolio selection methods based on
5542 expected shortfall risk are also included.")
5543 (license license:gpl2+)))
5545 (define-public r-nloptr
5552 (uri (cran-uri "nloptr" version))
5555 "1mqnjswm0dl6vqc8b2s5k3n1mhanaha3l33vh68dh6zx8q9aq9kv"))))
5556 (build-system r-build-system)
5558 (list r-knitr ; for building vignettes
5559 pkg-config gfortran))
5562 (propagated-inputs (list r-testthat))
5563 (home-page "https://cran.r-project.org/web/packages/nloptr")
5564 (synopsis "R interface to NLopt")
5566 "This package is interface to NLopt, a library for nonlinear
5567 optimization. NLopt is a library for nonlinear optimization, providing a
5568 common interface for a number of different free optimization routines
5569 available online as well as original implementations of various other
5571 (license license:lgpl3)))
5573 (define-public r-lme4
5580 (uri (cran-uri "lme4" version))
5583 "03rhg6cnsvdk06a1yxkivfvfwlx9934nd9q6jnp0bzscnv2dzazx"))))
5584 (build-system r-build-system)
5597 (home-page "https://cran.r-project.org/web/packages/lme4")
5598 (synopsis "Linear mixed-effects models using eigen and S4")
5600 "This package provides fit linear and generalized linear mixed-effects
5601 models. The models and their components are represented using S4 classes and
5602 methods. The core computational algorithms are implemented using the Eigen
5603 C++ library for numerical linear algebra and RcppEigen glue.")
5604 (license license:gpl2+)))
5606 (define-public r-pbkrtest
5613 (uri (cran-uri "pbkrtest" version))
5616 "1if7msv9i7jhg1as1f7m81a95dnwhwj3yfs24bqr0f6r0ch4b8xj"))))
5617 (build-system r-build-system)
5628 (home-page "https://people.math.aau.dk/~sorenh/software/pbkrtest/")
5629 (synopsis "Methods for linear mixed model comparison")
5631 "This package implements a parametric bootstrap test and a Kenward Roger
5632 modification of F-tests for linear mixed effects models and a parametric
5633 bootstrap test for generalized linear mixed models.")
5634 (license license:gpl2+)))
5636 (define-public r-cardata
5643 (uri (cran-uri "carData" version))
5645 (base32 "06j52rpbqi6fj7chfjwjbwbr6slrbb7i3aygv66gnfiyndcp3rq2"))))
5646 (properties `((upstream-name . "carData")))
5647 (build-system r-build-system)
5648 (home-page "https://r-forge.r-project.org/projects/car/")
5649 (synopsis "Data Sets for the book Companion to Applied Regression")
5651 "This package provides datasets to accompany J. Fox and S. Weisberg, An R
5652 Companion to Applied Regression, Third Edition, Sage.")
5653 (license license:gpl2+)))
5655 (define-public r-car
5662 (uri (cran-uri "car" version))
5664 (base32 "08ga187qqnl7cih7kzzzw9jx5sq63lq4ad6rrj7q5kj6xbmb8lmx"))))
5665 (build-system r-build-system)
5679 (home-page "https://r-forge.r-project.org/projects/car/")
5680 (synopsis "Companion to applied regression")
5682 "This package provides functions and datasets from book Companion
5683 to Applied regression, Second Edition, Sage, 2011.")
5684 (license license:gpl2+)))
5686 (define-public r-rcppprogress
5688 (name "r-rcppprogress")
5693 (uri (cran-uri "RcppProgress" version))
5696 "0j2b37gwjpgmrnr00srdzm751hzlpsjb54ph63xxmcdfnwhlnqmi"))))
5697 (properties `((upstream-name . "RcppProgress")))
5698 (build-system r-build-system)
5699 (home-page "https://github.com/kforner/rcpp_progress")
5700 (synopsis "Interruptible progress bar for C++ in R packages")
5702 "This package displays a progress bar in the R console for long running
5703 computations taking place in C++ code, and support for interrupting those computations
5704 even in multithreaded code, typically using OpenMP.")
5705 (license license:gpl3+)))
5707 (define-public r-tmvnsim
5714 (uri (cran-uri "tmvnsim" version))
5717 "03xsvsg9bqvgl98ywid3h91mmlhax5s6wvmypp3hq91vmc5kvxlp"))))
5718 (properties `((upstream-name . "tmvnsim")))
5719 (build-system r-build-system)
5720 (native-inputs (list gfortran))
5721 (home-page "https://www.r-project.org")
5722 (synopsis "Truncated multivariate normal simulation")
5724 "This package implements importance sampling from the truncated
5725 multivariate normal using the @dfn{Geweke-Hajivassiliou-Keane} (GHK)
5726 simulator. Unlike Gibbs sampling which can get stuck in one truncation
5727 sub-region depending on initial values, this package allows truncation based
5728 on disjoint regions that are created by truncation of absolute values. The
5729 GHK algorithm uses simple Cholesky transformation followed by recursive
5730 simulation of univariate truncated normals hence there are also no convergence
5731 issues. Importance sample is returned along with sampling weights, based on
5732 which, one can calculate integrals over truncated regions for multivariate
5734 (license license:gpl2)))
5736 (define-public r-mnormt
5743 (uri (cran-uri "mnormt" version))
5746 "1f07ngi89px437az030anbh8afmf6n635ax1akxak2idwc2qaj9d"))))
5747 (build-system r-build-system)
5750 (home-page "http://azzalini.stat.unipd.it/SW/Pkg-mnormt")
5751 (synopsis "Multivariate normal and \"t\" distributions")
5753 "This package provides functions for computing the density and the
5754 distribution function of multivariate normal and \"t\" random variables, and
5755 for generating random vectors sampled from these distributions. Probabilities
5756 are computed via non-Monte Carlo methods.")
5757 (license license:gpl2+)))
5759 (define-public r-numderiv
5762 (version "2016.8-1.1")
5766 (uri (cran-uri "numDeriv" version))
5769 "0idk02pqkziik932bd8k72d1q775g1is3m4bc861pcxfz6gx3i6q"))))
5770 (properties `((upstream-name . "numDeriv")))
5771 (build-system r-build-system)
5772 (home-page "https://cran.r-project.org/web/packages/numDeriv")
5773 (synopsis "Accurate numerical derivatives")
5775 "This package provides methods for calculating accurate numerical
5776 first and second order derivatives.")
5777 (license license:gpl2)))
5786 (uri (cran-uri "sn" version))
5789 "12s4g9rfrnijdil7bqw66ikj5k3w6bdnz6fsgqsp0bkfsap9nps9"))))
5790 (build-system r-build-system)
5792 (list r-mnormt r-numderiv r-quantreg))
5793 (home-page "http://azzalini.stat.unipd.it/SN")
5794 (synopsis "The skew-normal and skew-t distributions")
5796 "This package provides functionalities to build and manipulate
5797 probability distributions of the skew-normal family and some related
5798 ones, notably the skew-t family, and provides related statistical
5799 methods for data fitting and diagnostics, in the univariate and the
5800 multivariate case.")
5801 (license license:gpl2+)))
5803 (define-public r-tclust
5810 (uri (cran-uri "tclust" version))
5813 "09zk38gih67a8lk72k46mfgv21jpnxh2nzrxc5ypdc2bfwq8nckk"))))
5814 (build-system r-build-system)
5815 ;; These are all suggested packages, not build dependencies.
5817 (list r-cluster r-mclust r-mvtnorm r-sn))
5818 (home-page "https://cran.r-project.org/web/packages/tclust")
5819 (synopsis "Robust trimmed clustering")
5821 "This package implements different robust clustering
5822 algorithms (@code{tclust}) based on trimming and including some graphical
5823 diagnostic tools (@code{ctlcurves} and @code{DiscrFact}).")
5824 (license license:gpl3)))
5826 (define-public r-ranger
5833 (uri (cran-uri "ranger" version))
5836 "06zf5mi6yfgb68m6m83k01r4ikj5nldrvrbh3jqwz8axalfl16ax"))))
5837 (build-system r-build-system)
5839 (list r-rcpp r-matrix r-rcppeigen))
5840 (home-page "https://github.com/imbs-hl/ranger")
5841 (synopsis "Fast implementation of random forests")
5843 "This package provides a fast implementation of Random Forests,
5844 particularly suited for high dimensional data. Ensembles of classification,
5845 regression, survival and probability prediction trees are supported. Data from
5846 genome-wide association studies can be analyzed efficiently.")
5847 (license license:gpl3)))
5849 (define-public r-tsne
5856 (uri (cran-uri "tsne" version))
5859 "126q6ha25wx9mdsfngzkyp8j2fj81ri1knjdq1iyvwx3q1dwdaql"))))
5860 (build-system r-build-system)
5861 (home-page "https://github.com/jdonaldson/rtsne/")
5862 (synopsis "t-Distributed Stochastic Neighbor Embedding for R")
5864 "This package provides a pure R implementation of the t-SNE algorithm.")
5865 (license license:gpl2+)))
5867 (define-public r-cairo
5874 (uri (cran-uri "Cairo" version))
5877 "1lxpmzy6k8y9b6g7x68x0giy8bblxmbc4q136hkzajmailfsqqn7"))))
5878 (properties `((upstream-name . "Cairo")))
5879 (build-system r-build-system)
5881 (list cairo libxt zlib))
5884 (home-page "https://www.rforge.net/Cairo/")
5885 (synopsis "R graphics device using Cairo graphics library")
5887 "This package provides a Cairo graphics device that can be use to
5888 create high-quality vector (PDF, PostScript and SVG) and bitmap
5889 output (PNG,JPEG,TIFF), and high-quality rendering in displays (X11
5890 and Win32). Since it uses the same back-end for all output, copying
5891 across formats is WYSIWYG. Files are created without the dependence
5892 on X11 or other external programs. This device supports alpha
5893 channel (semi-transparent drawing) and resulting images can contain
5894 transparent and semi-transparent regions. It is ideal for use in
5895 server environments (file output) and as a replacement for other
5896 devices that don't have Cairo's capabilities such as alpha support or
5897 anti-aliasing. Backends are modular such that any subset of backends
5899 (license license:gpl2)))
5901 (define-public r-lubridate
5903 (name "r-lubridate")
5908 (uri (cran-uri "lubridate" version))
5911 "199b00cql07gf3rf4hh5ba34amnk0ai40zhx73dq1mpkn7ynxml7"))))
5912 (build-system r-build-system)
5914 (list r-generics r-cpp11))
5917 (home-page "https://cran.r-project.org/web/packages/lubridate/")
5918 (synopsis "Make dealing with dates a little easier")
5920 "This package provides functions to work with date-times and time-spans:
5921 fast and user friendly parsing of date-time data, extraction and updating of
5922 components of a date-time (years, months, days, hours, minutes, and seconds),
5923 algebraic manipulation on date-time and time-span objects. The @code{lubridate}
5924 package has a consistent and memorable syntax that makes working with dates
5926 (license license:gpl2)))
5928 (define-public r-fdrtool
5935 (uri (cran-uri "fdrtool" version))
5938 "1pf554vb902vavgqc4c0kgghywbgcvr3lkkr414bxngavcd60lil"))))
5939 (build-system r-build-system)
5940 (home-page "http://strimmerlab.org/software/fdrtool/")
5941 (synopsis "Estimation of false discovery rates and higher criticism")
5943 "This package provides tools to estimate tail area-based false discovery
5944 rates as well as local false discovery rates for a variety of null
5945 models (p-values, z-scores, correlation coefficients, t-scores). The
5946 proportion of null values and the parameters of the null distribution are
5947 adaptively estimated from the data. In addition, the package contains
5948 functions for non-parametric density estimation (Grenander estimator), for
5949 monotone regression (isotonic regression and antitonic regression with
5950 weights), for computing the @dfn{greatest convex minorant} (GCM) and the
5951 @dfn{least concave majorant} (LCM), for the half-normal and correlation
5952 distributions, and for computing empirical @dfn{higher criticism} (HC) scores
5953 and the corresponding decision threshold.")
5954 (license license:gpl3+)))
5956 (define-public r-forcats
5963 (uri (cran-uri "forcats" version))
5966 "0hb1m16il1n8nmhp7hx8k2xxq8bd8kp3qqs2pw7xm0iz311hm9hl"))))
5967 (build-system r-build-system)
5979 (home-page "https://forcats.tidyverse.org")
5980 (synopsis "Tools for working with factors")
5981 (description "This package provides helpers for reordering factor
5982 levels (including moving specified levels to front, ordering by first
5983 appearance, reversing, and randomly shuffling), and tools for modifying factor
5984 levels (including collapsing rare levels into other, \"anonymizing\", and
5985 manually \"recoding\").")
5986 (license license:gpl3)))
5988 (define-public r-tgstat
5989 (let ((changeset "4f8e60c03598f49aff6f5beeab40f2b995377e9f")
5993 (version (string-append "1.0.2-" revision "." (string-take changeset 7)))
5998 (url "https://bitbucket.org/tanaylab/tgstat")
5999 (changeset changeset)))
6000 (file-name (string-append name "-" version "-checkout"))
6003 "0ilkkyximy77zbncm91kdfqbxf0qyndg16pd3q3p6a3xc9qcmxvn"))))
6004 (build-system r-build-system)
6007 (modify-phases %standard-phases
6008 (add-after 'unpack 'fix-isnan
6010 (substitute* "src/tgstat.h"
6011 (("#define isnan ::isnan")
6012 "#define isnan std::isnan"))
6016 (home-page "https://bitbucket.org/tanaylab/tgstat/")
6017 (synopsis "Tanay's group statistical utilities")
6019 "The goal of tgstat is to provide fast and efficient statistical
6021 (license license:gpl2))))
6023 (define-public r-tgconfig
6024 (let ((changeset "1e02c7614713bd0866c46f0c679a058f8c6d627e")
6028 (version (string-append "0.0.0.9000-" revision "." (string-take changeset 7)))
6033 (url "https://bitbucket.org/tanaylab/tgconfig")
6034 (changeset changeset)))
6035 (file-name (string-append name "-" version "-checkout"))
6038 "0xy6c7s7mn1yx191154bwbv1bl424bnvc80syqpl1vdl28ba46rj"))))
6039 (build-system r-build-system)
6042 (home-page "https://bitbucket.org/tanaylab/tgconfig/")
6043 (synopsis "Infrastructure for managing package parameters")
6045 "The goal of tgconfig is to provide infrastructure for managing package
6047 (license license:gpl3))))
6049 (define-public r-catterplots
6050 (let ((commit "ae17cd5e49ddda4ecfe0eba8a4c21df8c88e72c4")
6053 (name "r-catterplots")
6054 (version (git-version "0" revision commit))
6058 (url "https://github.com/Gibbsdavidl/CatterPlots")
6060 (file-name (git-file-name name version))
6063 "0qa8liylffpxgdg8xcgjar5dsvczqhn3akd4w35113hnyg1m4xyg"))))
6064 (build-system r-build-system)
6067 (home-page "https://github.com/Gibbsdavidl/CatterPlots")
6068 (synopsis "Scatter plots with cat shaped points")
6069 (description "Did you ever wish you could make scatter plots with cat
6070 shaped points? Now you can!")
6071 (license license:asl2.0))))
6073 (define-public r-colorout
6081 (url "https://github.com/jalvesaq/colorout")
6082 (commit (string-append "v" version))))
6083 (file-name (git-file-name name version))
6085 (base32 "1rsx69wjpa73c6x2hacvvvbzdzxn7wg06gizf97kasjdlb7azmp3"))))
6086 (build-system r-build-system)
6087 (home-page "https://github.com/jalvesaq/colorout")
6088 (synopsis "Colorize output in the R REPL")
6089 (description "@code{colorout} is an R package that colorizes R output when
6090 running in terminal emulator.
6092 R STDOUT is parsed and numbers, negative numbers, dates in the standard
6093 format, strings, and R constants are identified and wrapped by special ANSI
6094 scape codes that are interpreted by terminal emulators as commands to colorize
6095 the output. R STDERR is also parsed to identify the expressions warning and
6096 error and their translations to many languages. If these expressions are
6097 found, the output is colorized accordingly; otherwise, it is colorized as
6098 STDERROR (blue, by default).
6100 You can customize the colors according to your taste, guided by the color
6101 table made by the command @code{show256Colors()}. You can also set the colors
6102 to any arbitrary string. In this case, it is up to you to set valid values.")
6103 (license license:gpl3+)))
6105 (define-public r-nnlm
6106 (let ((commit "4574bca9456fe2285b668b4c22a908cffbad10a0")
6110 (version (git-version "0.4.4" revision commit))
6115 (url "https://github.com/linxihui/NNLM")
6117 (file-name (git-file-name name version))
6119 (base32 "1qzvav4ch0j1k7jcqzk9cvl8dx79fapmvdzmzzyl8smscybhfgba"))))
6120 (properties `((upstream-name . "NNLM")))
6121 (build-system r-build-system)
6122 (propagated-inputs (list r-rcpp r-rcpparmadillo r-rcppprogress))
6123 (native-inputs (list r-knitr))
6124 (home-page "https://github.com/linxihui/NNLM")
6125 (synopsis "Fast and versatile non-negative matrix factorization")
6127 "This is a package for @dfn{Non-Negative Linear Models} (NNLM). It
6128 implements fast sequential coordinate descent algorithms for non-negative
6129 linear regression and @dfn{non-negative matrix factorization} (NMF). It
6130 supports mean square error and Kullback-Leibler divergence loss. Many other
6131 features are also implemented, including missing value imputation, domain
6132 knowledge integration, designable W and H matrices and multiple forms of
6134 (license license:bsd-2))))
6136 (define-public r-swne
6137 (let ((commit "05fc3ee4e09b2c34d99c69d3b97cece4c1c34143")
6141 (version (git-version "0.6.20" revision commit))
6146 (url "https://github.com/yanwu2014/swne")
6148 (file-name (git-file-name name version))
6150 (base32 "0crlpg9kclbv4v8250p3086a3lk6f2hcq79psqkdylc1qnrx3kfx"))))
6151 (properties `((upstream-name . "swne")))
6152 (build-system r-build-system)
6166 r-nnlm ;not listed but required at install time
6178 (home-page "https://github.com/yanwu2014/swne")
6179 (synopsis "Visualize high dimensional datasets")
6181 "@dfn{Similarity Weighted Nonnegative Embedding} (SWNE) is a method for
6182 visualizing high dimensional datasets. SWNE uses Nonnegative Matrix
6183 Factorization to decompose datasets into latent factors, projects those
6184 factors onto 2 dimensions, and embeds samples and key features in 2 dimensions
6185 relative to the factors. SWNE can capture both the local and global dataset
6186 structure, and allows relevant features to be embedded directly onto the
6187 visualization, facilitating interpretation of the data.")
6188 (license license:gpl2))))
6190 (define-public r-languageserver
6191 (let ((commit "004da9388f9b19990f031c8dc9b527fb406378ba")
6194 (name "r-languageserver")
6195 (version (git-version "0.3.12" revision commit))
6200 (url "https://github.com/REditorSupport/languageserver")
6202 (file-name (git-file-name name version))
6204 (base32 "05f22bjpc87fngzq4jsk2q2yb2i3ha03b377r0wx15d0b8xaa1ix"))))
6205 (properties `((upstream-name . "languageserver")))
6206 (build-system r-build-system)
6219 (home-page "https://github.com/REditorSupport/languageserver")
6220 (synopsis "Language Server for R")
6222 "This package provides an implementation of the Language Server
6224 @url{https://microsoft.github.io/language-server-protocol/,Language Server
6225 protocol} is used by an editor client to integrate features like auto
6227 (license license:expat))))
6229 (define-public python-rpy2
6231 (name "python-rpy2")
6236 (uri (pypi-uri "rpy2" version))
6239 "1cysswxr5glrdblyl2zsmywcj7xhxn3wmyihxinrz9gm8gmaacax"))))
6240 (build-system python-build-system)
6243 (modify-phases %standard-phases
6245 (lambda* (#:key outputs inputs #:allow-other-keys)
6246 (let ((cwd (getcwd)))
6247 (setenv "TZ" "UTC"))
6248 ;; test_vector_complex has issues when run in our environment.
6249 (invoke "pytest" "-v" "rpy2/tests/"
6250 "-k" "not test_vector_complex"))))))
6272 (list zlib python-pytest))
6273 (home-page "https://rpy2.github.io")
6274 (synopsis "Python interface to the R language")
6275 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
6276 low-level interface to R from Python, a proposed high-level interface,
6277 including wrappers to graphical libraries, as well as R-like structures and
6279 ;; Any of these licenses can be picked for the R interface. The whole
6280 ;; project is released under GPLv2+ according to the license declaration
6282 (license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+))))
6284 (define-public java-jdistlib
6286 (name "java-jdistlib")
6290 (uri (string-append "mirror://sourceforge/jdistlib/jdistlib-"
6291 version "-src.jar"))
6294 "1pkj8aahw9ydr1isbaqrkd05nvq98ik5jwwhf3yf3rky3z869v11"))))
6295 (build-system ant-build-system)
6297 `(#:jar-name "jdistlib.jar"
6299 #:tests? #f ; no dedicated test directory
6301 (modify-phases %standard-phases
6302 (add-after 'unpack 'fix-broken-encoding
6304 (with-fluids ((%default-port-encoding "ISO-8859-1"))
6305 (substitute* "src/jdistlib/Beta.java"
6306 (("Scheff.+-Tukey") "Scheffe-Tukey")))
6309 (list java-jtransforms))
6312 (home-page "http://jdistlib.sourceforge.net/")
6313 (synopsis "Java library of statistical distributions")
6314 (description "JDistlib is the Java Statistical Distribution Library, a
6315 Java package that provides routines for various statistical distributions.")
6316 ;; The files that were translated from R code are under GPLv2+; some files
6317 ;; are under the GPLv3, which is a mistake. The author confirmed in an
6318 ;; email that this whole project should be under GPLv2+.
6319 (license license:gpl2+)))
6321 (define-public emacs-ess
6322 ;; Latest release is old. This is not the latest commit either due to bug
6323 ;; reported here: <https://github.com/emacs-ess/ESS/issues/987>.
6324 (let ((commit "24da603184ce39246611dd5b8602e769d7ebd5bf")
6329 (version (git-version version revision commit))
6334 (url "https://github.com/emacs-ess/ESS")
6337 (base32 "0j98lv07nzwzd54d4dgcfz01wy5gj48m0mnirxzh5r45ik2myh1r"))
6338 (file-name (git-file-name name version))
6339 (modules '((guix build utils)))
6342 ;; Stop ESS from trying to bundle an external julia-mode.el.
6343 (substitute* "lisp/Makefile"
6344 ((" \\$\\(JULIAS)") "")
6345 (("\ttest.*julia-mode.*\\.el") ""))
6346 ;; Only build docs in info format.
6347 (substitute* "doc/Makefile"
6348 (("all : info text")
6350 (("install: install-info install-other-docs")
6351 "install: install-info"))
6352 ;; Stop install-info from trying to update the info directory.
6353 (substitute* "doc/Makefile"
6355 ;; Fix r-help-mode test.
6356 (substitute* "test/ess-test-r.el"
6357 (("\\(equal ess-help-object \"plot.default\")") "t"))
6358 ;; Avoid generating ess-autoloads.el twice.
6359 (substitute* "Makefile"
6360 (("all: lisp doc etc autoloads")
6361 "all: lisp doc etc"))
6362 ;; Install to correct directories.
6363 (substitute* "Makefile"
6364 (("mkdir -p \\$\\(ESSDESTDIR)")
6365 "$(MAKE) -C lisp install; $(MAKE) -C doc install")
6366 (("\\$\\(INSTALL) -R \\./\\* \\$\\(ESSDESTDIR)/")
6367 "$(MAKE) -C etc install"))
6370 (search-patches "emacs-ess-fix-obsolete-function-alias.patch"))))
6371 (build-system gnu-build-system)
6373 (let ((base-directory "/share/emacs/site-lisp"))
6374 `(#:make-flags (list (string-append "PREFIX=" %output)
6375 (string-append "ETCDIR=" %output
6376 ,base-directory "/etc")
6377 (string-append "LISPDIR=" %output
6379 (string-append "INFODIR=" %output
6382 (modify-phases %standard-phases
6385 (lambda _ (invoke "make" "test")))))))
6387 (list perl r-roxygen2 texinfo))
6389 `(("emacs" ,emacs-minimal)
6390 ("r-minimal" ,r-minimal)))
6392 (list emacs-julia-mode))
6393 (home-page "https://ess.r-project.org/")
6394 (synopsis "Emacs mode for statistical analysis programs")
6396 "Emacs Speaks Statistics (ESS) is an add-on package for GNU Emacs. It
6397 is designed to support editing of scripts and interaction with various
6398 statistical analysis programs such as R, Julia, and JAGS.")
6399 (license license:gpl3+))))
6401 (define-public emacs-poly-r
6403 (name "emacs-poly-r")
6409 (url "https://github.com/polymode/poly-R")
6410 (commit (string-append "v" version))))
6411 (file-name (git-file-name name version))
6413 (base32 "0a4wx73jkngw5nbq1fa4jfhba6bsmyn6vnsf887x3xhb5v3ykhsg"))))
6414 (build-system emacs-build-system)
6416 (list emacs-ess emacs-poly-noweb emacs-polymode-markdown
6418 (properties '((upstream-name . "poly-R")))
6419 (home-page "https://github.com/polymode/poly-markdown")
6420 (synopsis "Polymodes for the R language")
6422 "This package provides a number of polymodes for working with mixed R
6423 files, including Rmarkdown files.")
6424 (license license:gpl3+)))
6426 (define-public readstat
6434 (url "https://github.com/WizardMac/ReadStat")
6435 (commit (string-append "v" version))))
6436 (file-name (git-file-name name version))
6438 (base32 "1r04lq45h1yn34v1mgfiqjfzyaqv4axqlby0nkandamcsqyhc7y4"))))
6439 (build-system gnu-build-system)
6441 (list autoconf automake gnu-gettext libtool))
6444 (synopsis "Convert SAS, Stata, and SPSS files")
6445 (description "Command-line tool and C library for reading files from
6446 popular stats packages like SAS, Stata and SPSS.")
6447 (home-page "https://github.com/WizardMac/ReadStat")
6448 (license license:expat)))
6450 (define-public r-quantpsyc
6452 (name "r-quantpsyc")
6457 (uri (cran-uri "QuantPsyc" version))
6460 "1dbj830p5837fiwa800nzsaf19lf95vc3n7jmds2q9v06mrz6syq"))))
6461 (properties `((upstream-name . "QuantPsyc")))
6462 (build-system r-build-system)
6468 (home-page "https://cran.r-project.org/web/packages/QuantPsyc/")
6469 (synopsis "Quantitative Psychology Tools")
6471 "Contains functions useful for data screening, testing moderation,
6472 mediation and estimating power.")
6473 (license license:gpl2+)))
6475 (define-public r-clubsandwich
6477 (name "r-clubsandwich")
6482 (uri (cran-uri "clubSandwich" version))
6485 "1y894n35l4lzqm15ifxjnpnh95dldsfivv4098571yqf1z4a253q"))))
6486 (properties `((upstream-name . "clubSandwich")))
6487 (build-system r-build-system)
6490 (native-inputs (list r-knitr))
6491 (home-page "https://github.com/jepusto/clubSandwich")
6492 (synopsis "Cluster-Robust (Sandwich) Variance Estimators with Small-Sample
6495 "Provides several cluster-robust variance estimators (i.e.,
6496 sandwich estimators) for ordinary and weighted least squares linear regression
6497 models, including the bias-reduced linearization estimator introduced by Bell
6498 and McCaffrey (2002)
6499 @url{http://www.statcan.gc.ca/pub/12-001-x/2002002/article/9058-eng.pdf} and
6500 developed further by Pustejovsky and Tipton (2017)
6501 @url{doi:10.1080/07350015.2016.1247004}. The package includes functions for estimating
6502 the variance- covariance matrix and for testing single- and multiple-
6503 contrast hypotheses based on Wald test statistics. Tests of single regression
6504 coefficients use Satterthwaite or saddle-point corrections. Tests of multiple-
6505 contrast hypotheses use an approximation to Hotelling's T-squared distribution.
6506 Methods are provided for a variety of fitted models, including @code{lm()} and
6507 @code{mlm} objects, @code{glm()}, ivreg (from package @code{AER}), @code{plm()}
6508 (from package @code{plm}), @code{gls()} and @code{lme()} (from @code{nlme}),
6509 @code{robu()} (from @code{robumeta}), and @code{rma.uni()} and @code{rma.mv()}
6510 (from @code{metafor}).")
6511 (license license:gpl3)))
6513 (define-public r-puniform
6520 (uri (cran-uri "puniform" version))
6523 "1zw8qbqnyhyvzrw6izrqgnmbawcqg2jdhcb8lxs1rd8y7cn4v4wj"))))
6524 (properties `((upstream-name . "puniform")))
6525 (build-system r-build-system)
6527 (list r-adgoftest r-metafor r-rcpp r-rcpparmadillo))
6529 "https://github.com/RobbievanAert/puniform")
6531 "Meta-Analysis Methods Correcting for Publication Bias")
6533 "This package provides meta-analysis methods that correct for publication
6534 bias and outcome reporting bias. Four methods and a visual tool are currently
6535 included in the package.
6538 @item The p-uniform method as described in van Assen, van Aert, and Wicherts
6539 (2015) @url{doi:10.1037/met0000025} can be used for estimating the average
6540 effect size, testing the null hypothesis of no effect, and testing for
6541 publication bias using only the statistically significant effect sizes of
6544 @item The p-uniform* method as described in van Aert and van Assen (2019)
6545 @url{doi:10.31222/osf.io/zqjr9}. This method is an extension of the p-uniform
6546 method that allows for estimation of the average effect size and the
6547 between-study variance in a meta-analysis, and uses both the statistically
6548 significant and nonsignificant effect sizes.
6550 @item The hybrid method as described in van Aert and van Assen (2017)
6551 @url{doi:10.3758/s13428-017-0967-6}. The hybrid method is a meta-analysis
6552 method for combining an original study and replication and while taking into
6553 account statistical significance of the original study. The p-uniform and
6554 hybrid method are based on the statistical theory that the distribution of
6555 p-values is uniform conditional on the population effect size.
6558 The fourth method in the package is the Snapshot Bayesian Hybrid Meta-Analysis
6559 Method as described in van Aert and van Assen (2018)
6560 @url{doi:10.1371/journal.pone.0175302}. This method computes posterior
6561 probabilities for four true effect sizes (no, small, medium, and large) based
6562 on an original study and replication while taking into account publication bias
6563 in the original study. The method can also be used for computing the required
6564 sample size of the replication akin to power analysis in null hypothesis
6565 significance testing.
6568 The meta-plot is a visual tool for meta-analysis that
6569 provides information on the primary studies in the meta-analysis, the results
6570 of the meta-analysis, and characteristics of the research on the effect under
6571 study (van Assen and others, 2020).
6573 Helper functions to apply the Correcting for Outcome Reporting Bias (CORB)
6574 method to correct for outcome reporting bias in a meta-analysis (van Aert &
6576 (license license:gpl2+)))
6578 (define-public r-esc
6585 (uri (cran-uri "esc" version))
6588 "0gns7gz55p6pha05413r3hlvd7f2v1amxkg13d197mab1ypqic7q"))))
6589 (properties `((upstream-name . "esc")))
6590 (build-system r-build-system)
6591 (home-page "https://strengejacke.github.io/esc/")
6593 "Effect Size Computation for Meta Analysis")
6595 "Implementation of the web-based
6596 @url{http://www.campbellcollaboration.org/escalc/html/EffectSizeCalculator-Home.php,'Practical
6597 Meta-Analysis Effect Size Calculator'} from David B. Wilson in R. Based on the
6598 input, the effect size can be returned as standardized mean difference, Cohen's
6599 f, Hedges' g, Pearson's r or Fisher's transformation z, odds ratio or log odds,
6600 or eta squared effect size.")
6601 (license license:gpl3)))
6603 (define-public r-kknn
6610 (uri (cran-uri "kknn" version))
6613 "1nzkg3dxaiqp87p56wm895qx5xn86hv5hjr73qvl1yiaxiq0x112"))))
6614 (properties `((upstream-name . "kknn")))
6615 (build-system r-build-system)
6617 (list r-igraph r-matrix))
6618 (home-page "https://github.com/KlausVigo/kknn")
6619 (synopsis "Weighted k-Nearest Neighbors")
6621 "Weighted k-Nearest Neighbors for Classification, Regression and Clustering.")
6622 (license license:gpl2+)))
6624 (define-public r-logspline
6626 (name "r-logspline")
6631 (uri (cran-uri "logspline" version))
6634 "05c8l22zcvb086909h9vw7icphww703vkcxp2h881y4n1232pdq3"))))
6635 (properties `((upstream-name . "logspline")))
6636 (build-system r-build-system)
6637 (native-inputs (list gfortran))
6639 "https://cran.r-project.org/web/packages/logspline/")
6641 "Routines for Logspline Density Estimation")
6643 "Contains routines for logspline density estimation. The function
6644 @code{oldlogspline()} uses the same algorithm as the logspline package version
6645 1.0.x; i.e., the Kooperberg and Stone (1992) algorithm (with an improved
6646 interface). The recommended routine @code{logspline()} uses an algorithm from
6647 @url{doi:10.1214/aos/1031594728,Stone et al (1997)}.")
6648 (license license:asl2.0)))
6650 (define-public r-effects
6657 (uri (cran-uri "effects" version))
6660 "0nlj79am9a1yg737dhfa8dj1kj2hly9pfknmphsbcvlgxqn35vig"))))
6661 (properties `((upstream-name . "effects")))
6662 (build-system r-build-system)
6674 (home-page "https://www.r-project.org")
6676 "Effect Displays for Linear, Generalized Linear, and Other Models")
6678 "Graphical and tabular effect displays, e.g., of interactions, for
6679 various statistical models with linear predictors.")
6680 (license license:gpl2+)))
6682 (define-public r-bayesfactor
6684 (name "r-bayesfactor")
6685 (version "0.9.12-4.4")
6689 (uri (cran-uri "BayesFactor" version))
6692 "02bhlamnkxp9wqi2cp1i0dxmqdf3y3l872ad9z39xwripbi4kc7a"))))
6693 (properties `((upstream-name . "BayesFactor")))
6694 (build-system r-build-system)
6705 (native-inputs (list r-knitr))
6707 "https://richarddmorey.github.io/BayesFactor/")
6709 "Computation of Bayes Factors for Common Designs")
6711 "This package provides a suite of functions for computing various Bayes
6712 factors for simple designs, including contingency tables, one- and two-sample
6713 designs, one-way designs, general ANOVA designs, and linear regression.")
6714 (license license:gpl2)))
6716 (define-public r-norm
6719 (version "1.0-10.0")
6722 (uri (cran-uri "norm" version))
6725 "1iqcsa7mj9ahnkbsri0cf2wlhh2bv86vwsh3iwihh42cywd7k123"))))
6726 (build-system r-build-system)
6729 (home-page "https://cran.r-project.org/web/packages/norm/")
6730 (synopsis "Analysis of multivariate normal datasets with missing values")
6731 (description "Multiple imputation of multivariate continuous data under a
6733 ;; Custom license, see https://cran.r-project.org/web/packages/norm/LICENSE.
6734 (license (license:non-copyleft "file://LICENSE"))))
6736 (define-public r-naniar
6742 (uri (cran-uri "naniar" version))
6745 "0l3l2x85v3srilww483kpgp4zlwixyml257b0cqly8kcpwawlinm"))))
6746 (build-system r-build-system)
6763 (home-page "https://github.com/njtierney/naniar")
6765 "Data structures, summaries, and visualisations for missing data")
6767 "Missing values are ubiquitous in data and need to be explored and
6768 handled in the initial stages of analysis. The package provides data structures
6769 and functions that facilitate the plotting of missing values and examination of
6770 imputations. This allows missing data dependencies to be explored with minimal
6771 deviation from the common work patterns of @code{ggplot2} and tidy data.")
6772 (license license:expat)))
6774 (define-public r-glinternet
6776 (name "r-glinternet")
6781 (uri (cran-uri "glinternet" version))
6784 "0aphdscj0s6kqxlkgqkw2d6snrylz6hiis6307pl8ldh7q5cvm33"))))
6785 (build-system r-build-system)
6786 (home-page "http://web.stanford.edu/~hastie/Papers/glinternet_jcgs.pdf")
6787 (synopsis "Learning interactions via hierarchical group-lasso regularization")
6788 (description "Group-Lasso INTERaction-NET. Fits linear pairwise-interaction
6789 models that satisfy strong hierarchy: if an interaction coefficient is estimated
6790 to be nonzero, then its two associated main effects also have nonzero estimated
6791 coefficients. Accommodates categorical variables (factors) with arbitrary
6792 numbers of levels, continuous variables, and combinations thereof. Implements
6793 the machinery described in the paper \"Learning interactions via hierarchical
6794 group-lasso regularization\" (JCGS 2015, Volume 24, Issue 3).
6795 Michael Lim & Trevor Hastie (2015)")
6796 (license license:gpl2)))
6798 (define-public r-datasaurus
6800 (name "r-datasaurus")
6805 (uri (cran-uri "datasauRus" version))
6808 "0vgylf3bab0xcfg08xwvfq9yhxy6w0fxi7wp4kkxfyjb0pw15qxk"))))
6809 (properties `((upstream-name . "datasauRus")))
6810 (build-system r-build-system)
6811 (native-inputs (list r-knitr))
6813 "https://github.com/lockedata/datasauRus")
6814 (synopsis "Datasets from the Datasaurus Dozen")
6816 "The Datasaurus Dozen is a set of datasets with the same summary
6817 statistics. They retain the same summary statistics despite having radically
6818 different distributions. The datasets represent a larger and quirkier object
6819 lesson that is typically taught via Anscombe's Quartet (available in the
6820 'datasets' package). Anscombe's Quartet contains four very different
6821 distributions with the same summary statistics and as such highlights the value
6822 of visualisation in understanding data, over and above summary statistics. As
6823 well as being an engaging variant on the Quartet, the data is generated in a
6824 novel way. The simulated annealing process used to derive datasets from the
6825 original Datasaurus is detailed in \"Same Stats, Different Graphs: Generating
6826 Datasets with Varied Appearance and Identical Statistics through Simulated
6827 Annealing\" @url{doi:10.1145/3025453.3025912}.")
6828 (license license:expat)))
6830 (define-public r-lmom
6837 (uri (cran-uri "lmom" version))
6839 (base32 "145va4dhl767mywk36xcmqilm21sfkqhcqi0s07qgq3k39sn4gin"))))
6840 (properties `((upstream-name . "lmom")))
6841 (build-system r-build-system)
6842 (native-inputs (list gfortran))
6843 (home-page "https://cran.r-project.org/package=lmom")
6844 (synopsis "L-Moments for R")
6846 "This package provides functions related to L-moments: computation
6847 of L-moments and trimmed L-moments of distributions and data samples;
6848 parameter estimation; L-moment ratio diagram; plot vs. quantiles of an
6849 extreme-value distribution.")
6850 (license license:cpl1.0)))
6852 (define-public r-gld
6859 (uri (cran-uri "gld" version))
6861 (base32 "1scflrfhvf26psnh7ayi4x2j706k8sfyqlmib6ssjyhl6g0gg542"))))
6862 (properties `((upstream-name . "gld")))
6863 (build-system r-build-system)
6864 (propagated-inputs (list r-e1071 r-lmom))
6866 "https://cran.r-project.org/package=gld")
6868 "Estimation and Use of the Generalised (Tukey) Lambda Distribution")
6870 "The generalised lambda distribution, or Tukey lambda distribution,
6871 provides a wide variety of shapes with one functional form. This package
6872 provides random numbers, quantiles, probabilities, densities and
6873 density quantiles for four different types of the distribution, the FKML
6874 (Freimer et al 1988), RS (Ramberg and Schmeiser 1974), GPD (van Staden
6875 and Loots 2009) and FM5 - see documentation for details. It provides the
6876 density function, distribution function, and Quantile-Quantile plots.
6877 It implements a variety of estimation methods for the distribution,
6878 including diagnostic plots. Estimation methods include the starship (all
6879 4 types), method of L-Moments for the GPD and FKML types, and a number
6880 of methods for only the FKML type. These include maximum likelihood,
6881 maximum product of spacings, Titterington's method, Moments, Trimmed
6882 L-Moments and Distributional Least Absolutes.")
6883 (license license:gpl2+)))
6885 (define-public r-exact
6892 (uri (cran-uri "Exact" version))
6894 (base32 "1kz3hw11sl142mai4ly2r85rwdbjz8q7b38ybmjym6r0n5qmqzyn"))))
6895 (properties `((upstream-name . "Exact")))
6896 (build-system r-build-system)
6897 (propagated-inputs (list r-rootsolve))
6898 (home-page "https://cran.r-project.org/package=Exact")
6899 (synopsis "Unconditional Exact Test")
6901 "Performs unconditional exact tests and power calculations for 2x2
6902 contingency tables. For comparing two independent proportions, performs
6903 @url{doi:10.1038/156177a0, Barnard's test (1945)} using the original CSM
6904 test (@url{doi:10.1093/biomet/34.1-2.123, Barnard (1947)}), using Fisher's
6905 p-value referred to as @url{doi:10.1111/j.1467-9574.1970.tb00104.x,
6906 Boschloo's test (1970)}, or using a Z-statistic (@url{doi:10.2307/2981892,
6907 Suissa and Shuster (1985)}). For comparing two binary proportions,
6908 performs unconditional exact test using McNemar's Z-statistic
6909 (@url{doi:10.1191/0962280203sm312ra, Berger and Sidik (2003)}), using
6910 McNemar's Z-statistic with continuity correction, or using CSM test.
6911 Calculates confidence intervals for the difference in proportion.")
6912 (license license:gpl2)))
6914 (define-public r-desctools
6916 (name "r-desctools")
6921 (uri (cran-uri "DescTools" version))
6923 (base32 "1f6jhvwgzv8mw5vmy7nqh8bpmrrzl36x1bq1ggnk3va24fcd01jq"))))
6924 (properties `((upstream-name . "DescTools")))
6925 (build-system r-build-system)
6939 (native-inputs (list gfortran))
6940 (home-page "https://andrisignorell.github.io/DescTools/")
6941 (synopsis "Tools for Descriptive Statistics")
6943 "This package provides a collection of miscellaneous basic statistic
6944 functions and convenience wrappers for efficiently describing data.
6945 The author's intention was to create a toolbox, which facilitates the
6946 (notoriously time consuming) first descriptive tasks in data analysis,
6947 consisting of calculating descriptive statistics, drawing graphical
6948 summaries and reporting the results. The package contains furthermore
6949 functions to produce documents using MS Word (or PowerPoint) and functions
6950 to import data from Excel. Many of the included functions can be found
6951 scattered in other packages and other sources written partly by Titans
6952 of R. The reason for collecting them here, was primarily to have them
6953 consolidated in ONE instead of dozens of packages (which themselves might
6954 depend on other packages which are not needed at all), and to provide a
6955 common and consistent interface as far as function and arguments naming,
6956 NA handling, recycling rules etc. are concerned. Google style guides
6957 were used as naming rules (in absence of convincing alternatives).
6958 The BigCamelCase style was consequently applied to functions borrowed
6959 from contributed R packages as well.")
6960 (license license:gpl2+)))
6962 (define-public xlispstat
6963 (let ((commit "f1bea6053df658ee48612bf1f63c35de99e2c649")
6967 (version (git-version "3.52.23" revision commit))
6971 (url "https://github.com/jhbadger/xlispstat.git")
6973 (file-name (git-file-name name version))
6976 "1p0cmgy19kbkxia139cb5w9dnkp2cdqp5n3baag6cq3prn3n71mf"))))
6977 (build-system gnu-build-system)
6979 `(#:parallel-build? #f ; Parallel builds are not supported
6980 #:configure-flags (list "--with-gcc")
6982 (modify-phases %standard-phases
6984 (lambda* (#:key tests? #:allow-other-keys)
6986 (with-output-to-file "exit.lsp"
6987 (lambda () (display "(exit)")))
6988 (invoke "./xlisp" "tests/test" "exit")))))))
6997 (native-inputs (list pkg-config))
6998 (synopsis "Statistical analysis environment with interactive graphics")
6999 (description "XLISP-STAT is a statistical environment based on a Lisp
7000 dialect called XLISP. To facilitate statistical computations, standard
7001 functions for addition, logarithms, etc., have been modified to operate on
7002 lists and arrays of numbers, and a number of basic statistical functions have
7003 been added. Many of these functions have been written in Lisp, and additional
7004 functions can be added easily by a user. Several basic forms of plots,
7005 including histograms, scatterplots, rotatable plots and scatterplot matrices
7006 are provided. These plots support various forms of interactive highlighting
7007 operations and can be linked so points highlighted in one plot will be
7008 highlighted in all linked plots. Interactions with the plots are controlled
7009 by the mouse, menus and dialog boxes. An object-oriented programming system
7010 is used to allow menus, dialogs, and the response to mouse actions to be
7012 (home-page "http://homepage.divms.uiowa.edu/~luke/xls/xlsinfo/")
7013 (license license:expat))))
7015 (define-public r-rlrsim
7022 (uri (cran-uri "RLRsim" version))
7024 (base32 "06i4slc7fj8xifq20i1vqfadfw2p81b0kfzga60139hnryz1zpva"))))
7025 (properties `((upstream-name . "RLRsim")))
7026 (build-system r-build-system)
7027 (propagated-inputs (list r-lme4 r-mgcv r-nlme r-rcpp))
7028 (home-page "https://github.com/fabian-s/RLRsim")
7030 "Exact (Restricted) Likelihood Ratio Tests for Mixed and Additive Models")
7032 "Rapid, simulation-based exact (restricted) likelihood ratio tests for testing
7033 the presence of variance components/nonparametric terms for models fit with
7034 @code{nlme::lme()}, @code{lme4::lmer()}, @code{lmeTest::lmer()},
7035 @code{gamm4::gamm4()}, @code{mgcv::gamm()} and @code{SemiPar::spm()}.")
7036 (license (list license:gpl2+ license:gpl3+))))
7038 (define-public r-binom
7045 (uri (cran-uri "binom" version))
7047 (base32 "1yxyhsd0savwirlmgnq6973slfakqyfvjm0zz60cmc9v490my8gf"))))
7048 (properties `((upstream-name . "binom")))
7049 (build-system r-build-system)
7050 (home-page "https://cran.r-project.org/package=binom")
7051 (synopsis "Binomial Confidence Intervals For Several Parameterizations")
7053 "Constructs confidence intervals on the probability of success in a binomial
7054 experiment via several parameterizations")
7055 (license (list license:gpl2+ license:gpl3+))))
7057 (define-public r-simr
7064 (uri (cran-uri "simr" version))
7066 (base32 "1q8ip54c5pc7pjf8127jpk56nr3f8rmwqdcrr84faj4lfbr27wqb"))))
7067 (properties `((upstream-name . "simr")))
7068 (build-system r-build-system)
7080 (native-inputs (list r-knitr))
7081 (home-page "https://github.com/pitakakariki/simr")
7083 "Power analysis for generalized linear mixed models by simulation")
7085 "This package lets you calculate power for generalized linear mixed
7086 models, using simulation. It was designed to work with models fit using the
7087 @code{lme4} package. The package is described in
7088 @url{doi:10.1111/2041-210X.12504, Green and MacLeod (2016)}.")
7089 (license license:gpl2+)))
7091 (define-public r-mixedpower
7093 (name "r-mixedpower")
7097 ;; Not available on CRAN.
7100 (url "https://github.com/DejanDraschkow/mixedpower")
7101 (commit (string-append "v" version))))
7102 (file-name (git-file-name name version))
7104 (base32 "1dy1i8lijbq59xl7482j17a0r4rsdy61smzddk8jsr8nygp2gqy8"))))
7105 (properties `((upstream-name . "mixedpower")))
7106 (build-system r-build-system)
7108 (list r-doparallel r-foreach r-ggplot2 r-lme4 r-reshape2))
7109 (home-page "https://github.com/DejanDraschkow/mixedpower")
7111 "Pilotdata based simulations for estimating power in linear mixed models")
7113 "Implementation of a simulation based aproach to power analysis. Mixedpower uses
7114 lotdata and a linear mixed model fitted with lme4 to simulate new data sets.
7115 wer is computed seperate for every effect in the model output as the relation
7116 significant simulations to all simulations. More conservative simulations as
7117 protection against a bias in the pilotdata are available aswell as methods for
7118 otting the results.")
7119 (license license:gpl3)))
7121 (define-public r-colorway
7122 (let ((commit "8ba8f0026aba37752c6770de45bf53b1b0f48afc")
7126 (version (git-version "0.2.0" revision commit))
7130 (url "https://github.com/hypercompetent/colorway")
7132 (file-name (git-file-name name version))
7135 "0r6yhnzx3ll1z12pp6y8fqbrx7v18rcff2j2179bqy9ca2d2d94l"))))
7136 (properties `((upstream-name . "colorway")))
7137 (build-system r-build-system)
7138 (propagated-inputs (list r-dplyr r-ggplot2 r-rlang))
7139 (home-page "https://github.com/hypercompetent/colorway")
7140 (synopsis "Functions for colors in R")
7142 "This package provides a collection of (mostly simple) functions for
7143 generating and manipulating colors in R.")
7144 (license license:gpl3))))
7146 (define-public r-reghelper
7148 (name "r-reghelper")
7152 (uri (cran-uri "reghelper" version))
7155 "0v1987rs6kcpizfhrp3hxsyx9arn5vsbapjfgj9478j73mm844ji"))))
7156 (properties `((upstream-name . "reghelper")))
7157 (build-system r-build-system)
7158 (propagated-inputs (list r-ggplot2 r-lme4 r-mass r-nlme))
7159 (home-page "https://github.com/jeff-hughes/reghelper")
7160 (synopsis "Helper Functions for Regression Analysis")
7162 "This package provides a set of functions used to automate commonly used methods
7163 in regression analysis. This includes plotting interactions, and calculating
7164 simple slopes, standardized coefficients, regions of significance (Johnson &
7165 Neyman, 1936; cf. Spiller et al., 2012), etc.")
7166 (license license:gpl3)))
7168 (define-public r-mumin
7174 (uri (cran-uri "MuMIn" version))
7177 "1xhsc9hmx2b3zqyvpjs64rs90ccrfcsglrq2mhh85mgplsnva8qj"))))
7178 (properties `((upstream-name . "MuMIn")))
7179 (build-system r-build-system)
7180 (propagated-inputs (list r-matrix r-nlme))
7181 (home-page "https://cran.r-project.org/package=MuMIn")
7182 (synopsis "Multi-Model Inference")
7184 "Tools for performing model selection and model averaging. Automated model
7185 selection through subsetting the maximum model, with optional constraints for
7186 model inclusion. Model parameter and prediction averaging based on model
7187 weights derived from information criteria (AICc and alike) or custom model
7188 weighting schemes.")
7189 (license license:gpl2)))