5e82ecca56b6375083b444e50104588dc21f7175
[jackhill/guix/guix.git] / gnu / packages / statistics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 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 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, 2018, 2019, 2020 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 ;;;
16 ;;; This file is part of GNU Guix.
17 ;;;
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
22 ;;;
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
27 ;;;
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30
31 (define-module (gnu packages statistics)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix download)
35 #:use-module (guix hg-download)
36 #:use-module (guix git-download)
37 #:use-module (guix utils)
38 #:use-module (guix build-system ant)
39 #:use-module (guix build-system gnu)
40 #:use-module (guix build-system r)
41 #:use-module (guix build-system python)
42 #:use-module (guix build-system trivial)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages check)
48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages cran)
50 #:use-module (gnu packages curl)
51 #:use-module (gnu packages emacs)
52 #:use-module (gnu packages emacs-xyz)
53 #:use-module (gnu packages fontutils)
54 #:use-module (gnu packages gcc)
55 #:use-module (gnu packages gtk)
56 #:use-module (gnu packages gettext)
57 #:use-module (gnu packages glib)
58 #:use-module (gnu packages haskell-xyz)
59 #:use-module (gnu packages icu4c)
60 #:use-module (gnu packages image)
61 #:use-module (gnu packages java)
62 #:use-module (gnu packages libffi)
63 #:use-module (gnu packages machine-learning)
64 #:use-module (gnu packages maths)
65 #:use-module (gnu packages multiprecision)
66 #:use-module (gnu packages pcre)
67 #:use-module (gnu packages perl)
68 #:use-module (gnu packages pkg-config)
69 #:use-module (gnu packages python)
70 #:use-module (gnu packages python-science)
71 #:use-module (gnu packages python-xyz)
72 #:use-module (gnu packages readline)
73 #:use-module (gnu packages sphinx)
74 #:use-module (gnu packages ssh)
75 #:use-module (gnu packages tcl)
76 #:use-module (gnu packages tex)
77 #:use-module (gnu packages texinfo)
78 #:use-module (gnu packages time)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages base)
81 #:use-module (gnu packages version-control)
82 #:use-module (gnu packages web)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages xorg)
85 #:use-module (srfi srfi-1))
86
87
88 (define-public pspp
89 (package
90 (name "pspp")
91 (version "1.4.1")
92 (source
93 (origin
94 (method url-fetch)
95 (uri (string-append "mirror://gnu/pspp/pspp-"
96 version ".tar.gz"))
97 (sha256
98 (base32
99 "0lqrash677b09zxdlxp89z6k02y4i23mbqg83956dwl69wc53dan"))))
100 (build-system gnu-build-system)
101 (inputs
102 `(("cairo" ,cairo)
103 ("gettext" ,gettext-minimal)
104 ("gsl" ,gsl)
105 ("libxml2" ,libxml2)
106 ("pango" ,pango)
107 ("readline" ,readline)
108 ("gtk" ,gtk+)
109 ("gtksourceview" ,gtksourceview-3)
110 ("spread-sheet-widget" ,spread-sheet-widget)
111 ("zlib" ,zlib)))
112 (native-inputs
113 `(("autoconf" ,autoconf) ;for tests
114 ("glib" ,glib "bin") ;for glib-genmarshal
115 ("perl" ,perl)
116 ("pkg-config" ,pkg-config)
117 ("python" ,python-2) ;for tests
118 ("texinfo" ,texinfo)))
119 (home-page "https://www.gnu.org/software/pspp/")
120 (synopsis "Statistical analysis")
121 (description
122 "GNU PSPP is a statistical analysis program. It can perform
123 descriptive statistics, T-tests, linear regression and non-parametric tests.
124 It features both a graphical interface as well as command-line input. PSPP
125 is designed to interoperate with Gnumeric, LibreOffice and OpenOffice. Data
126 can be imported from spreadsheets, text files and database sources and it can
127 be output in text, PostScript, PDF or HTML.")
128 (license license:gpl3+)))
129
130 (define-public jags
131 (package
132 (name "jags")
133 (version "4.3.0")
134 (source (origin
135 (method url-fetch)
136 (uri (string-append "mirror://sourceforge/mcmc-jags/JAGS/"
137 (version-major version) ".x/Source/"
138 "JAGS-" version ".tar.gz"))
139 (sha256
140 (base32
141 "1z3icccg2ic56vmhyrpinlsvpq7kcaflk1731rgpvz9bk1bxvica"))))
142 (build-system gnu-build-system)
143 (home-page "http://mcmc-jags.sourceforge.net/")
144 (native-inputs
145 `(("gfortran" ,gfortran)
146 ("lapack" ,lapack)))
147 (synopsis "Gibbs sampler")
148 (description "JAGS is Just Another Gibbs Sampler. It is a program for
149 analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC)
150 simulation not wholly unlike BUGS. JAGS was written with three aims in mind:
151
152 @enumerate
153 @item To have a cross-platform engine for the BUGS language;
154 @item To be extensible, allowing users to write their own functions,
155 distributions and samplers;
156 @item To be a platform for experimentation with ideas in Bayesian modelling.
157 @end enumerate\n")
158 (license license:gpl2)))
159
160 (define-public libxls
161 (package
162 (name "libxls")
163 (version "1.6.2")
164 (source
165 (origin
166 (method url-fetch)
167 (uri (string-append "https://github.com/libxls/libxls/releases/download/"
168 "v" version "/libxls-" version ".tar.gz"))
169 (sha256
170 (base32 "0wg3ymr43aa1j3scyl9x83b2xgg7wilzpil0dj91a8dzji6w7b2x"))))
171 (build-system gnu-build-system)
172 (home-page "https://github.com/libxls/libxls")
173 (synopsis "Read binary (.xls) Excel spreadsheet files")
174 (description
175 "libxls is a C library to read .xls spreadsheet files in the binary OLE
176 BIFF8 format as created by Excel 97 and later versions. It cannot write them.
177
178 This package also provides @command{xls2csv} to export Excel files to CSV.")
179 (license license:bsd-2)))
180
181 ;; Update this package together with the set of recommended packages: r-boot,
182 ;; r-class, r-cluster, r-codetools, r-foreign, r-kernsmooth, r-lattice,
183 ;; r-mass, r-matrix, r-mgcv, r-nlme, r-nnet, r-rpart, r-spatial, r-survival.
184 (define r-with-tests
185 (package
186 (name "r-with-tests")
187 (version "4.0.4")
188 (source (origin
189 (method url-fetch)
190 (uri (string-append "mirror://cran/src/base/R-"
191 (version-major version) "/R-"
192 version ".tar.gz"))
193 (sha256
194 (base32
195 "0bl098xcv8v316kqnf43v6gb4kcsv31ydqfm1f7qr824jzb2fgsj"))))
196 (build-system gnu-build-system)
197 (arguments
198 `(#:disallowed-references (,tzdata-for-tests)
199 #:make-flags
200 (list (string-append "LDFLAGS=-Wl,-rpath="
201 (assoc-ref %outputs "out")
202 "/lib/R/lib")
203 ;; This affects the embedded timestamp of only the core packages.
204 "PKG_BUILT_STAMP=1970-01-01")
205 #:phases
206 (modify-phases %standard-phases
207 (add-before 'configure 'do-not-compress-serialized-files
208 (lambda* (#:key inputs #:allow-other-keys)
209 ;; This ensures that Guix can detect embedded store references;
210 ;; see bug #28157 for details.
211 (substitute* "src/library/base/makebasedb.R"
212 (("compress = TRUE") "compress = FALSE"))
213 #t))
214 (add-before 'configure 'patch-uname
215 (lambda* (#:key inputs #:allow-other-keys)
216 (let ((uname-bin (string-append (assoc-ref inputs "coreutils")
217 "/bin/uname")))
218 (substitute* "src/scripts/R.sh.in"
219 (("uname") uname-bin)))
220 #t))
221 (add-after 'unpack 'build-reproducibly
222 (lambda _
223 ;; The documentation contains time stamps to demonstrate
224 ;; documentation generation in different phases.
225 (substitute* "src/library/tools/man/Rd2HTML.Rd"
226 (("\\\\%Y-\\\\%m-\\\\%d at \\\\%H:\\\\%M:\\\\%S")
227 "(removed for reproducibility)"))
228
229 ;; Remove timestamp from tracing environment. This fixes
230 ;; reproducibility of "methods.rd{b,x}".
231 (substitute* "src/library/methods/R/trace.R"
232 (("dateCreated = Sys.time\\(\\)")
233 "dateCreated = as.POSIXct(\"1970-1-1 00:00:00\", tz = \"UTC\")"))
234
235 ;; Ensure that gzipped files are reproducible.
236 (substitute* '("src/library/grDevices/Makefile.in"
237 "doc/manual/Makefile.in")
238 (("R_GZIPCMD\\)" line)
239 (string-append line " -n")))
240
241 ;; The "srcfile" procedure in "src/library/base/R/srcfile.R"
242 ;; queries the mtime of a given file and records it in an object.
243 ;; This is acceptable at runtime to detect stale source files,
244 ;; but it destroys reproducibility at build time.
245
246 ;; Similarly, the "srcfilecopy" procedure records the current
247 ;; time. We change both of them to respect SOURCE_DATE_EPOCH.
248 (substitute* "src/library/base/R/srcfile.R"
249 (("timestamp <- (timestamp.*|file.mtime.*)" _ time)
250 (string-append "timestamp <- \
251 as.POSIXct(if (\"\" != Sys.getenv(\"SOURCE_DATE_EPOCH\")) {\
252 as.numeric(Sys.getenv(\"SOURCE_DATE_EPOCH\"))\
253 } else { " time "}, origin=\"1970-01-01\")\n")))
254
255 ;; This library is installed using "install_package_description",
256 ;; so we need to pass the "builtStamp" argument.
257 (substitute* "src/library/tools/Makefile.in"
258 (("(install_package_description\\(.*\"')\\)\"" line prefix)
259 (string-append prefix ", builtStamp='1970-01-01')\"")))
260
261 (substitute* "src/library/Recommended/Makefile.in"
262 (("INSTALL_OPTS =" m)
263 (string-append m " --built-timestamp=1970-01-01" m)))
264
265 ;; R bundles an older version of help2man, which does not respect
266 ;; SOURCE_DATE_EPOCH. We cannot just use the latest help2man,
267 ;; because that breaks a test.
268 (with-fluids ((%default-port-encoding "ISO-8859-1"))
269 (substitute* "tools/help2man.pl"
270 (("my \\$date = strftime \"%B %Y\", localtime" line)
271 (string-append line " 1"))))
272
273 ;; The "References" section of this file when converted to
274 ;; package.rds is sometimes stored with a newline, sometimes with
275 ;; a space. We avoid this problem by removing the line break
276 ;; that is suspected to be the culprit.
277 (substitute* "src/library/methods/DESCRIPTION.in"
278 (("\\(2008\\)\n") "(2008) ")
279 ((" ``Software") "``Software"))
280 #t))
281 (add-before 'build 'set-locales
282 (lambda _
283 (setlocale LC_ALL "C")
284 (setenv "LC_ALL" "C")
285 #t))
286 (add-before 'configure 'set-default-pager
287 ;; Set default pager to "cat", because otherwise it is "false",
288 ;; making "help()" print nothing at all.
289 (lambda _ (setenv "PAGER" "cat") #t))
290 (add-before 'check 'set-timezone
291 ;; Some tests require the timezone to be set. However, the
292 ;; timezone may not just be "UTC", or else a brittle regression
293 ;; test in reg-tests-1d will fail.
294 (lambda* (#:key inputs #:allow-other-keys)
295 (setenv "TZ" "UTC+1")
296 (setenv "TZDIR"
297 (string-append (assoc-ref inputs "tzdata")
298 "/share/zoneinfo"))
299 #t))
300 (add-after 'build 'make-info
301 (lambda _ (invoke "make" "info")))
302 (add-after 'build 'install-info
303 (lambda _ (invoke "make" "install-info"))))
304 #:configure-flags
305 `(;; We build the recommended packages here, because they are needed in
306 ;; order to run the test suite. We disable them in the r-minimal
307 ;; package.
308 "--with-cairo"
309 "--with-blas=-lopenblas"
310 "--with-libpng"
311 "--with-jpeglib"
312 "--with-libtiff"
313 "--with-ICU"
314 "--with-tcltk"
315 ,(string-append "--with-tcl-config="
316 (assoc-ref %build-inputs "tcl")
317 "/lib/tclConfig.sh")
318 ,(string-append "--with-tk-config="
319 (assoc-ref %build-inputs "tk")
320 "/lib/tkConfig.sh")
321 "--enable-R-shlib"
322 "--enable-BLAS-shlib"
323 "--with-system-tre")))
324 ;; R has some support for Java. When the JDK is available at configure
325 ;; time environment variables pointing to the JDK will be recorded under
326 ;; $R_HOME/etc and ./tools/getsp.java will be compiled which is used by "R
327 ;; CMD javareconf". "R CMD javareconf" appears to only be used to update
328 ;; the recorded environment variables in $R_HOME/etc. Refer to
329 ;; https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
330 ;; for additional information.
331
332 ;; As the JDK is a rather large input with only very limited effects on R,
333 ;; we decided to drop it.
334 (native-inputs
335 `(("bzip2" ,bzip2)
336 ("perl" ,perl)
337 ("pkg-config" ,pkg-config)
338 ("texinfo" ,texinfo) ; for building HTML manuals
339 ("texlive" ,(texlive-union (list texlive-ae
340 texlive-inconsolata
341 texlive-fonts-ec
342 texlive-amsfonts
343 texlive-latex-base
344 texlive-latex-fancyvrb
345 texlive-latex-graphics
346 texlive-latex-hyperref
347 texlive-latex-oberdiek
348 texlive-latex-tools
349 texlive-latex-upquote
350 texlive-latex-url
351 texlive-latex-xkeyval)))
352 ("tzdata" ,tzdata-for-tests)
353 ("xz" ,xz)))
354 (inputs
355 `(;; We need not only cairo here, but pango to ensure that tests for the
356 ;; "cairo" bitmapType plotting backend succeed.
357 ("pango" ,pango)
358 ("coreutils" ,coreutils)
359 ("curl" ,curl)
360 ("openblas" ,openblas)
361 ("gfortran" ,gfortran)
362 ("icu4c" ,icu4c)
363 ("libjpeg" ,libjpeg-turbo)
364 ("libpng" ,libpng)
365 ("libtiff" ,libtiff)
366 ("libxt" ,libxt)
367 ("pcre2" ,pcre2)
368 ("readline" ,readline)
369 ;; This avoids a reference to the ungraftable static bash. R uses the
370 ;; detected shell for the "system" procedure.
371 ("bash" ,bash-minimal)
372 ("tcl" ,tcl)
373 ("tk" ,tk)
374 ("which" ,which)
375 ("zlib" ,zlib)))
376 (native-search-paths
377 (list (search-path-specification
378 (variable "R_LIBS_SITE")
379 (files (list "site-library/")))))
380 (home-page "https://www.r-project.org/")
381 (synopsis "Environment for statistical computing and graphics")
382 (description
383 "R is a language and environment for statistical computing and graphics.
384 It provides a variety of statistical techniques, such as linear and nonlinear
385 modeling, classical statistical tests, time-series analysis, classification
386 and clustering. It also provides robust support for producing
387 publication-quality data plots. A large amount of 3rd-party packages are
388 available, greatly increasing its breadth and scope.")
389 (license license:gpl3+)))
390
391 (define-public r-minimal
392 (package (inherit r-with-tests)
393 (name "r-minimal")
394 (arguments
395 `(#:tests? #f
396 ,@(substitute-keyword-arguments (package-arguments r-with-tests)
397 ((#:configure-flags flags)
398 ;; Do not build the recommended packages. The build system creates
399 ;; random temporary directories and embeds their names in some
400 ;; package files. We build these packages with the r-build-system
401 ;; instead.
402 `(cons "--without-recommended-packages" ,flags)))))))
403
404 (define-public rmath-standalone
405 (package (inherit r-minimal)
406 (name "rmath-standalone")
407 (arguments
408 '(#:phases
409 (modify-phases %standard-phases
410 (add-after 'configure 'chdir
411 (lambda _ (chdir "src/nmath/standalone/") #t)))))
412 (synopsis "Standalone R math library")
413 (description
414 "This package provides the R math library as an independent package.")))
415
416 (define-public r-boot
417 (package
418 (name "r-boot")
419 (version "1.3-28")
420 (source
421 (origin
422 (method url-fetch)
423 (uri (cran-uri "boot" version))
424 (sha256
425 (base32
426 "0cjafhqv1c1mrjjcasqr767vs96wjcc6am9r1icryr8l4zymhwcz"))))
427 (build-system r-build-system)
428 (home-page "https://cran.r-project.org/web/packages/boot")
429 (synopsis "Bootstrap functions for R")
430 (description
431 "This package provides functions and datasets for bootstrapping from the
432 book \"Bootstrap Methods and Their Application\" by A.C. Davison and
433 D.V. Hinkley (1997, CUP), originally written by Angelo Canty for S.")
434 ;; Unlimited distribution
435 (license (license:non-copyleft "file://R/bootfuns.q"))))
436
437 (define-public r-mass
438 (package
439 (name "r-mass")
440 (version "7.3-54")
441 (source
442 (origin
443 (method url-fetch)
444 (uri (cran-uri "MASS" version))
445 (sha256
446 (base32
447 "08g8ashbcas3ac98kxvchbwc8da9dq9anpngb4arnw62npawq05q"))))
448 (properties `((upstream-name . "MASS")))
449 (build-system r-build-system)
450 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
451 (synopsis "Support functions and datasets for Venables and Ripley's MASS")
452 (description
453 "This package provides functions and datasets for the book \"Modern
454 Applied Statistics with S\" (4th edition, 2002) by Venables and Ripley.")
455 ;; Either version may be picked.
456 (license (list license:gpl2 license:gpl3))))
457
458 (define-public r-class
459 (package
460 (name "r-class")
461 (version "7.3-19")
462 (source
463 (origin
464 (method url-fetch)
465 (uri (cran-uri "class" version))
466 (sha256
467 (base32
468 "0dxyxk59fs90713qisanlvk4p0d3l8n8n7zdd4d5c290naaaw83q"))))
469 (build-system r-build-system)
470 (propagated-inputs
471 `(("r-mass" ,r-mass)))
472 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
473 (synopsis "R functions for classification")
474 (description
475 "This package provides various functions for classification, including
476 k-nearest neighbour, Learning Vector Quantization and Self-Organizing Maps.")
477 ;; Either of the two versions can be picked.
478 (license (list license:gpl2 license:gpl3))))
479
480 (define-public r-cluster
481 (package
482 (name "r-cluster")
483 (version "2.1.2")
484 (source
485 (origin
486 (method url-fetch)
487 (uri (cran-uri "cluster" version))
488 (sha256
489 (base32
490 "168l653ygkg21fwrqrf7lsqi5p6jzhgmcvhrwv7lznkdzdhag2jw"))))
491 (build-system r-build-system)
492 (native-inputs
493 `(("gfortran" ,gfortran)))
494 (home-page "https://cran.r-project.org/web/packages/cluster")
495 (synopsis "Methods for cluster analysis")
496 (description
497 "This package provides methods for cluster analysis. It is a much
498 extended version of the original from Peter Rousseeuw, Anja Struyf and Mia
499 Hubert, based on Kaufman and Rousseeuw (1990) \"Finding Groups in Data\".")
500 (license license:gpl2+)))
501
502 (define-public r-codetools
503 (package
504 (name "r-codetools")
505 (version "0.2-18")
506 (source
507 (origin
508 (method url-fetch)
509 (uri (cran-uri "codetools" version))
510 (sha256
511 (base32
512 "0a2c115glq8jxixwfigrpvjabhxchn9r4mc40y41dg9dg6wsd7hs"))))
513 (build-system r-build-system)
514 (home-page "https://cran.r-project.org/web/packages/codetools")
515 (synopsis "Code analysis tools for R")
516 (description "This package provides code analysis tools for R to check R
517 code for possible problems.")
518 ;; Any version of the GPL.
519 (license (list license:gpl2+ license:gpl3+))))
520
521 (define-public r-foreign
522 (package
523 (name "r-foreign")
524 (version "0.8-81")
525 (source
526 (origin
527 (method url-fetch)
528 (uri (cran-uri "foreign" version))
529 (sha256
530 (base32
531 "0b4rca1bl8xxna05057hchbwfmgjgx0n140szabpc0raizqzks0s"))))
532 (build-system r-build-system)
533 (home-page "https://cran.r-project.org/web/packages/foreign")
534 (synopsis "Read data stored by other statistics software")
535 (description
536 "This package provides functions for reading and writing data stored by
537 some versions of Epi Info, Minitab, S, SAS, SPSS, Stata, Systat and Weka and
538 for reading and writing some dBase files.")
539 (license license:gpl2+)))
540
541 (define-public r-kernsmooth
542 (package
543 (name "r-kernsmooth")
544 (version "2.23-20")
545 (source
546 (origin
547 (method url-fetch)
548 (uri (cran-uri "KernSmooth" version))
549 (sha256
550 (base32
551 "0fgclmzk3ksjsh3j47jqzm3jhqrwn12rkp7f84yr6wr43q2pbsr0"))))
552 (properties `((upstream-name . "KernSmooth")))
553 (build-system r-build-system)
554 (native-inputs
555 `(("gfortran" ,gfortran)))
556 (home-page "https://cran.r-project.org/web/packages/KernSmooth")
557 (synopsis "Functions for kernel smoothing")
558 (description
559 "This package provides functions for kernel smoothing (and density
560 estimation) corresponding to the book: Wand, M.P. and Jones, M.C. (1995)
561 \"Kernel Smoothing\".")
562 ;; Unlimited use and distribution
563 (license (license:non-copyleft "file://LICENCE.note"))))
564
565 (define-public r-lattice
566 (package
567 (name "r-lattice")
568 (version "0.20-44")
569 (source (origin
570 (method url-fetch)
571 (uri (cran-uri "lattice" version))
572 (sha256
573 (base32
574 "16yvdklwgjfclayh15axknjwzygx8i7y8zl5mlw8m85dqzihifap"))))
575 (build-system r-build-system)
576 (home-page "http://lattice.r-forge.r-project.org/")
577 (synopsis "High-level data visualization system")
578 (description
579 "The lattice package provides a powerful and elegant high-level data
580 visualization system inspired by Trellis graphics, with an emphasis on
581 multivariate data. Lattice is sufficient for typical graphics needs, and is
582 also flexible enough to handle most nonstandard requirements.")
583 (license license:gpl2+)))
584
585 (define-public r-matrix
586 (package
587 (name "r-matrix")
588 (version "1.3-2")
589 (source
590 (origin
591 (method url-fetch)
592 (uri (cran-uri "Matrix" version))
593 (sha256
594 (base32
595 "0ccmmfd0lbvrhzjzr28k4yfawiywa1m4ics34zyi3rqq23csa2wm"))))
596 (properties `((upstream-name . "Matrix")))
597 (build-system r-build-system)
598 (propagated-inputs
599 `(("r-lattice" ,r-lattice)))
600 (home-page "http://Matrix.R-forge.R-project.org/")
601 (synopsis "Sparse and dense matrix classes and methods")
602 (description
603 "This package provides classes and methods for dense and sparse matrices
604 and operations on them using LAPACK and SuiteSparse.")
605 (license license:gpl2+)))
606
607 (define-public r-nlme
608 (package
609 (name "r-nlme")
610 (version "3.1-152")
611 (source
612 (origin
613 (method url-fetch)
614 (uri (cran-uri "nlme" version))
615 (sha256
616 (base32 "0pji9vvmjqyk8b7lhxsixnagsrz2hmnwy6ilc2gg5ji1y6qx2rav"))))
617 (build-system r-build-system)
618 (propagated-inputs
619 `(("r-lattice" ,r-lattice)))
620 (native-inputs
621 `(("gfortran" ,gfortran)))
622 (home-page "https://cran.r-project.org/web/packages/nlme")
623 (synopsis "Linear and nonlinear mixed effects models")
624 (description
625 "This package provides tools to fit and compare Gaussian linear and
626 nonlinear mixed-effects models.")
627 (license license:gpl2+)))
628
629 (define-public r-mgcv
630 (package
631 (name "r-mgcv")
632 (version "1.8-35")
633 (source
634 (origin
635 (method url-fetch)
636 (uri (cran-uri "mgcv" version))
637 (sha256
638 (base32 "1dyphss1bw5rd8apgxsb364rcrkdbc9pcbsa0jy95mg9g5434wvk"))))
639 (build-system r-build-system)
640 (propagated-inputs
641 `(("r-matrix" ,r-matrix)
642 ("r-nlme" ,r-nlme)))
643 (home-page "https://cran.r-project.org/web/packages/mgcv")
644 (synopsis "Mixed generalised additive model computation")
645 (description
646 "GAMs, GAMMs and other generalized ridge regression with multiple smoothing
647 parameter estimation by GCV, REML or UBRE/AIC. The library includes a
648 @code{gam()} function, a wide variety of smoothers, JAGS support and
649 distributions beyond the exponential family.")
650 (license license:gpl2+)))
651
652 (define-public r-nnet
653 (package
654 (name "r-nnet")
655 (version "7.3-16")
656 (source
657 (origin
658 (method url-fetch)
659 (uri (cran-uri "nnet" version))
660 (sha256
661 (base32
662 "0smmyx4vhlz99vy4w238y913gq74845v0l1p0g1kgydsp9lijlcr"))))
663 (build-system r-build-system)
664 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
665 (synopsis "Feed-forward neural networks and multinomial log-linear models")
666 (description
667 "This package provides functions for feed-forward neural networks with a
668 single hidden layer, and for multinomial log-linear models.")
669 (license (list license:gpl2+ license:gpl3+))))
670
671 (define-public r-rpart
672 (package
673 (name "r-rpart")
674 (version "4.1-15")
675 (source
676 (origin
677 (method url-fetch)
678 (uri (cran-uri "rpart" version))
679 (sha256
680 (base32
681 "0p5frya963ppn476p5dxs2mnarsalksr6gw9zzmjsn8ikq7bx3ib"))))
682 (build-system r-build-system)
683 (home-page "https://cran.r-project.org/web/packages/rpart")
684 (synopsis "Recursive partitioning and regression trees")
685 (description
686 "This package provides recursive partitioning functions for
687 classification, regression and survival trees.")
688 (license (list license:gpl2+ license:gpl3+))))
689
690 (define-public r-spatial
691 (package
692 (name "r-spatial")
693 (version "7.3-14")
694 (source
695 (origin
696 (method url-fetch)
697 (uri (cran-uri "spatial" version))
698 (sha256
699 (base32
700 "0dlafq744mahxpb13llmsrg54fzww8ld1nbxmr7m851gff11kk2j"))))
701 (build-system r-build-system)
702 (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
703 (synopsis "Functions for kriging and point pattern analysis")
704 (description
705 "This package provides functions for kriging and point pattern
706 analysis.")
707 ;; Either version may be picked.
708 (license (list license:gpl2 license:gpl3))))
709
710 (define-public r-survival
711 (package
712 (name "r-survival")
713 (version "3.2-11")
714 (source
715 (origin
716 (method url-fetch)
717 (uri (cran-uri "survival" version))
718 (sha256
719 (base32
720 "0w0gkni1w8rbmfw7yl08bl1s9lij1yhbkj4dvmxcarkkw26sjjzs"))))
721 (build-system r-build-system)
722 (propagated-inputs
723 `(("r-matrix" ,r-matrix)))
724 (home-page "https://github.com/therneau/survival")
725 (synopsis "Survival analysis")
726 (description
727 "This package contains the core survival analysis routines, including
728 definition of Surv objects, Kaplan-Meier and Aalen-Johansen (multi-state)
729 curves, Cox models, and parametric accelerated failure time models.")
730 (license license:lgpl2.0+)))
731
732 (define-public r
733 (package (inherit r-minimal)
734 (name "r")
735 (source #f)
736 (build-system trivial-build-system)
737 (arguments '(#:builder (begin (mkdir %output) #t)))
738 (propagated-inputs
739 `(("r-minimal" ,r-minimal)
740 ("r-boot" ,r-boot)
741 ("r-class" ,r-class)
742 ("r-cluster" ,r-cluster)
743 ("r-codetools" ,r-codetools)
744 ("r-foreign" ,r-foreign)
745 ("r-kernsmooth" ,r-kernsmooth)
746 ("r-lattice" ,r-lattice)
747 ("r-mass" ,r-mass)
748 ("r-matrix" ,r-matrix)
749 ("r-mgcv" ,r-mgcv)
750 ("r-nlme" ,r-nlme)
751 ("r-nnet" ,r-nnet)
752 ("r-rpart" ,r-rpart)
753 ("r-spatial" ,r-spatial)
754 ("r-survival" ,r-survival)))))
755
756 (define-public r-bit
757 (package
758 (name "r-bit")
759 (version "4.0.4")
760 (source
761 (origin
762 (method url-fetch)
763 (uri (cran-uri "bit" version))
764 (sha256
765 (base32
766 "0s7isadibxp2wr62r5cpbyh9z31sczzfz4j3rm7gxgjfpqgq8174"))))
767 (build-system r-build-system)
768 (native-inputs
769 `(("r-knitr" ,r-knitr)))
770 (home-page "http://ff.r-forge.r-project.org")
771 (synopsis "Class for vectors of 1-bit booleans")
772 (description
773 "This package provides bitmapped vectors of booleans (no @code{NA}s),
774 coercion from and to logicals, integers and integer subscripts, fast boolean
775 operators and fast summary statistics. With @code{bit} class vectors of true
776 binary booleans, @code{TRUE} and @code{FALSE} can be stored with 1 bit only.")
777 (license license:gpl2)))
778
779 (define-public r-bit64
780 (package
781 (name "r-bit64")
782 (version "4.0.5")
783 (source
784 (origin
785 (method url-fetch)
786 (uri (cran-uri "bit64" version))
787 (sha256
788 (base32
789 "0y0m7q1rwam1g88cjx7zyi07mj5dipxd9jkl90f294syx8k6ipr5"))))
790 (build-system r-build-system)
791 (propagated-inputs
792 `(("r-bit" ,r-bit)))
793 (home-page "http://ff.r-forge.r-project.org/")
794 (synopsis "S3 class for vectors of 64 bit integers")
795 (description
796 "The bit64 package provides serializable S3 atomic 64 bit (signed)
797 integers that can be used in vectors, matrices, arrays and @code{data.frames}.
798 Methods are available for coercion from and to logicals, integers, doubles,
799 characters and factors as well as many elementwise and summary functions.
800 Many fast algorithmic operations such as @code{match} and @code{order} support
801 interactive data exploration and manipulation and optionally leverage
802 caching.")
803 (license license:gpl2)))
804
805 (define-public r-dichromat
806 (package
807 (name "r-dichromat")
808 (version "2.0-0")
809 (source
810 (origin
811 (method url-fetch)
812 (uri (cran-uri "dichromat" version))
813 (sha256
814 (base32 "1l8db1nk29ccqg3mkbafvfiw0775iq4gapysf88xq2zp6spiw59i"))))
815 (build-system r-build-system)
816 (home-page "https://cran.r-project.org/web/packages/dichromat")
817 (synopsis "Color schemes for dichromats")
818 (description
819 "Dichromat collapses red-green or green-blue distinctions to simulate the
820 effects of different types of color-blindness.")
821 (license license:gpl2+)))
822
823 (define-public r-digest
824 (package
825 (name "r-digest")
826 (version "0.6.27")
827 (source
828 (origin
829 (method url-fetch)
830 (uri (cran-uri "digest" version))
831 (sha256
832 (base32 "0gr503pinailfglpfbzxprqw7w1jla8jr9nl856a4zch498zg1gl"))))
833 (build-system r-build-system)
834 ;; Vignettes require r-knitr, which requires r-digest, so we have to
835 ;; disable them and the tests.
836 (arguments
837 `(#:tests? #f
838 #:configure-flags (list "--no-build-vignettes")))
839 (home-page "http://dirk.eddelbuettel.com/code/digest.html")
840 (synopsis "Create cryptographic hash digests of R objects")
841 (description
842 "This package contains an implementation of a function @code{digest()} for
843 the creation of hash digests of arbitrary R objects (using the md5, sha-1,
844 sha-256, crc32, xxhash and murmurhash algorithms) permitting easy comparison
845 of R language objects, as well as a function @code{hmac()} to create hash-based
846 message authentication code.
847
848 Please note that this package is not meant to be deployed for cryptographic
849 purposes for which more comprehensive (and widely tested) libraries such as
850 OpenSSL should be used.")
851 (license license:gpl2+)))
852
853 (define-public r-estimability
854 (package
855 (name "r-estimability")
856 (version "1.3")
857 (source (origin
858 (method url-fetch)
859 (uri (cran-uri "estimability" version))
860 (sha256
861 (base32
862 "0cifdaa71spkcxl4db4z884jrya865sg3dhcv4isd8fnzg2pjcd3"))))
863 (build-system r-build-system)
864 (home-page "https://cran.r-project.org/web/packages/estimability")
865 (synopsis "Tools for assessing estimability of linear predictions")
866 (description "Provides tools for determining estimability of linear
867 functions of regression coefficients, and @code{epredict} methods that handle
868 non-estimable cases correctly.")
869 (license license:gpl2+)))
870
871 (define-public r-labeling
872 (package
873 (name "r-labeling")
874 (version "0.4.2")
875 (source
876 (origin
877 (method url-fetch)
878 (uri (cran-uri "labeling" version))
879 (sha256
880 (base32 "0rfikd9gy70b8qz87q9axcwv8nmn9mbxfdwypxi0sghpfs9df8p0"))))
881 (build-system r-build-system)
882 (home-page "https://cran.r-project.org/web/packages/labeling")
883 (synopsis "Axis labeling algorithms")
884 (description "The labeling package provides a range of axis labeling
885 algorithms.")
886 (license license:expat)))
887
888 (define-public r-magrittr
889 (package
890 (name "r-magrittr")
891 (version "2.0.1")
892 (source
893 (origin
894 (method url-fetch)
895 (uri (cran-uri "magrittr" version))
896 (sha256
897 (base32 "0pxd99fvg406whqsk9wh756rayrwh84xn3h44zmlpcy23kanbhkm"))))
898 (build-system r-build-system)
899 ;; knitr needs magrittr
900 #;
901 (native-inputs
902 `(("r-knitr" ,r-knitr)))
903 (home-page "https://cran.r-project.org/web/packages/magrittr/index.html")
904 (synopsis "A forward-pipe operator for R")
905 (description
906 "Magrittr provides a mechanism for chaining commands with a new
907 forward-pipe operator, %>%. This operator will forward a value, or the result
908 of an expression, into the next function call/expression. There is flexible
909 support for the type of right-hand side expressions. For more information,
910 see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"")
911 (license license:expat)))
912
913 (define-public r-munsell
914 (package
915 (name "r-munsell")
916 (version "0.5.0")
917 (source
918 (origin
919 (method url-fetch)
920 (uri (cran-uri "munsell" version))
921 (sha256
922 (base32 "16g1fzisbpqb15yh3pqf3iia4csppva5dnv1z88x9dg263xskwyh"))))
923 (build-system r-build-system)
924 (propagated-inputs
925 `(("r-colorspace" ,r-colorspace)))
926 (home-page "https://cran.r-project.org/web/packages/munsell")
927 (synopsis "Munsell colour system")
928 (description
929 "The Munsell package contains Functions for exploring and using the
930 Munsell colour system.")
931 (license license:expat)))
932
933 (define-public r-permute
934 (package
935 (name "r-permute")
936 (version "0.9-5")
937 (source
938 (origin
939 (method url-fetch)
940 (uri (cran-uri "permute" version))
941 (sha256
942 (base32
943 "0ra8p5mf2590azrkas8z2ry7mif77xqxd29n4zgyi5vll225726j"))))
944 (build-system r-build-system)
945 ;; Tests do not run correctly, but running them properly would entail a
946 ;; circular dependency with vegan.
947 (home-page "https://github.com/gavinsimpson/permute")
948 (synopsis "Functions for Generating Restricted Permutations of Data")
949 (description
950 "This package provides a set of restricted permutation designs for freely
951 exchangeable, line transects (time series), spatial grid designs and permutation
952 of blocks (groups of samples). @code{permute} also allows split-plot designs,
953 in which the whole-plots or split-plots or both can be freely exchangeable.")
954 (license license:gpl2+)))
955
956 (define-public r-plyr
957 (package
958 (name "r-plyr")
959 (version "1.8.6")
960 (source
961 (origin
962 (method url-fetch)
963 (uri (cran-uri "plyr" version))
964 (sha256
965 (base32 "11sjjdn146w95s1vsfmmgdls082cbnm1slv98xvyjhsl2mpx4mga"))))
966 (build-system r-build-system)
967 (propagated-inputs `(("r-rcpp" ,r-rcpp)))
968 (home-page "http://had.co.nz/plyr")
969 (synopsis "Tools for Splitting, Applying and Combining Data")
970 (description
971 "Plyr is a set of tools that solves a common set of problems: you need to
972 break a big problem down into manageable pieces, operate on each piece and
973 then put all the pieces back together. For example, you might want to fit a
974 model to each spatial location or time point in your study, summarise data by
975 panels or collapse high-dimensional arrays to simpler summary statistics.")
976 (license license:expat)))
977
978 (define-public r-proto
979 (package
980 (name "r-proto")
981 (version "1.0.0")
982 (source
983 (origin
984 (method url-fetch)
985 (uri (cran-uri "proto" version))
986 (sha256
987 (base32 "1l843p8vckjckdhgv37ngv47fga5jzy0n00pmipvp05nnaixk54j"))))
988 (build-system r-build-system)
989 (home-page "https://github.com/hadley/proto")
990 (synopsis "Prototype object-based programming")
991 (description
992 "Proto is an object oriented system using object-based, also called
993 prototype-based, rather than class-based object oriented ideas.")
994 (license license:gpl2+)))
995
996 (define-public r-rcolorbrewer
997 (package
998 (name "r-rcolorbrewer")
999 (version "1.1-2")
1000 (source
1001 (origin
1002 (method url-fetch)
1003 (uri (cran-uri "RColorBrewer" version))
1004 (sha256
1005 (base32 "1pfcl8z1pnsssfaaz9dvdckyfnnc6rcq56dhislbf571hhg7isgk"))))
1006 (build-system r-build-system)
1007 (home-page "https://cran.r-project.org/web/packages/RColorBrewer")
1008 (synopsis "ColorBrewer palettes")
1009 (description
1010 "This package provides color schemes for maps (and other graphics)
1011 designed by Cynthia Brewer as described at http://colorbrewer2.org")
1012 ;; Includes code licensed under bsd-4
1013 (license license:asl2.0)))
1014
1015 (define-public r-sendmailr
1016 (package
1017 (name "r-sendmailr")
1018 (version "1.2-1")
1019 (source
1020 (origin
1021 (method url-fetch)
1022 (uri (cran-uri "sendmailR" version))
1023 (sha256
1024 (base32
1025 "0z7ipywnzgkhfvl4zb2fjwl1xq7b5wib296vn9c9qgbndj6b1zh4"))))
1026 (properties `((upstream-name . "sendmailR")))
1027 (build-system r-build-system)
1028 (propagated-inputs
1029 `(("r-base64enc" ,r-base64enc)))
1030 (home-page
1031 "https://cran.r-project.org/web/packages/sendmailR")
1032 (synopsis "Send email using R")
1033 (description
1034 "This package contains a simple SMTP client which provides a portable
1035 solution for sending email, including attachments, from within R.")
1036 (license license:gpl2+)))
1037
1038 (define-public r-stringi
1039 (package
1040 (name "r-stringi")
1041 (version "1.5.3")
1042 (source
1043 (origin
1044 (method url-fetch)
1045 (uri (cran-uri "stringi" version))
1046 (sha256
1047 (base32
1048 "0420f7zn5knyyvd3a3xa7059l4kadw0m67rfpivacqn9xn6iwkr2"))))
1049 (build-system r-build-system)
1050 (inputs `(("icu4c" ,icu4c)))
1051 (native-inputs `(("pkg-config" ,pkg-config)))
1052 (home-page "http://stringi.rexamine.com/")
1053 (synopsis "Character string processing facilities")
1054 (description
1055 "This package allows for fast, correct, consistent, portable, as well as
1056 convenient character string/text processing in every locale and any native
1057 encoding. Owing to the use of the ICU library, the package provides R users
1058 with platform-independent functions known to Java, Perl, Python, PHP, and Ruby
1059 programmers. Among available features there are: pattern searching
1060 (e.g. via regular expressions), random string generation, string collation,
1061 transliteration, concatenation, date-time formatting and parsing, etc.")
1062 (license license:bsd-3)))
1063
1064 (define-public r-stringr
1065 (package
1066 (name "r-stringr")
1067 (version "1.4.0")
1068 (source
1069 (origin
1070 (method url-fetch)
1071 (uri (cran-uri "stringr" version))
1072 (sha256
1073 (base32 "1p9ip7p87gbbg4s6d3d392svvzz2b5dqdq2c8ilgvn4s78nlsq47"))))
1074 (build-system r-build-system)
1075 (propagated-inputs
1076 `(("r-glue" ,r-glue)
1077 ("r-magrittr" ,r-magrittr)
1078 ("r-stringi" ,r-stringi)))
1079 (home-page "https://github.com/hadley/stringr")
1080 (synopsis "Simple, consistent wrappers for common string operations")
1081 (description
1082 "Stringr is a consistent, simple and easy to use set of wrappers around
1083 the fantastic @code{stringi} package. All function and argument names (and
1084 positions) are consistent, all functions deal with \"NA\"'s and zero length
1085 vectors in the same way, and the output from one function is easy to feed into
1086 the input of another.")
1087 (license license:gpl2+)))
1088
1089 (define-public r-reshape2
1090 (package
1091 (name "r-reshape2")
1092 (version "1.4.4")
1093 (source
1094 (origin
1095 (method url-fetch)
1096 (uri (cran-uri "reshape2" version))
1097 (sha256
1098 (base32 "1n0jrajpvc8hjkh9z4g8bwq63qy5vy5cgl2pzjardyih4ngcz3fq"))))
1099 (build-system r-build-system)
1100 (propagated-inputs
1101 `(("r-plyr" ,r-plyr)
1102 ("r-rcpp" ,r-rcpp)
1103 ("r-stringr" ,r-stringr)))
1104 (home-page "https://github.com/hadley/reshape")
1105 (synopsis "Flexibly reshape data: a reboot of the \"reshape\" package")
1106 (description
1107 "Reshape2 is an R library to flexibly restructure and aggregate data
1108 using just two functions: melt and dcast (or acast).")
1109 (license license:expat)))
1110
1111 (define-public r-ggplot2
1112 (package
1113 (name "r-ggplot2")
1114 (version "3.3.3")
1115 (source
1116 (origin
1117 (method url-fetch)
1118 (uri (cran-uri "ggplot2" version))
1119 (sha256
1120 (base32 "1k136k1sr6dq1xvx6gs6gzji6hbnnwnsb5qivsxrblfv90irxhj5"))))
1121 (build-system r-build-system)
1122 (propagated-inputs
1123 `(("r-digest" ,r-digest)
1124 ("r-glue" ,r-glue)
1125 ("r-gtable" ,r-gtable)
1126 ("r-isoband" ,r-isoband)
1127 ("r-mass" ,r-mass)
1128 ("r-mgcv" ,r-mgcv)
1129 ("r-tibble" ,r-tibble)
1130 ("r-rlang" ,r-rlang)
1131 ("r-scales" ,r-scales)
1132 ("r-svglite" ,r-svglite) ; Needed for 'ggsave'
1133 ("r-withr" ,r-withr)))
1134 (native-inputs
1135 `(("r-knitr" ,r-knitr)))
1136 (home-page "https://ggplot2.tidyverse.org")
1137 (synopsis "An implementation of the grammar of graphics")
1138 (description
1139 "Ggplot2 is an implementation of the grammar of graphics in R. It
1140 combines the advantages of both base and lattice graphics: conditioning and
1141 shared axes are handled automatically, and you can still build up a plot step
1142 by step from multiple data sources. It also implements a sophisticated
1143 multidimensional conditioning system and a consistent interface to map data to
1144 aesthetic attributes.")
1145 (license license:gpl2+)))
1146
1147 (define-public r-ggdendro
1148 (package
1149 (name "r-ggdendro")
1150 (version "0.1.22")
1151 (source (origin
1152 (method url-fetch)
1153 (uri (cran-uri "ggdendro" version))
1154 (sha256
1155 (base32
1156 "0skbj487b6f6pj2iz4yq2b9gbgb39cv5dyzhdl3w7ay1k0s5z9ph"))))
1157 (build-system r-build-system)
1158 (propagated-inputs
1159 `(("r-ggplot2" ,r-ggplot2)
1160 ("r-mass" ,r-mass)))
1161 (native-inputs
1162 `(("r-knitr" ,r-knitr)))
1163 (home-page "https://github.com/andrie/ggdendro")
1164 (synopsis "Create Dendrograms and Tree Diagrams Using ggplot2")
1165 (description "This is a set of tools for dendrograms and tree plots using
1166 ggplot2. The ggplot2 philosophy is to clearly separate data from the
1167 presentation. Unfortunately the plot method for dendrograms plots directly
1168 to a plot device with out exposing the data. The ggdendro package resolves
1169 this by making available functions that extract the dendrogram plot data.
1170 The package provides implementations for tree, rpart, as well as diana and
1171 agnes cluster diagrams.")
1172 (license license:gpl2+)))
1173
1174 (define-public r-gdtools
1175 (package
1176 (name "r-gdtools")
1177 (version "0.2.3")
1178 (source
1179 (origin
1180 (method url-fetch)
1181 (uri (cran-uri "gdtools" version))
1182 (sha256
1183 (base32
1184 "1p3ip0qwpg8f63jfx0b8vbac6l20ddid8xvxzkfi6i858pybnawp"))))
1185 (build-system r-build-system)
1186 (native-inputs
1187 `(("pkg-config" ,pkg-config)))
1188 (inputs
1189 `(("cairo" ,cairo)
1190 ("freetype2" ,freetype)
1191 ("zlib" ,zlib)))
1192 (propagated-inputs
1193 `(("r-rcpp" ,r-rcpp)
1194 ("r-systemfonts" ,r-systemfonts)))
1195 (home-page "https://cran.r-project.org/web/packages/gdtools")
1196 (synopsis "Utilities for graphical rendering")
1197 (description
1198 "The @code{gdtools} package provides functionalities to get font metrics
1199 and to generate base64 encoded string from raster matrix.")
1200 (license license:gpl3)))
1201
1202 (define-public r-svglite
1203 (package
1204 (name "r-svglite")
1205 (version "2.0.0")
1206 (source
1207 (origin
1208 (method url-fetch)
1209 (uri (cran-uri "svglite" version))
1210 (sha256
1211 (base32
1212 "19ggknw5322yw7r1bzhw0bqggcrpn0qxddk7kblpqnra2zz2brkn"))))
1213 (build-system r-build-system)
1214 (inputs
1215 `(("libpng" ,libpng)
1216 ("zlib" ,zlib)))
1217 (propagated-inputs
1218 `(("r-cpp11" ,r-cpp11)
1219 ("r-systemfonts" ,r-systemfonts)))
1220 (native-inputs
1221 `(("r-knitr" ,r-knitr)))
1222 (home-page "https://github.com/hadley/svglite")
1223 (synopsis "SVG graphics device")
1224 (description
1225 "@code{svglite} is a graphics device that produces clean
1226 @dfn{SVG} (Scalable Vector Graphics) output, suitable for use on the web, or
1227 hand editing. Compared to the built-in @code{svg()}, @code{svglite} is
1228 considerably faster, produces smaller files, and leaves text as is.")
1229 (license license:gpl2+)))
1230
1231 (define-public r-assertthat
1232 (package
1233 (name "r-assertthat")
1234 (version "0.2.1")
1235 (source (origin
1236 (method url-fetch)
1237 (uri (cran-uri "assertthat" version))
1238 (sha256
1239 (base32
1240 "17wy5bdfzg73sg2clisg1k3zyn1adkj59x56m5nwia2k8z67zkw5"))))
1241 (build-system r-build-system)
1242 (home-page "https://github.com/hadley/assertthat")
1243 (synopsis "Easy pre and post assertions")
1244 (description
1245 "Assertthat is an extension to stopifnot() that makes it easy to declare
1246 the pre and post conditions that your code should satisfy, while also
1247 producing friendly error messages so that your users know what they've done
1248 wrong.")
1249 (license license:gpl3+)))
1250
1251 (define-public r-lazyeval
1252 (package
1253 (name "r-lazyeval")
1254 (version "0.2.2")
1255 (source (origin
1256 (method url-fetch)
1257 (uri (cran-uri "lazyeval" version))
1258 (sha256
1259 (base32
1260 "1m10i059csrcqkcn59a8wspn784alxsq3symzhn24mhhl894346n"))))
1261 (build-system r-build-system)
1262 (home-page "https://github.com/hadley/lazyeval")
1263 (synopsis "Lazy (non-standard) evaluation in R")
1264 (description
1265 "This package provides the tools necessary to do non-standard
1266 evaluation (NSE) in R.")
1267 (license license:gpl3+)))
1268
1269 (define-public r-dbi
1270 (package
1271 (name "r-dbi")
1272 (version "1.1.1")
1273 (source (origin
1274 (method url-fetch)
1275 (uri (cran-uri "DBI" version))
1276 (sha256
1277 (base32
1278 "0i0kfyg43nryyka2bjlgz4x75w965224qp36wz1hl7a2lswb6ajp"))))
1279 (build-system r-build-system)
1280 (native-inputs
1281 `(("r-knitr" ,r-knitr)))
1282 (home-page "https://github.com/rstats-db/DBI")
1283 (synopsis "R database interface")
1284 (description
1285 "The DBI package provides a database interface (DBI) definition for
1286 communication between R and relational database management systems. All
1287 classes in this package are virtual and need to be extended by the various
1288 R/DBMS implementations.")
1289 (license license:lgpl2.0+)))
1290
1291 (define-public r-bh
1292 (package
1293 (name "r-bh")
1294 (version "1.75.0-0")
1295 (source (origin
1296 (method url-fetch)
1297 (uri (cran-uri "BH" version))
1298 (sha256
1299 (base32
1300 "0nkgvl5qjs2a7jv0ncsrl4fqaw2pdaj7a1pncdv6kp874sci0k5f"))))
1301 (build-system r-build-system)
1302 (home-page "https://github.com/eddelbuettel/bh")
1303 (synopsis "R package providing subset of Boost headers")
1304 (description
1305 "This package aims to provide the most useful subset of Boost libraries
1306 for template use among CRAN packages.")
1307 (license license:boost1.0)))
1308
1309 (define-public r-evaluate
1310 (package
1311 (name "r-evaluate")
1312 (version "0.14")
1313 (source (origin
1314 (method url-fetch)
1315 (uri (cran-uri "evaluate" version))
1316 (sha256
1317 (base32
1318 "0a2y7j534gbgixkwj9r1z76l2vssw4g1hznzbpclc076wkdqpj58"))))
1319 (build-system r-build-system)
1320 (home-page "https://github.com/hadley/evaluate")
1321 (synopsis "Parsing and evaluation tools for R")
1322 (description
1323 "This package provides tools that allow you to recreate the parsing,
1324 evaluation and display of R code, with enough information that you can
1325 accurately recreate what happens at the command line. The tools can easily be
1326 adapted for other output formats, such as HTML or LaTeX.")
1327 (license license:gpl3+)))
1328
1329 (define-public r-formatr
1330 (package
1331 (name "r-formatr")
1332 (version "1.9")
1333 (source (origin
1334 (method url-fetch)
1335 (uri (cran-uri "formatR" version))
1336 (sha256
1337 (base32
1338 "0vbzvb91y5cxjbnwpww0r40r6m1l9w1qa979sv7ghhalzr7bib3i"))))
1339 (build-system r-build-system)
1340 (native-inputs
1341 `(("r-knitr" ,r-knitr)))
1342 (home-page "https://yihui.org/formatr/")
1343 (synopsis "Format R code automatically")
1344 (description
1345 "This package provides a function to format R source code. Spaces and
1346 indent will be added to the code automatically, and comments will be preserved
1347 under certain conditions, so that R code will be more human-readable and tidy.
1348 There is also a Shiny app as a user interface in this package.")
1349 (license license:gpl3+)))
1350
1351 (define-public r-highr
1352 (package
1353 (name "r-highr")
1354 (version "0.9")
1355 (source (origin
1356 (method url-fetch)
1357 (uri (cran-uri "highr" version))
1358 (sha256
1359 (base32
1360 "0kgdv2vf1lz3b5kbal9s83gg6812nw7fvrq0rkyr0v4k1lwi3zxy"))))
1361 (build-system r-build-system)
1362 (propagated-inputs
1363 `(("r-xfun" ,r-xfun)))
1364 ;; We cannot add knitr to the inputs, because highr depends on xfun, which
1365 ;; is an input to knitr.
1366 #;
1367 (native-inputs
1368 `(("r-knitr" ,r-knitr)))
1369 (home-page "https://github.com/yihui/highr")
1370 (synopsis "Syntax highlighting for R source code")
1371 (description
1372 "This package provides syntax highlighting for R source code. Currently
1373 it supports LaTeX and HTML output. Source code of other languages is
1374 supported via Andre Simon's highlight package.")
1375 (license license:gpl3+)))
1376
1377 (define-public r-mime
1378 (package
1379 (name "r-mime")
1380 (version "0.10")
1381 (source (origin
1382 (method url-fetch)
1383 (uri (cran-uri "mime" version))
1384 (sha256
1385 (base32
1386 "1xz37fizlx4w3g8kbim7vr5slqd6cmaq5sa0s4q7ayl1bahk6ckq"))))
1387 (build-system r-build-system)
1388 (home-page "https://github.com/yihui/mime")
1389 (synopsis "R package to map filenames to MIME types")
1390 (description
1391 "This package guesses the MIME type from a filename extension using the
1392 data derived from /etc/mime.types in UNIX-type systems.")
1393 (license license:gpl2)))
1394
1395 (define-public r-markdown
1396 (package
1397 (name "r-markdown")
1398 (version "1.1")
1399 (source (origin
1400 (method url-fetch)
1401 (uri (cran-uri "markdown" version))
1402 (sha256
1403 (base32
1404 "06zwbrp14bri3470anadd7dvgmw06xf8df6v2pk64wx3f9sd934d"))))
1405 (build-system r-build-system)
1406 ;; Skip check phase because the tests require the r-knitr package to be
1407 ;; installed. This prevents installation failures. Knitr normally
1408 ;; shouldn't be available since r-markdown is a dependency of the r-knitr
1409 ;; package.
1410 (arguments `(#:tests? #f))
1411 (propagated-inputs
1412 `(("r-mime" ,r-mime)
1413 ("r-xfun" ,r-xfun)))
1414 (home-page "https://github.com/rstudio/markdown")
1415 (synopsis "Markdown rendering for R")
1416 (description
1417 "This package provides R bindings to the Sundown Markdown rendering
1418 library (https://github.com/vmg/sundown). Markdown is a plain-text formatting
1419 syntax that can be converted to XHTML or other formats.")
1420 (license license:gpl2)))
1421
1422 (define-public r-yaml
1423 (package
1424 (name "r-yaml")
1425 (version "2.2.1")
1426 (source (origin
1427 (method url-fetch)
1428 (uri (cran-uri "yaml" version))
1429 (sha256
1430 (base32
1431 "10r7g26x73am45niigm3k466030nymnr3v3fjljafzrr5aybf58i"))))
1432 (build-system r-build-system)
1433 (home-page "https://cran.r-project.org/web/packages/yaml/")
1434 (synopsis "Methods to convert R data to YAML and back")
1435 (description
1436 "This package implements the libyaml YAML 1.1 parser and
1437 emitter (http://pyyaml.org/wiki/LibYAML) for R.")
1438 (license license:bsd-3)))
1439
1440 (define-public r-knitr
1441 (package
1442 (name "r-knitr")
1443 (version "1.31")
1444 (source (origin
1445 (method url-fetch)
1446 (uri (cran-uri "knitr" version))
1447 (sha256
1448 (base32
1449 "1s87py0km76l72lbwx714cn5903lsdxs237k35p26d5bmyvqv39c"))))
1450 (build-system r-build-system)
1451 (propagated-inputs
1452 `(("r-evaluate" ,r-evaluate)
1453 ("r-highr" ,r-highr)
1454 ("r-markdown" ,r-markdown)
1455 ("r-stringr" ,r-stringr)
1456 ("r-xfun" ,r-xfun)
1457 ("r-yaml" ,r-yaml)))
1458 (home-page "https://yihui.org/knitr/")
1459 (synopsis "General-purpose package for dynamic report generation in R")
1460 (description
1461 "This package provides a general-purpose tool for dynamic report
1462 generation in R using Literate Programming techniques.")
1463 ;; The code is released under any version of the GPL. As it is used by
1464 ;; r-markdown which is available under GPLv2 only, we have chosen GPLv2+
1465 ;; here.
1466 (license license:gpl2+)))
1467
1468 (define-public r-knitrbootstrap
1469 (package
1470 (name "r-knitrbootstrap")
1471 (version "1.0.2")
1472 (source
1473 (origin
1474 (method url-fetch)
1475 (uri (cran-uri "knitrBootstrap" version))
1476 (sha256
1477 (base32
1478 "1aj60j7f0gcs120fdrnfbnb7vk7lfn1phil0mghg6a5zldz4cqs3"))))
1479 (properties `((upstream-name . "knitrBootstrap")))
1480 (build-system r-build-system)
1481 (propagated-inputs
1482 `(("r-knitr" ,r-knitr)
1483 ("r-rmarkdown" ,r-rmarkdown)
1484 ("r-markdown" ,r-markdown)))
1485 (home-page "https://github.com/jimhester/knitrBootstrap")
1486 (synopsis "Knitr bootstrap framework")
1487 (description
1488 "This package provides a framework to create Bootstrap 3 HTML reports
1489 from knitr Rmarkdown.")
1490 (license license:expat)))
1491
1492 (define-public r-microbenchmark
1493 (package
1494 (name "r-microbenchmark")
1495 (version "1.4-7")
1496 (source (origin
1497 (method url-fetch)
1498 (uri (cran-uri "microbenchmark" version))
1499 (sha256
1500 (base32
1501 "1xl4m4yl4h2zcjiz8wsa7f3sh55qg2xr3sgpvz18rlix6b3173r6"))))
1502 (build-system r-build-system)
1503 (home-page "https://cran.r-project.org/web/packages/microbenchmark/")
1504 (synopsis "Accurate timing functions for R")
1505 (description
1506 "This package provides infrastructure to accurately measure and compare
1507 the execution time of R expressions.")
1508 (license license:bsd-2)))
1509
1510 (define-public r-pryr
1511 (package
1512 (name "r-pryr")
1513 (version "0.1.4")
1514 (source (origin
1515 (method url-fetch)
1516 (uri (cran-uri "pryr" version))
1517 (sha256
1518 (base32
1519 "06vj5xl9x37kbd3l5bw7sbgfdnp37spvrjrn976rxi04clqk966k"))))
1520 (build-system r-build-system)
1521 (propagated-inputs
1522 `(("r-stringr" ,r-stringr)
1523 ("r-codetools" ,r-codetools)))
1524 (native-inputs
1525 `(("r-rcpp" ,r-rcpp)))
1526 (home-page "https://github.com/hadley/pryr")
1527 (synopsis "Tools for computing on the R language")
1528 (description
1529 "This package provides useful tools to pry back the covers of R and
1530 understand the language at a deeper level.")
1531 (license license:gpl2)))
1532
1533 (define-public r-memoise
1534 (package
1535 (name "r-memoise")
1536 (version "2.0.0")
1537 (source (origin
1538 (method url-fetch)
1539 (uri (cran-uri "memoise" version))
1540 (sha256
1541 (base32
1542 "1bzcv7pmls3bx2w5ccv1pm20wycbfqba1v76k0fjgmjsm6hy76pz"))))
1543 (build-system r-build-system)
1544 (propagated-inputs
1545 `(("r-cachem" ,r-cachem)
1546 ("r-rlang" ,r-rlang)))
1547 (home-page "https://github.com/hadley/memoise")
1548 (synopsis "Memoise functions for R")
1549 (description
1550 "This R package caches the results of a function so that when
1551 you call it again with the same arguments it returns the pre-computed value.")
1552 (license license:expat)))
1553
1554 (define-public r-crayon
1555 (package
1556 (name "r-crayon")
1557 (version "1.4.1")
1558 (source (origin
1559 (method url-fetch)
1560 (uri (cran-uri "crayon" version))
1561 (sha256
1562 (base32
1563 "1ir963s6zk9l32fw257y54p7898cd7z7yazkn9h6j2cdfhpf9dh8"))))
1564 (build-system r-build-system)
1565 (home-page "https://github.com/gaborcsardi/crayon")
1566 (synopsis "Colored terminal output for R")
1567 (description
1568 "Colored terminal output on terminals that support ANSI color and
1569 highlight codes. It also works in Emacs ESS. ANSI color support is
1570 automatically detected. Colors and highlighting can be combined and nested.
1571 New styles can also be created easily. This package was inspired by the
1572 \"chalk\" JavaScript project.")
1573 (license license:expat)))
1574
1575 (define-public r-praise
1576 (package
1577 (name "r-praise")
1578 (version "1.0.0")
1579 (source
1580 (origin
1581 (method url-fetch)
1582 (uri (cran-uri "praise" version))
1583 (sha256
1584 (base32
1585 "1gfyypnvmih97p2r0php9qa39grzqpsdbq5g0fdsbpq5zms5w0sw"))))
1586 (build-system r-build-system)
1587 (home-page "https://github.com/gaborcsardi/praise")
1588 (synopsis "Functions to praise users")
1589 (description
1590 "This package provides template functions to assist in building friendly
1591 R packages that praise their users.")
1592 (license license:expat)))
1593
1594 (define-public r-testthat
1595 (package
1596 (name "r-testthat")
1597 (version "3.0.2")
1598 (source (origin
1599 (method url-fetch)
1600 (uri (cran-uri "testthat" version))
1601 (sha256
1602 (base32
1603 "03sbk36vrjhzfap6a9czxw93r7h06rh3mb01inbrhrh5r2pd00qq"))))
1604 (build-system r-build-system)
1605 (propagated-inputs
1606 `(("r-brio" ,r-brio)
1607 ("r-callr" ,r-callr)
1608 ("r-cli" ,r-cli)
1609 ("r-crayon" ,r-crayon)
1610 ("r-desc" ,r-desc)
1611 ("r-digest" ,r-digest)
1612 ("r-ellipsis" ,r-ellipsis)
1613 ("r-evaluate" ,r-evaluate)
1614 ("r-jsonlite" ,r-jsonlite)
1615 ("r-lifecycle" ,r-lifecycle)
1616 ("r-magrittr" ,r-magrittr)
1617 ("r-pkgload" ,r-pkgload)
1618 ("r-praise" ,r-praise)
1619 ("r-processx" ,r-processx)
1620 ("r-ps" ,r-ps)
1621 ("r-r6" ,r-r6)
1622 ("r-rlang" ,r-rlang)
1623 ("r-waldo" ,r-waldo)
1624 ("r-withr" ,r-withr)))
1625 (native-inputs
1626 `(("r-knitr" ,r-knitr)))
1627 (home-page "https://github.com/hadley/testthat")
1628 (synopsis "Unit testing for R")
1629 (description
1630 "This package provides a unit testing system for R designed to be fun,
1631 flexible and easy to set up.")
1632 (license license:expat)))
1633
1634 (define-public r-r6
1635 (package
1636 (name "r-r6")
1637 (version "2.5.0")
1638 (source (origin
1639 (method url-fetch)
1640 (uri (cran-uri "R6" version))
1641 (sha256
1642 (base32
1643 "00ifi2kwa7kn67xf0z1w6jfdicjczygbyi5mhfw2qlzc4sbazhdf"))))
1644 (build-system r-build-system)
1645 (home-page "https://github.com/wch/R6/")
1646 (synopsis "Classes with reference semantics in R")
1647 (description
1648 "The R6 package allows the creation of classes with reference semantics,
1649 similar to R's built-in reference classes. Compared to reference classes, R6
1650 classes are simpler and lighter-weight, and they are not built on S4 classes
1651 so they do not require the methods package. These classes allow public and
1652 private members, and they support inheritance, even when the classes are
1653 defined in different packages.")
1654 (license license:expat)))
1655
1656 (define-public r-rlang
1657 (package
1658 (name "r-rlang")
1659 (version "0.4.10")
1660 (source (origin
1661 (method url-fetch)
1662 (uri (cran-uri "rlang" version))
1663 (sha256
1664 (base32
1665 "0ximv89f6zymnwms121k1jfvvflrdm3pmmf5xyvz56f1qiq04lq7"))))
1666 (build-system r-build-system)
1667 (home-page "http://rlang.tidyverse.org")
1668 (synopsis "Functions for base types, core R and Tidyverse features")
1669 (description "This package provides a toolbox for working with base types,
1670 core R features like the condition system, and core @code{Tidyverse} features
1671 like tidy evaluation.")
1672 (license license:gpl3)))
1673
1674 (define-public r-tibble
1675 (package
1676 (name "r-tibble")
1677 (version "3.1.0")
1678 (source
1679 (origin
1680 (method url-fetch)
1681 (uri (cran-uri "tibble" version))
1682 (sha256
1683 (base32
1684 "0khmypf49la8n5gx72n7gr6dl6r6ja404i578g6sg0ail3g2i7lm"))))
1685 (build-system r-build-system)
1686 (propagated-inputs
1687 `(("r-ellipsis" ,r-ellipsis)
1688 ("r-fansi" ,r-fansi)
1689 ("r-lifecycle" ,r-lifecycle)
1690 ("r-magrittr" ,r-magrittr)
1691 ("r-pkgconfig" ,r-pkgconfig)
1692 ("r-pillar" ,r-pillar)
1693 ("r-rlang" ,r-rlang)
1694 ("r-vctrs" ,r-vctrs)))
1695 (native-inputs
1696 `(("r-knitr" ,r-knitr)))
1697 (home-page "https://github.com/hadley/tibble")
1698 (synopsis "Simple data frames")
1699 (description
1700 "This package provides a @code{tbl_df} class that offers better checking
1701 and printing capabilities than traditional data frames.")
1702 (license license:expat)))
1703
1704 (define-public r-dplyr
1705 (package
1706 (name "r-dplyr")
1707 (version "1.0.5")
1708 (source (origin
1709 (method url-fetch)
1710 (uri (cran-uri "dplyr" version))
1711 (sha256
1712 (base32
1713 "0w3fr6sn0mw5mjs27669czpc8vpjj6ayrjavw8v0gd7ccsfa0hbm"))))
1714 (build-system r-build-system)
1715 (propagated-inputs
1716 `(("r-ellipsis" ,r-ellipsis)
1717 ("r-generics" ,r-generics)
1718 ("r-glue" ,r-glue)
1719 ("r-lifecycle" ,r-lifecycle)
1720 ("r-magrittr" ,r-magrittr)
1721 ("r-r6" ,r-r6)
1722 ("r-rlang" ,r-rlang)
1723 ("r-tibble" ,r-tibble)
1724 ("r-tidyselect" ,r-tidyselect)
1725 ("r-vctrs" ,r-vctrs)))
1726 (native-inputs
1727 `(("r-knitr" ,r-knitr)))
1728 (home-page "https://github.com/hadley/dplyr")
1729 (synopsis "Tools for working with data frames in R")
1730 (description
1731 "dplyr is the next iteration of plyr. It is focussed on tools for
1732 working with data frames. It has three main goals: 1) identify the most
1733 important data manipulation tools needed for data analysis and make them easy
1734 to use in R; 2) provide fast performance for in-memory data by writing key
1735 pieces of code in C++; 3) use the same code interface to work with data no
1736 matter where it is stored, whether in a data frame, a data table or
1737 database.")
1738 (license license:expat)))
1739
1740 (define-public r-dbplyr
1741 (package
1742 (name "r-dbplyr")
1743 (version "2.1.1")
1744 (source
1745 (origin
1746 (method url-fetch)
1747 (uri (cran-uri "dbplyr" version))
1748 (sha256
1749 (base32
1750 "025wqpmxdhzblb0pf58m3qh5h6bf5x8qvkf47vyl1cjsp13wz95b"))))
1751 (build-system r-build-system)
1752 (propagated-inputs
1753 `(("r-assertthat" ,r-assertthat)
1754 ("r-blob" ,r-blob)
1755 ("r-dbi" ,r-dbi)
1756 ("r-dplyr" ,r-dplyr)
1757 ("r-ellipsis" ,r-ellipsis)
1758 ("r-glue" ,r-glue)
1759 ("r-lifecycle" ,r-lifecycle)
1760 ("r-magrittr" ,r-magrittr)
1761 ("r-purrr" ,r-purrr)
1762 ("r-r6" ,r-r6)
1763 ("r-rlang" ,r-rlang)
1764 ("r-tibble" ,r-tibble)
1765 ("r-tidyselect" ,r-tidyselect)
1766 ("r-vctrs" ,r-vctrs)
1767 ("r-withr" ,r-withr)))
1768 (native-inputs
1769 `(("r-knitr" ,r-knitr)))
1770 (home-page "https://github.com/tidyverse/dbplyr")
1771 (synopsis "Dplyr back end for databases")
1772 (description
1773 "This package provides a dplyr back end for databases that allows you to
1774 work with remote database tables as if they are in-memory data frames. Basic
1775 features works with any database that has a @code{DBI} back end; more advanced
1776 features require SQL translation to be provided by the package author.")
1777 (license license:expat)))
1778
1779 (define-public r-acepack
1780 (package
1781 (name "r-acepack")
1782 (version "1.4.1")
1783 (source
1784 (origin
1785 (method url-fetch)
1786 (uri (cran-uri "acepack" version))
1787 (sha256
1788 (base32
1789 "1f98rpfjmhd92rdc3j004plyfpjailz6j0ycysbac0kgj83haxc2"))))
1790 (build-system r-build-system)
1791 (inputs
1792 `(("gfortran" ,gfortran)))
1793 (home-page "https://cran.r-project.org/web/packages/acepack")
1794 (synopsis "Functions for regression transformations")
1795 (description
1796 "This package provides ACE and AVAS methods for choosing regression
1797 transformations.")
1798 (license license:expat)))
1799
1800 (define-public r-formula
1801 (package
1802 (name "r-formula")
1803 (version "1.2-4")
1804 (source
1805 (origin
1806 (method url-fetch)
1807 (uri (cran-uri "Formula" version))
1808 (sha256
1809 (base32
1810 "1bsw282i5m8rlirbhz7hqvf25zbxschk7yrp152whbzdnmry6w6b"))))
1811 (properties `((upstream-name . "Formula")))
1812 (build-system r-build-system)
1813 (home-page "https://cran.r-project.org/web/packages/Formula")
1814 (synopsis "Extended model formulas")
1815 (description
1816 "This package provides a new class @code{Formula}, which extends the base
1817 class @code{formula}. It supports extended formulas with multiple parts of
1818 regressors on the right-hand side and/or multiple responses on the left-hand
1819 side.")
1820 (license (list license:gpl2+ license:gpl3+))))
1821
1822 (define-public r-locfit
1823 (package
1824 (name "r-locfit")
1825 (version "1.5-9.4")
1826 (source
1827 (origin
1828 (method url-fetch)
1829 (uri (cran-uri "locfit" version))
1830 (sha256
1831 (base32
1832 "1vcw16qww4v4547w0gfvhqg60l051bsdlxa6zfcgcj9xbxf6dlyr"))))
1833 (build-system r-build-system)
1834 (propagated-inputs
1835 `(("r-lattice" ,r-lattice)))
1836 (home-page "https://cran.r-project.org/web/packages/locfit")
1837 (synopsis "Local regression, likelihood and density estimation")
1838 (description
1839 "This package provides functions used for local regression, likelihood
1840 and density estimation.")
1841 (license (list license:gpl2+ license:gpl3+))))
1842
1843 (define-public r-chron
1844 (package
1845 (name "r-chron")
1846 (version "2.3-56")
1847 (source (origin
1848 (method url-fetch)
1849 (uri (cran-uri "chron" version))
1850 (sha256
1851 (base32
1852 "0p9zz96jfyf139924hdwkzhr8knkjvx6547ac53rknm3a6wwngl6"))))
1853 (build-system r-build-system)
1854 (home-page "https://cran.r-project.org/web/packages/chron")
1855 (synopsis "Chronological R objects which can handle dates and times")
1856 (description
1857 "This package provides chronological R objects which can handle dates and
1858 times.")
1859 (license license:gpl2)))
1860
1861 (define-public r-data-table
1862 (package
1863 (name "r-data-table")
1864 (version "1.14.0")
1865 (source (origin
1866 (method url-fetch)
1867 (uri (cran-uri "data.table" version))
1868 (sha256
1869 (base32
1870 "0kgbvap5v2spnkz3dwfm4jh4qcpvbzdn9s8bzfnhzabz9qjdxw8k"))))
1871 (build-system r-build-system)
1872 (inputs
1873 `(("zlib" ,zlib)))
1874 (native-inputs
1875 `(("pkg-config" ,pkg-config)
1876 ("r-knitr" ,r-knitr)))
1877 (home-page "https://github.com/Rdatatable/data.table/wiki")
1878 (synopsis "Enhanced version of data.frame R object")
1879 (description
1880 "The R package @code{data.table} is an extension of @code{data.frame}
1881 providing functions for fast aggregation of large data (e.g. 100GB in RAM),
1882 fast ordered joins, fast add/modify/delete of columns by group, column listing
1883 and fast file reading.")
1884 (license license:gpl3+)))
1885
1886 (define-public r-xtable
1887 (package
1888 (name "r-xtable")
1889 (version "1.8-4")
1890 (source
1891 (origin
1892 (method url-fetch)
1893 (uri (cran-uri "xtable" version))
1894 (sha256
1895 (base32
1896 "077xfm0gphvhsay75amd9v90zk57kjgrrlgih04fyrbqqblc1gjs"))))
1897 (build-system r-build-system)
1898 (native-inputs
1899 `(("r-knitr" ,r-knitr))) ; for vignettes
1900 (home-page "http://xtable.r-forge.r-project.org/")
1901 (synopsis "Export R tables to LaTeX or HTML")
1902 (description
1903 "This package provides tools to export R data as LaTeX and HTML tables.")
1904 (license license:gpl2+)))
1905
1906 (define-public python-patsy
1907 (package
1908 (name "python-patsy")
1909 (version "0.5.1")
1910 (source (origin
1911 (method url-fetch)
1912 (uri (pypi-uri "patsy" version))
1913 (sha256
1914 (base32
1915 "149rbrdzwns0ay88caf1zsm1r53v1q5np1mrb36na50y432cw5gi"))))
1916 (build-system python-build-system)
1917 (arguments
1918 `(#:phases
1919 (modify-phases %standard-phases
1920 (replace 'check
1921 (lambda _ (invoke "nosetests" "-v"))))))
1922 (propagated-inputs
1923 `(("python-numpy" ,python-numpy)
1924 ("python-scipy" ,python-scipy)
1925 ("python-six" ,python-six)))
1926 (native-inputs
1927 `(("python-nose" ,python-nose)))
1928 (home-page "https://github.com/pydata/patsy")
1929 (synopsis "Describe statistical models and build design matrices")
1930 (description
1931 "Patsy is a Python package for describing statistical models and for
1932 building design matrices.")
1933 ;; The majority of the code is distributed under BSD-2. The module
1934 ;; patsy.compat contains code derived from the Python standard library,
1935 ;; and is covered by the PSFL.
1936 (license (list license:bsd-2 license:psfl))))
1937
1938 (define-public python2-patsy
1939 (package-with-python2 python-patsy))
1940
1941 (define-public python-statsmodels
1942 (package
1943 (name "python-statsmodels")
1944 (version "0.11.1")
1945 (source
1946 (origin
1947 (method url-fetch)
1948 (uri (pypi-uri "statsmodels" version))
1949 (sha256
1950 (base32
1951 "1w6mf8b86vizi2895j11szqryr2v1ckjig3wp9fv94aslfh3zpjv"))))
1952 (build-system python-build-system)
1953 (arguments
1954 `(;; The test suite is very large and rather brittle. Tests often fail
1955 ;; because of minor changes in dependencies that upstream hasn't fixed
1956 ;; in a new release.
1957 #:tests? #f
1958 #:phases
1959 (modify-phases %standard-phases
1960 (add-after 'unpack 'set-matplotlib-backend-to-agg
1961 (lambda _
1962 ;; Set the matplotlib backend to Agg to avoid problems using the
1963 ;; GTK backend without a display.
1964 (substitute* (append (find-files "statsmodels/graphics/tests" "\\.py")
1965 '("statsmodels/tsa/vector_ar/tests/test_var.py"
1966 "statsmodels/duration/tests/test_survfunc.py"))
1967 (("import matplotlib\\.pyplot as plt" line)
1968 (string-append "import matplotlib;matplotlib.use('Agg');"
1969 line)))
1970 #t)))))
1971 (propagated-inputs
1972 `(("python-numpy" ,python-numpy)
1973 ("python-scipy" ,python-scipy)
1974 ("python-pandas" ,python-pandas)
1975 ("python-patsy" ,python-patsy)
1976 ("python-matplotlib" ,python-matplotlib)))
1977 (native-inputs
1978 `(("python-cython" ,python-cython)
1979 ("python-nose" ,python-nose)
1980 ("python-sphinx" ,python-sphinx)))
1981 (home-page "http://statsmodels.sourceforge.net/")
1982 (synopsis "Statistical modeling and econometrics in Python")
1983 (description
1984 "Statsmodels is a Python package that provides a complement to scipy for
1985 statistical computations including descriptive statistics and estimation and
1986 inference for statistical models.")
1987 (license license:bsd-3)))
1988
1989 (define-public python2-statsmodels
1990 (let ((stats (package-with-python2 python-statsmodels)))
1991 (package/inherit stats
1992 (propagated-inputs
1993 `(("python2-pytz" ,python2-pytz)
1994 ("python2-numpy" ,python2-numpy)
1995 ("python2-scipy" ,python2-scipy)
1996 ("python2-pandas" ,python2-pandas)
1997 ("python2-patsy" ,python2-patsy)
1998 ("python2-matplotlib" ,python2-matplotlib))))))
1999
2000 (define-public r-coda
2001 (package
2002 (name "r-coda")
2003 (version "0.19-4")
2004 (source (origin
2005 (method url-fetch)
2006 (uri (cran-uri "coda" version))
2007 (sha256
2008 (base32
2009 "13z5dwfpnyyhpsbpg4xr9g5c1685jhqj90f4x4qkcykr6kykqba2"))))
2010 (build-system r-build-system)
2011 (propagated-inputs
2012 `(("r-lattice" ,r-lattice)))
2013 (home-page "https://cran.r-project.org/web/packages/coda")
2014 (synopsis "This is a package for Output Analysis and Diagnostics for MCMC")
2015 (description "This package provides functions for summarizing and plotting
2016 the output from Markov Chain Monte Carlo (MCMC) simulations, as well as
2017 diagnostic tests of convergence to the equilibrium distribution of the Markov
2018 chain.")
2019 (license license:gpl2+)))
2020
2021 (define-public r-ade4
2022 (package
2023 (name "r-ade4")
2024 (version "1.7-16")
2025 (source
2026 (origin
2027 (method url-fetch)
2028 (uri (cran-uri "ade4" version))
2029 (sha256
2030 (base32
2031 "142m70im8yd4q01q7z02y3ia0f66yh4ikdznv0ps6c7yyigs5mwv"))))
2032 (build-system r-build-system)
2033 (propagated-inputs
2034 `(("r-mass" ,r-mass)
2035 ("r-pixmap" ,r-pixmap)
2036 ("r-progress" ,r-progress)
2037 ("r-sp" ,r-sp)))
2038 (home-page "http://pbil.univ-lyon1.fr/ADE-4")
2039 (synopsis "Multivariate data analysis and graphical display")
2040 (description
2041 "The ade4 package contains data analysis functions to analyze ecological
2042 and environmental data in the framework of Euclidean exploratory methods.")
2043 (license license:gpl2+)))
2044
2045 (define-public r-xml2
2046 (package
2047 (name "r-xml2")
2048 (version "1.3.2")
2049 (source
2050 (origin
2051 (method url-fetch)
2052 (uri (cran-uri "xml2" version))
2053 (sha256
2054 (base32
2055 "1kx400v62xkd5xal7rzz7jcarz94ac8g1sh4i2dqr78qwgkzj8nz"))))
2056 (build-system r-build-system)
2057 (inputs
2058 `(("libxml2" ,libxml2)
2059 ("zlib" ,zlib)))
2060 (native-inputs
2061 `(("pkg-config" ,pkg-config)
2062 ("r-knitr" ,r-knitr)))
2063 (home-page "https://github.com/hadley/xml2")
2064 (synopsis "Parse XML with R")
2065 (description
2066 "This package provides a simple, consistent interface to working with XML
2067 files in R. It is built on top of the libxml2 C library.")
2068 (license license:gpl2+)))
2069
2070 (define-public r-multitaper
2071 (package
2072 (name "r-multitaper")
2073 (version "1.0-15")
2074 (source
2075 (origin
2076 (method url-fetch)
2077 (uri (cran-uri "multitaper" version))
2078 (sha256
2079 (base32
2080 "1gm3wr8xqpqiby7q1dr3zxim77v0bvvrqi0hlazf5g3gnkrp2zc3"))))
2081 (build-system r-build-system)
2082 (native-inputs
2083 `(("gfortran" ,gfortran)))
2084 (home-page "https://github.com/wesleyburr/multitaper/")
2085 (synopsis "Multitaper spectral analysis tools")
2086 (description
2087 "This package implements multitaper spectral estimation
2088 techniques using prolate spheroidal sequences (Slepians) and sine
2089 tapers for time series analysis. It includes an adaptive weighted
2090 multitaper spectral estimate, a coherence estimate, Thomson's Harmonic
2091 F-test, and complex demodulation. The Slepians sequences are
2092 generated efficiently using a tridiagonal matrix solution, and
2093 jackknifed confidence intervals are available for most estimates.")
2094 (license license:gpl2+)))
2095
2096 (define-public r-rversions
2097 (package
2098 (name "r-rversions")
2099 (version "2.0.2")
2100 (source (origin
2101 (method url-fetch)
2102 (uri (cran-uri "rversions" version))
2103 (sha256
2104 (base32
2105 "0ghpla5r3d6zh5dn6d6ii5p0a952lcdv004m88fk8r9k76vz88rm"))))
2106 (build-system r-build-system)
2107 (propagated-inputs
2108 `(("r-curl" ,r-curl)
2109 ("r-xml2" ,r-xml2)))
2110 (home-page "https://github.com/metacran/rversions")
2111 (synopsis "Query R versions, including 'r-release' and 'r-oldrel'")
2112 (description
2113 "This package provides functions to query the main R repository to find
2114 the versions that @code{r-release} and @code{r-oldrel} refer to, and also all
2115 previous R versions and their release dates.")
2116 (license license:expat)))
2117
2118 (define-public r-whisker
2119 (package
2120 (name "r-whisker")
2121 (version "0.4")
2122 (source (origin
2123 (method url-fetch)
2124 (uri (cran-uri "whisker" version))
2125 (sha256
2126 (base32
2127 "1a7vz0dk95xfjvi38wbpw8vmf5qn3g8p490msz2rw0piwidmk1ks"))))
2128 (build-system r-build-system)
2129 (home-page "https://github.com/edwindj/whisker")
2130 (synopsis "Logicless mustache templating for R")
2131 (description
2132 "This package provides logicless templating, with a syntax that is not
2133 limited to R.")
2134 (license license:gpl3+)))
2135
2136 (define-public r-backports
2137 (package
2138 (name "r-backports")
2139 (version "1.2.1")
2140 (source
2141 (origin
2142 (method url-fetch)
2143 (uri (cran-uri "backports" version))
2144 (sha256
2145 (base32
2146 "1mf2nz78l97lbxyagv55bcxrny51ds8g28h307cfa1g3ayylp0x2"))))
2147 (build-system r-build-system)
2148 (home-page "https://cran.r-project.org/web/packages/backports")
2149 (synopsis "Reimplementations of functions introduced since R 3.0.0")
2150 (description
2151 "Provides implementations of functions which have been introduced in R
2152 since version 3.0.0. The backports are conditionally exported which results
2153 in R resolving the function names to the version shipped with R (if available)
2154 and uses the implemented backports as fallback. This way package developers
2155 can make use of the new functions without worrying about the minimum required
2156 R version.")
2157 (license license:gpl2+)))
2158
2159 (define-public r-checkmate
2160 (package
2161 (name "r-checkmate")
2162 (version "2.0.0")
2163 (source
2164 (origin
2165 (method url-fetch)
2166 (uri (cran-uri "checkmate" version))
2167 (sha256
2168 (base32
2169 "193gkifr9spp0x0rwnjq1spdhjkfkh4mv27iklskcj604075phhd"))))
2170 (build-system r-build-system)
2171 (propagated-inputs
2172 `(("r-backports" ,r-backports)))
2173 (home-page "https://github.com/mllg/checkmate")
2174 (synopsis "Fast and versatile argument checks")
2175 (description
2176 "This package provides tests and assertions to perform frequent argument
2177 checks. A substantial part of the package was written in C to minimize any
2178 worries about execution time overhead.")
2179 (license license:bsd-3)))
2180
2181 (define-public r-bbmisc
2182 (package
2183 (name "r-bbmisc")
2184 (version "1.11")
2185 (source
2186 (origin
2187 (method url-fetch)
2188 (uri (cran-uri "BBmisc" version))
2189 (sha256
2190 (base32
2191 "1lh1n4bvxzivb5rbz69mvd8xdgr3gr2bnqd68a39sd1530l8r90y"))))
2192 (properties `((upstream-name . "BBmisc")))
2193 (build-system r-build-system)
2194 (propagated-inputs
2195 `(("r-checkmate" ,r-checkmate)))
2196 (home-page "https://github.com/berndbischl/BBmisc")
2197 (synopsis "Miscellaneous functions for R package development")
2198 (description
2199 "This package provides miscellaneous helper functions for the development
2200 of R packages.")
2201 (license license:bsd-3)))
2202
2203 (define-public r-fail
2204 (package
2205 (name "r-fail")
2206 (version "1.3")
2207 (source
2208 (origin
2209 (method url-fetch)
2210 (uri (cran-uri "fail" version))
2211 (sha256
2212 (base32
2213 "0vfm6kmpmgsamda5p0sl771kbnsscan31l2chzssyw93kwmams7d"))))
2214 (build-system r-build-system)
2215 (propagated-inputs
2216 `(("r-bbmisc" ,r-bbmisc)
2217 ("r-checkmate" ,r-checkmate)))
2218 (home-page "https://github.com/mllg/fail")
2219 (synopsis "File abstraction interface layer (FAIL)")
2220 (description
2221 "This package provides a more comfortable interface to work with R data
2222 or source files in a key-value fashion.")
2223 (license license:bsd-3)))
2224
2225 (define-public r-batchjobs
2226 (package
2227 (name "r-batchjobs")
2228 (version "1.8")
2229 (source
2230 (origin
2231 (method url-fetch)
2232 (uri (cran-uri "BatchJobs" version))
2233 (sha256
2234 (base32
2235 "1zz4sspj596pijxlz321g0jy2rg9ki83j6fihbwisjwr66p2vk1m"))))
2236 (properties `((upstream-name . "BatchJobs")))
2237 (build-system r-build-system)
2238 (propagated-inputs
2239 `(("r-backports" ,r-backports)
2240 ("r-bbmisc" ,r-bbmisc)
2241 ("r-brew" ,r-brew)
2242 ("r-checkmate" ,r-checkmate)
2243 ("r-data-table" ,r-data-table)
2244 ("r-dbi" ,r-dbi)
2245 ("r-digest" ,r-digest)
2246 ("r-rsqlite" ,r-rsqlite)
2247 ("r-sendmailr" ,r-sendmailr)
2248 ("r-stringi" ,r-stringi)))
2249 (home-page "https://github.com/tudo-r/BatchJobs")
2250 (synopsis "Batch computing with R")
2251 (description
2252 "This package provides @code{Map}, @code{Reduce} and @code{Filter}
2253 variants to generate jobs on batch computing systems like PBS/Torque, LSF,
2254 SLURM and Sun Grid Engine. Multicore and SSH systems are also supported.")
2255 (license license:bsd-2)))
2256
2257 (define-public r-brew
2258 (package
2259 (name "r-brew")
2260 (version "1.0-6")
2261 (source (origin
2262 (method url-fetch)
2263 (uri (cran-uri "brew" version))
2264 (sha256
2265 (base32
2266 "1vghazbcha8gvkwwcdagjvzx6yl8zm7kgr0i9wxr4jng06d1l3fp"))))
2267 (build-system r-build-system)
2268 (home-page "https://cran.r-project.org/web/packages/brew")
2269 (synopsis "Templating framework for report generation")
2270 (description
2271 "The brew package implements a templating framework for mixing text and R
2272 code for report generation. The template syntax is similar to PHP, Ruby's erb
2273 module, Java Server Pages, and Python's psp module.")
2274 (license license:gpl2+)))
2275
2276 (define-public r-desc
2277 (package
2278 (name "r-desc")
2279 (version "1.3.0")
2280 (source
2281 (origin
2282 (method url-fetch)
2283 (uri (cran-uri "desc" version))
2284 (sha256
2285 (base32
2286 "1sw4vya3l971gpccq4gnjywgbl73bgx8la18l0wy617qv94f905y"))))
2287 (build-system r-build-system)
2288 (propagated-inputs
2289 `(("r-crayon" ,r-crayon)
2290 ("r-r6" ,r-r6)
2291 ("r-rprojroot" ,r-rprojroot)))
2292 (home-page "https://github.com/r-pkgs/desc")
2293 (synopsis "Manipulate DESCRIPTION Files")
2294 (description
2295 "This package provides tools to read, write, create, and manipulate
2296 DESCRIPTION files. It is intended for packages that create or manipulate
2297 other packages.")
2298 (license license:expat)))
2299
2300 (define-public r-commonmark
2301 (package
2302 (name "r-commonmark")
2303 (version "1.7")
2304 (source
2305 (origin
2306 (method url-fetch)
2307 (uri (cran-uri "commonmark" version))
2308 (sha256
2309 (base32
2310 "024iz1qp2kv6iz6y69ir0jk3qhjps86rhkzlcmhqsxx97rx7cjni"))))
2311 (build-system r-build-system)
2312 (home-page "https://cran.r-project.org/web/packages/commonmark")
2313 (synopsis "CommonMark and Github Markdown Rendering in R")
2314 (description
2315 "The CommonMark specification defines a rationalized version of markdown
2316 syntax. This package uses the @code{cmark} reference implementation for
2317 converting markdown text into various formats including HTML, LaTeX and groff
2318 man. In addition, it exposes the markdown parse tree in XML format. The latest
2319 version of this package also adds support for Github extensions including
2320 tables, autolinks and strikethrough text.")
2321 (license license:bsd-2)))
2322
2323 (define-public r-roxygen2
2324 (package
2325 (name "r-roxygen2")
2326 (version "7.1.1")
2327 (source (origin
2328 (method url-fetch)
2329 (uri (cran-uri "roxygen2" version))
2330 (sha256
2331 (base32
2332 "0qc8akwfwmaqsjaza87f5fi0zk6sh3l6j3assbs6chvx0gnmvidx"))))
2333 (build-system r-build-system)
2334 (propagated-inputs
2335 `(("r-brew" ,r-brew)
2336 ("r-commonmark" ,r-commonmark)
2337 ("r-desc" ,r-desc)
2338 ("r-digest" ,r-digest)
2339 ("r-knitr" ,r-knitr)
2340 ("r-pkgload" ,r-pkgload)
2341 ("r-purrr" ,r-purrr)
2342 ("r-r6" ,r-r6)
2343 ("r-rcpp" ,r-rcpp)
2344 ("r-rlang" ,r-rlang)
2345 ("r-stringi" ,r-stringi)
2346 ("r-stringr" ,r-stringr)
2347 ("r-xml2" ,r-xml2)))
2348 (native-inputs
2349 `(("r-knitr" ,r-knitr)))
2350 (home-page "https://github.com/klutometis/roxygen")
2351 (synopsis "In-source documentation system for R")
2352 (description
2353 "Roxygen2 is a Doxygen-like in-source documentation system for Rd,
2354 collation, and NAMESPACE files.")
2355 (license license:gpl2+)))
2356
2357 (define-public r-openssl
2358 (package
2359 (name "r-openssl")
2360 (version "1.4.3")
2361 (source
2362 (origin
2363 (method url-fetch)
2364 (uri (cran-uri "openssl" version))
2365 (sha256
2366 (base32
2367 "0sc2skh1nz7jj65p0pq4a6bl8jza6lyi4zvmvwndzxfgivgh281l"))))
2368 (build-system r-build-system)
2369 (inputs
2370 `(("libressl" ,libressl)))
2371 (native-inputs
2372 `(("pkg-config" ,pkg-config)
2373 ("r-knitr" ,r-knitr)))
2374 (propagated-inputs
2375 `(("r-askpass" ,r-askpass)))
2376 (home-page "https://github.com/jeroenooms/openssl")
2377 (synopsis "Toolkit for encryption, signatures and certificates")
2378 (description
2379 "This package provides R bindings to OpenSSL libssl and libcrypto, plus
2380 custom SSH pubkey parsers. It supports RSA, DSA and NIST curves P-256, P-384
2381 and P-521. Cryptographic signatures can either be created and verified
2382 manually or via x509 certificates. AES block cipher is used in CBC mode for
2383 symmetric encryption; RSA for asymmetric (public key) encryption. High-level
2384 envelope functions combine RSA and AES for encrypting arbitrary sized data.
2385 Other utilities include key generators, hash functions (md5, sha1, sha256,
2386 etc), base64 encoder, a secure random number generator, and @code{bignum} math
2387 methods for manually performing crypto calculations on large multibyte
2388 integers.")
2389 (license license:expat)))
2390
2391 (define-public r-httr
2392 (package
2393 (name "r-httr")
2394 (version "1.4.2")
2395 (source (origin
2396 (method url-fetch)
2397 (uri (cran-uri "httr" version))
2398 (sha256
2399 (base32
2400 "1y8y1g1dkgv9jafrk1kj6pzxpw95c0rr9lplblfq2byrs1pfsas6"))))
2401 (build-system r-build-system)
2402 (propagated-inputs
2403 `(("r-curl" ,r-curl)
2404 ("r-jsonlite" ,r-jsonlite)
2405 ("r-openssl" ,r-openssl)
2406 ("r-mime" ,r-mime)
2407 ("r-r6" ,r-r6)))
2408 (native-inputs
2409 `(("r-knitr" ,r-knitr)))
2410 (home-page "https://github.com/hadley/httr")
2411 (synopsis "Tools for working with URLs and HTTP")
2412 (description
2413 "The aim of httr is to provide a wrapper for RCurl customised to the
2414 demands of modern web APIs. It provides useful tools for working with HTTP
2415 organised by HTTP verbs (@code{GET()}, @code{POST()}, etc). Configuration
2416 functions make it easy to control additional request components.")
2417 (license license:expat)))
2418
2419 (define-public r-git2r
2420 (package
2421 (name "r-git2r")
2422 (version "0.28.0")
2423 (source (origin
2424 (method url-fetch)
2425 (uri (cran-uri "git2r" version))
2426 (sha256
2427 (base32
2428 "1wjmbs9cmm16pm3g0rmqp7cxxyh95m5lgx4fx5bpgj6j466i8vff"))))
2429 (build-system r-build-system)
2430 (inputs
2431 `(("libgit2" ,libgit2)
2432 ("zlib" ,zlib)))
2433 (native-inputs
2434 `(("pkg-config" ,pkg-config)))
2435 (home-page "https://github.com/ropensci/git2r")
2436 (synopsis "Access Git repositories with R")
2437 (description
2438 "This package provides an R interface to the libgit2 library, which is a
2439 pure C implementation of the Git core methods.")
2440 ;; GPLv2 only with linking exception.
2441 (license license:gpl2)))
2442
2443 (define-public r-rstudioapi
2444 (package
2445 (name "r-rstudioapi")
2446 (version "0.13")
2447 (source (origin
2448 (method url-fetch)
2449 (uri (cran-uri "rstudioapi" version))
2450 (sha256
2451 (base32
2452 "12vdfzzjc6mv4h105l8cp108j3hjk0mqmg23m6mqr3jarfymphxa"))))
2453 (build-system r-build-system)
2454 (native-inputs
2455 `(("r-knitr" ,r-knitr)))
2456 (home-page "https://cran.r-project.org/web/packages/rstudioapi")
2457 (synopsis "Safely access the RStudio API")
2458 (description
2459 "This package provides functions to access the RStudio API and provide
2460 informative error messages when it's not available.")
2461 (license license:expat)))
2462
2463 (define-public r-devtools
2464 (package
2465 (name "r-devtools")
2466 (version "2.3.2")
2467 (source (origin
2468 (method url-fetch)
2469 (uri (cran-uri "devtools" version))
2470 (sha256
2471 (base32
2472 "0vcqs4c5dfjs2ddkclv3z7zzix2zrnrxvzax8hjvjszgp8362275"))))
2473 (build-system r-build-system)
2474 (propagated-inputs
2475 `(("r-callr" ,r-callr)
2476 ("r-cli" ,r-cli)
2477 ("r-covr" ,r-covr)
2478 ("r-desc" ,r-desc)
2479 ("r-dt" ,r-dt)
2480 ("r-ellipsis" ,r-ellipsis)
2481 ("r-httr" ,r-httr)
2482 ("r-jsonlite" ,r-jsonlite)
2483 ("r-memoise" ,r-memoise)
2484 ("r-pkgbuild" ,r-pkgbuild)
2485 ("r-pkgload" ,r-pkgload)
2486 ("r-rcmdcheck" ,r-rcmdcheck)
2487 ("r-remotes" ,r-remotes)
2488 ("r-rlang" ,r-rlang)
2489 ("r-roxygen2" ,r-roxygen2)
2490 ("r-rstudioapi" ,r-rstudioapi)
2491 ("r-rversions" ,r-rversions)
2492 ("r-sessioninfo" ,r-sessioninfo)
2493 ("r-testthat" ,r-testthat)
2494 ("r-usethis" ,r-usethis)
2495 ("r-withr" ,r-withr)))
2496 (native-inputs
2497 `(("r-knitr" ,r-knitr)))
2498 (home-page "https://github.com/hadley/devtools")
2499 (synopsis "Tools to make developing R packages easier")
2500 (description "The devtools package is a collection of package development
2501 tools to simplify the devolpment of R packages.")
2502 (license license:gpl2+)))
2503
2504 (define-public r-withr
2505 (package
2506 (name "r-withr")
2507 (version "2.4.1")
2508 (source (origin
2509 (method url-fetch)
2510 (uri (cran-uri "withr" version))
2511 (sha256
2512 (base32
2513 "13qpcx7vjnqchvbbdwiqw286gkiajp02pcvhn7w7ddjiil2xjpjz"))))
2514 (build-system r-build-system)
2515 (native-inputs
2516 `(("r-knitr" ,r-knitr)))
2517 (home-page "https://github.com/jimhester/withr")
2518 (synopsis "Run code with temporarily modified global state")
2519 (description
2520 "This package provides a set of functions to run R code in an environment
2521 in which global state has been temporarily modified. Many of these functions
2522 were originally a part of the r-devtools package.")
2523 (license license:gpl2+)))
2524
2525 (define-public r-hms
2526 (package
2527 (name "r-hms")
2528 (version "1.0.0")
2529 (source
2530 (origin
2531 (method url-fetch)
2532 (uri (cran-uri "hms" version))
2533 (sha256
2534 (base32
2535 "0qn9lvpkqrpxck88nf0zbff43vd7d6s1ibg58qfr3w14sw1yj14p"))))
2536 (build-system r-build-system)
2537 (propagated-inputs
2538 `(("r-ellipsis" ,r-ellipsis)
2539 ("r-lifecycle" ,r-lifecycle)
2540 ("r-pkgconfig" ,r-pkgconfig)
2541 ("r-rlang" ,r-rlang)
2542 ("r-vctrs" ,r-vctrs)))
2543 (home-page "https://github.com/rstats-db/hms")
2544 (synopsis "Pretty time of day")
2545 (description
2546 "This package implements an S3 class for storing and formatting
2547 time-of-day values, based on the @code{difftime} class.")
2548 (license license:gpl3+)))
2549
2550 (define-public r-readr
2551 (package
2552 (name "r-readr")
2553 (version "1.4.0")
2554 (source (origin
2555 (method url-fetch)
2556 (uri (cran-uri "readr" version))
2557 (sha256
2558 (base32
2559 "1fa67h4l9d30ig460xizgzl115i9pm3bk9dvsbrw6awbmf51ic82"))))
2560 (build-system r-build-system)
2561 (propagated-inputs
2562 `(("r-cli" ,r-cli)
2563 ("r-clipr" ,r-clipr)
2564 ("r-cpp11" ,r-cpp11)
2565 ("r-crayon" ,r-crayon)
2566 ("r-hms" ,r-hms)
2567 ("r-lifecycle" ,r-lifecycle)
2568 ("r-tibble" ,r-tibble)
2569 ("r-r6" ,r-r6)
2570 ("r-rlang" ,r-rlang)
2571 ("r-bh" ,r-bh)))
2572 (native-inputs
2573 `(("r-knitr" ,r-knitr)))
2574 (home-page "https://github.com/hadley/readr")
2575 (synopsis "Read tabular data")
2576 (description
2577 "This package provides functions to read flat or tabular text files from
2578 disk (or a connection).")
2579 (license license:gpl2+)))
2580
2581 (define-public r-plotrix
2582 (package
2583 (name "r-plotrix")
2584 (version "3.8-1")
2585 (source (origin
2586 (method url-fetch)
2587 (uri (cran-uri "plotrix" version))
2588 (sha256
2589 (base32
2590 "0pxfaalwwmnpv19nff0cg6b871m6gjhhmx63fpxm7730z75qh663"))))
2591 (build-system r-build-system)
2592 (home-page "https://cran.r-project.org/web/packages/plotrix")
2593 (synopsis "Various plotting functions")
2594 (description
2595 "This package provides lots of plotting, various labeling, axis and color
2596 scaling functions for R.")
2597 (license license:gpl2+)))
2598
2599 (define-public r-gridbase
2600 (package
2601 (name "r-gridbase")
2602 (version "0.4-7")
2603 (source (origin
2604 (method url-fetch)
2605 (uri (cran-uri "gridBase" version))
2606 (sha256
2607 (base32
2608 "09jzw4rzwf2y5lcz7b16mb68pn0fqigv34ff7lr6w3yi9k91i1xy"))))
2609 (build-system r-build-system)
2610 (home-page "https://cran.r-project.org/web/packages/gridBase")
2611 (synopsis "Integration of base and grid graphics")
2612 (description
2613 "This package provides an integration of base and grid graphics for R.")
2614 (license license:gpl2+)))
2615
2616 (define-public r-latticeextra
2617 (package
2618 (name "r-latticeextra")
2619 (version "0.6-29")
2620 (source
2621 (origin
2622 (method url-fetch)
2623 (uri (cran-uri "latticeExtra" version))
2624 (sha256
2625 (base32
2626 "04fzwcqs594rk5qp98yilh3kdh3sw4xf8wld5rp94ggpaqfw7bbc"))))
2627 (properties `((upstream-name . "latticeExtra")))
2628 (build-system r-build-system)
2629 (propagated-inputs
2630 `(("r-jpeg" ,r-jpeg)
2631 ("r-lattice" ,r-lattice)
2632 ("r-png" ,r-png)
2633 ("r-rcolorbrewer" ,r-rcolorbrewer)))
2634 (home-page "http://latticeextra.r-forge.r-project.org/")
2635 (synopsis "Extra graphical utilities based on lattice")
2636 (description
2637 "Building on the infrastructure provided by the lattice package, this
2638 package provides several new high-level graphics functions and methods, as
2639 well as additional utilities such as panel and axis annotation functions.")
2640 (license license:gpl2+)))
2641
2642 (define-public r-rcpparmadillo
2643 (package
2644 (name "r-rcpparmadillo")
2645 (version "0.10.2.2.0")
2646 (source (origin
2647 (method url-fetch)
2648 (uri (cran-uri "RcppArmadillo" version))
2649 (sha256
2650 (base32
2651 "193smj6vp3cn3qjhrx2llgi5c7hs069crhvi85xj2vzx80fx6r9q"))))
2652 (properties `((upstream-name . "RcppArmadillo")))
2653 (build-system r-build-system)
2654 (propagated-inputs
2655 `(("r-rcpp" ,r-rcpp)))
2656 (home-page "https://github.com/RcppCore/RcppArmadillo")
2657 (synopsis "Rcpp integration for the Armadillo linear algebra library")
2658 (description
2659 "Armadillo is a templated C++ linear algebra library that aims towards a
2660 good balance between speed and ease of use. Integer, floating point and
2661 complex numbers are supported, as well as a subset of trigonometric and
2662 statistics functions. Various matrix decompositions are provided through
2663 optional integration with LAPACK and ATLAS libraries. This package includes
2664 the header files from the templated Armadillo library.")
2665 ;; Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
2666 ;; bindings to Armadillo) is licensed under the GNU GPL version 2 or
2667 ;; later, as is the rest of 'Rcpp'.
2668 (license license:gpl2+)))
2669
2670 (define-public r-bitops
2671 (package
2672 (name "r-bitops")
2673 (version "1.0-6")
2674 (source (origin
2675 (method url-fetch)
2676 (uri (cran-uri "bitops" version))
2677 (sha256
2678 (base32
2679 "176nr5wpnkavn5z0yy9f7d47l37ndnn2w3gv854xav8nnybi6wwv"))))
2680 (build-system r-build-system)
2681 (home-page "https://cran.r-project.org/web/packages/bitops")
2682 (synopsis "Bitwise operations")
2683 (description
2684 "This package provides functions for bitwise operations on integer
2685 vectors.")
2686 (license license:gpl2+)))
2687
2688 (define-public r-catools
2689 (package
2690 (name "r-catools")
2691 (version "1.18.2")
2692 (source (origin
2693 (method url-fetch)
2694 (uri (cran-uri "caTools" version))
2695 (sha256
2696 (base32
2697 "14q2ry8gaszjl0m97qg62dxv5bpj6k02qwyi7q2lnxgcmwai3mkm"))))
2698 (properties `((upstream-name . "caTools")))
2699 (build-system r-build-system)
2700 (propagated-inputs
2701 `(("r-bitops" ,r-bitops)))
2702 (home-page "https://cran.r-project.org/web/packages/caTools")
2703 (synopsis "Various tools including functions for moving window statistics")
2704 (description
2705 "This package contains several basic utility functions including:
2706 moving (rolling, running) window statistic functions, read/write for GIF and
2707 ENVI binary files, fast calculation of AUC, LogitBoost classifier, base64
2708 encoder/decoder, round-off-error-free sum and cumsum, etc.")
2709 (license license:gpl3+)))
2710
2711 (define-public r-rprojroot
2712 (package
2713 (name "r-rprojroot")
2714 (version "2.0.2")
2715 (source
2716 (origin
2717 (method url-fetch)
2718 (uri (cran-uri "rprojroot" version))
2719 (sha256
2720 (base32
2721 "07wy07yhms8zln9qb0iwx69dq08h4lrdi8kavjcplfxcskq638az"))))
2722 (build-system r-build-system)
2723 (native-inputs
2724 `(("r-knitr" ,r-knitr)))
2725 (home-page "https://github.com/krlmlr/rprojroot")
2726 (synopsis "Finding files in project subdirectories")
2727 (description
2728 "This package helps accessing files relative to a project root. It
2729 provides helpers for robust, reliable and flexible paths to files below a
2730 project root. The root of a project is defined as a directory that matches a
2731 certain criterion, e.g., it contains a certain regular file.")
2732 (license license:gpl3)))
2733
2734 (define-public r-rmarkdown
2735 (package
2736 (name "r-rmarkdown")
2737 (version "2.7")
2738 (source
2739 (origin
2740 (method url-fetch)
2741 (uri (cran-uri "rmarkdown" version))
2742 (sha256
2743 (base32 "0shj637qhpcf30il3lhl3k5bxi5l3x3gf612hbqlakp1qrgrf8lm"))))
2744 (properties `((upstream-name . "rmarkdown")))
2745 (build-system r-build-system)
2746 (propagated-inputs
2747 `(("r-evaluate" ,r-evaluate)
2748 ("r-htmltools" ,r-htmltools)
2749 ("r-jsonlite" ,r-jsonlite)
2750 ("r-knitr" ,r-knitr)
2751 ("r-stringr" ,r-stringr)
2752 ("r-tinytex" ,r-tinytex)
2753 ("r-xfun" ,r-xfun)
2754 ("r-yaml" ,r-yaml)
2755 ("pandoc" ,pandoc)
2756 ("pandoc-citeproc" ,pandoc-citeproc)))
2757 (native-inputs
2758 `(("r-knitr" ,r-knitr)))
2759 (home-page "https://rmarkdown.rstudio.com")
2760 (synopsis "Convert R Markdown documents into a variety of formats")
2761 (description
2762 "This package provides tools to convert R Markdown documents into a
2763 variety of formats.")
2764 (license license:gpl3+)))
2765
2766 (define-public r-gtable
2767 (package
2768 (name "r-gtable")
2769 (version "0.3.0")
2770 (source (origin
2771 (method url-fetch)
2772 (uri (cran-uri "gtable" version))
2773 (sha256
2774 (base32
2775 "1lyncxf2dqdjgw1071cn9c8zwzkz6sldnd5cgmicf70bc726qf7x"))))
2776 (properties `((upstream-name . "gtable")))
2777 (build-system r-build-system)
2778 (home-page "https://cran.r-project.org/web/packages/gtable")
2779 (synopsis "R library to arrange grobs in tables")
2780 (description
2781 "Gtable is a collection of tools to make it easier to work with
2782 \"tables\" of grobs.")
2783 (license license:gpl2+)))
2784
2785 (define-public r-gridextra
2786 (package
2787 (name "r-gridextra")
2788 (version "2.3")
2789 (source (origin
2790 (method url-fetch)
2791 (uri (cran-uri "gridExtra" version))
2792 (sha256
2793 (base32
2794 "0fwfk3cdwxxim7nd55pn7m31bcaqj48y06j7an2k1v1pybk0rdl1"))))
2795 (properties `((upstream-name . "gridExtra")))
2796 (build-system r-build-system)
2797 (propagated-inputs
2798 `(("r-gtable" ,r-gtable)))
2799 (native-inputs
2800 `(("r-knitr" ,r-knitr))) ;for building vignettes
2801 (home-page "https://github.com/baptiste/gridextra")
2802 (synopsis "Miscellaneous functions for \"Grid\" graphics")
2803 (description
2804 "This package provides a number of user-level functions to work with
2805 @code{grid} graphics, notably to arrange multiple grid-based plots on a page,
2806 and draw tables.")
2807 (license license:gpl2+)))
2808
2809 (define-public r-pkgconfig
2810 (package
2811 (name "r-pkgconfig")
2812 (version "2.0.3")
2813 (source (origin
2814 (method url-fetch)
2815 (uri (cran-uri "pkgconfig" version))
2816 (sha256
2817 (base32
2818 "0l1qph8zyi2sic3k2qcd7vlfl7rzfh1q7z7zvjkl5f7y1x2fy3rk"))))
2819 (build-system r-build-system)
2820 (home-page "https://github.com/gaborcsardi/pkgconfig")
2821 (synopsis "Private configuration for R packages")
2822 (description "This package provides the functionality to set configuration
2823 options on a per-package basis. Options set by a given package only apply to
2824 that package, other packages are unaffected.")
2825 (license license:expat)))
2826
2827 (define-public r-blob
2828 (package
2829 (name "r-blob")
2830 (version "1.2.1")
2831 (source (origin
2832 (method url-fetch)
2833 (uri (cran-uri "blob" version))
2834 (sha256
2835 (base32
2836 "1slb5mvxfyi92i8ifx2qa31hp57inilwhq1g9lzvgha6jrxbqm7g"))))
2837 (build-system r-build-system)
2838 (propagated-inputs
2839 `(("r-rlang" ,r-rlang)
2840 ("r-vctrs" ,r-vctrs)))
2841 (home-page "https://github.com/hadley/blob")
2842 (synopsis "Simple S3 Class for representing vectors of binary data")
2843 (description "Raw vectors in R are useful for storing a single binary
2844 object. What if you want to put a vector of them in a data frame? The blob
2845 package provides the blob object, a list of raw vectors, suitable for use as
2846 a column in data frame.")
2847 (license license:gpl3+)))
2848
2849 (define-public r-rsqlite
2850 (package
2851 (name "r-rsqlite")
2852 (version "2.2.5")
2853 (source (origin
2854 (method url-fetch)
2855 (uri (cran-uri "RSQLite" version))
2856 (sha256
2857 (base32
2858 "14cxqh8j5v2rqs6yiargy1miycvx7xj47lppvpnnchi5plimlvyy"))))
2859 (properties `((upstream-name . "RSQLite")))
2860 (build-system r-build-system)
2861 (propagated-inputs
2862 `(("r-dbi" ,r-dbi)
2863 ("r-bh" ,r-bh)
2864 ("r-memoise" ,r-memoise)
2865 ("r-plogr" ,r-plogr)
2866 ("r-rcpp" ,r-rcpp)
2867 ("r-bit64" ,r-bit64)
2868 ("r-blob" ,r-blob)
2869 ("r-pkgconfig" ,r-pkgconfig)))
2870 (native-inputs
2871 `(("r-knitr" ,r-knitr)))
2872 (home-page "https://github.com/rstats-db/RSQLite")
2873 (synopsis "SQLite interface for R")
2874 (description
2875 "This package embeds the SQLite database engine in R and provides an
2876 interface compliant with the DBI package. The source for the SQLite
2877 engine (version 3.8.8.2) is included.")
2878 (license license:lgpl2.0+)))
2879
2880 (define-public r-rcurl
2881 (package
2882 (name "r-rcurl")
2883 (version "1.95-0.1.2")
2884 (source (origin
2885 (method url-fetch)
2886 (uri (string-append "https://www.bioconductor.org/packages/"
2887 "release/extra/src/"
2888 "contrib/RCurl_" version ".tar.gz"))
2889 (sha256
2890 (base32
2891 "0l7qi45jxlf898n0jazabnam1yyczvqfdknd00bdirhhiplpd1sc"))))
2892 (properties `((upstream-name . "RCurl")))
2893 (build-system r-build-system)
2894 (arguments
2895 `(#:phases
2896 (modify-phases %standard-phases
2897 (add-after 'unpack 'respect-CURL_CA_BUNDLE
2898 (lambda _
2899 (substitute* "R/options.S"
2900 (("\\.els = rev\\(merge\\(list\\(\\.\\.\\.\\), \\.opts\\)\\)" m)
2901 (string-append "\
2902 certs = Sys.getenv(\"CURL_CA_BUNDLE\")
2903 if (certs != \"\") { .opts = merge.list(.opts, list(cainfo=certs)) }
2904 " m)))
2905 #t)))))
2906 (inputs
2907 `(("libcurl" ,curl)))
2908 (propagated-inputs
2909 `(("r-bitops" ,r-bitops)))
2910 (home-page "http://www.omegahat.net/RCurl")
2911 (synopsis "General network client interface for R")
2912 (description
2913 "The package allows one to compose general HTTP requests and provides
2914 convenient functions to fetch URIs, GET and POST forms, etc. and process the
2915 results returned by the Web server. This provides a great deal of control
2916 over the HTTP/FTP/... connection and the form of the request while providing a
2917 higher-level interface than is available just using R socket connections.
2918 Additionally, the underlying implementation is robust and extensive,
2919 supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict,
2920 ldap, and also supports cookies, redirects, authentication, etc.")
2921 (license license:bsd-3)))
2922
2923 (define-public r-xml
2924 (package
2925 (name "r-xml")
2926 (version "3.99-0.6")
2927 (source (origin
2928 (method url-fetch)
2929 (uri (cran-uri "XML" version))
2930 (sha256
2931 (base32
2932 "0qibvacbfm7gl41ylway3vdyi1qbpa211d48rg3k5i30d48rbf58"))))
2933 (properties
2934 `((upstream-name . "XML")))
2935 (build-system r-build-system)
2936 (inputs
2937 `(("libxml2" ,libxml2)
2938 ("zlib" ,zlib)))
2939 (native-inputs
2940 `(("pkg-config" ,pkg-config)))
2941 (home-page "http://www.omegahat.net/RSXML")
2942 (synopsis "Tools for parsing and generating XML within R")
2943 (description
2944 "Many approaches for both reading and creating XML (and HTML)
2945 documents (including DTDs), both local and accessible via HTTP or FTP. Also
2946 offers access to an XPath \"interpreter\".")
2947 (license license:bsd-2)))
2948
2949 (define-public r-xnomial
2950 (package
2951 (name "r-xnomial")
2952 (version "1.0.4")
2953 (source
2954 (origin (method url-fetch)
2955 (uri (cran-uri "XNomial" version))
2956 (sha256
2957 (base32
2958 "1mwx302576rmsjllbq2clfxilm3hkyp5bw0wmwqbn0kgv5wpy8z6"))))
2959 (properties (quasiquote ((upstream-name . "XNomial"))))
2960 (build-system r-build-system)
2961 (home-page "https://cran.r-project.org/web/packages/XNomial")
2962 (synopsis "Goodness-of-Fit test for multinomial data")
2963 (description
2964 "This package provides an exact Goodness-of-Fit test for
2965 multinomial data with fixed probabilities. It can be used to
2966 determine whether a set of counts fits a given expected ratio. To see
2967 whether a set of observed counts fits an expectation, one can examine
2968 all possible outcomes with @code{xmulti()} or a random sample of them
2969 with @code{xmonte()} and find the probability of an observation
2970 deviating from the expectation by at least as much as the observed.
2971 As a measure of deviation from the expected, one can use the
2972 log-likelihood ratio, the multinomial probability, or the classic
2973 chi-square statistic. A histogram of the test statistic can also be
2974 plotted and compared with the asymptotic curve.")
2975 (license (list license:gpl2+ license:gpl3+))))
2976
2977 (define-public r-lambda-r
2978 (package
2979 (name "r-lambda-r")
2980 (version "1.2.4")
2981 (source (origin
2982 (method url-fetch)
2983 (uri (cran-uri "lambda.r" version))
2984 (sha256
2985 (base32
2986 "1mh1g0gsd58gng0hb29vww2yqb2jfs07kba5kxnnqck5j3izwlnj"))))
2987 (properties `((upstream-name . "lambda.r")))
2988 (build-system r-build-system)
2989 (propagated-inputs
2990 `(("r-formatr" ,r-formatr)))
2991 (home-page "https://cran.r-project.org/web/packages/lambda.r")
2992 (synopsis "Functional programming extension for R")
2993 (description
2994 "This package provides a language extension to efficiently write
2995 functional programs in R. Syntax extensions include multi-part function
2996 definitions, pattern matching, guard statements, built-in (optional) type
2997 safety.")
2998 (license license:lgpl3+)))
2999
3000 (define-public r-futile-options
3001 (package
3002 (name "r-futile-options")
3003 (version "1.0.1")
3004 (source (origin
3005 (method url-fetch)
3006 (uri (cran-uri "futile.options" version))
3007 (sha256
3008 (base32
3009 "0w15agpi88y3qkv6fl72zy2pzyplzgvnj41a4ixhg64mw1sck73s"))))
3010 (properties
3011 `((upstream-name . "futile.options")))
3012 (build-system r-build-system)
3013 (home-page "https://cran.r-project.org/web/packages/futile.options")
3014 (synopsis "Options management framework")
3015 (description
3016 "The futile.options subsystem provides an easy user-defined options
3017 management system that is properly scoped. This means that options created
3018 via @code{futile.options} are fully self-contained and will not collide with
3019 options defined in other packages.")
3020 (license license:lgpl3+)))
3021
3022 (define-public r-futile-logger
3023 (package
3024 (name "r-futile-logger")
3025 (version "1.4.3")
3026 (source (origin
3027 (method url-fetch)
3028 (uri (cran-uri "futile.logger" version))
3029 (sha256
3030 (base32
3031 "1r3nayk0z9n1svbf8640vw90dal5q07nkn0gv4bnva3pbzb352sy"))))
3032 (properties `((upstream-name . "futile.logger")))
3033 (build-system r-build-system)
3034 (propagated-inputs
3035 `(("r-futile-options" ,r-futile-options)
3036 ("r-lambda-r" ,r-lambda-r)))
3037 (home-page "https://cran.r-project.org/web/packages/futile.logger")
3038 (synopsis "Logging utility for R")
3039 (description
3040 "This package provides a simple yet powerful logging utility. Based
3041 loosely on log4j, futile.logger takes advantage of R idioms to make logging a
3042 convenient and easy to use replacement for @code{cat} and @code{print}
3043 statements.")
3044 (license license:lgpl3+)))
3045
3046 (define-public r-segmented
3047 (package
3048 (name "r-segmented")
3049 (version "1.3-3")
3050 (source
3051 (origin
3052 (method url-fetch)
3053 (uri (cran-uri "segmented" version))
3054 (sha256
3055 (base32
3056 "16036lp0dq7qqzy8wc4qsgv58zksz6hmgw51v88gl6xclryc670y"))))
3057 (build-system r-build-system)
3058 (home-page "https://cran.r-project.org/web/packages/segmented")
3059 (synopsis "Regression models with breakpoints estimation")
3060 (description
3061 "Given a regression model, segmented updates the model by adding one or
3062 more segmented (i.e., piecewise-linear) relationships. Several variables with
3063 multiple breakpoints are allowed.")
3064 (license (list license:gpl2+ license:gpl3+))))
3065
3066 (define-public r-snow
3067 (package
3068 (name "r-snow")
3069 (version "0.4-3")
3070 (source (origin
3071 (method url-fetch)
3072 (uri (cran-uri "snow" version))
3073 (sha256
3074 (base32
3075 "1n3n8pva9s34fvlw32yng0x416lmbv7q1fsd0ywa4kikmxym64l5"))))
3076 (build-system r-build-system)
3077 (home-page "https://cran.r-project.org/web/packages/snow")
3078 (synopsis "Support for simple parallel computing in R")
3079 (description
3080 "The snow package provides support for simple parallel computing on a
3081 network of workstations using R. A master R process calls @code{makeCluster}
3082 to start a cluster of worker processes; the master process then uses functions
3083 such as @code{clusterCall} and @code{clusterApply} to execute R code on the
3084 worker processes and collect and return the results on the master.")
3085 (license (list license:gpl2+ license:gpl3+))))
3086
3087 (define-public r-sparsem
3088 (package
3089 (name "r-sparsem")
3090 (version "1.81")
3091 (source (origin
3092 (method url-fetch)
3093 (uri (cran-uri "SparseM" version))
3094 (sha256
3095 (base32
3096 "0csbqd9wm6r4162mday1iaigzf9wv2rp1zq8hnihys6f38w8z0xx"))))
3097 (properties
3098 `((upstream-name . "SparseM")))
3099 (native-inputs
3100 `(("gfortran" ,gfortran)))
3101 (build-system r-build-system)
3102 (home-page "http://www.econ.uiuc.edu/~roger/research/sparse/sparse.html")
3103 (synopsis "Sparse linear algebra")
3104 (description
3105 "This package provides some basic linear algebra functionality for sparse
3106 matrices. It includes Cholesky decomposition and backsolving as well as
3107 standard R subsetting and Kronecker products.")
3108 (license license:gpl2+)))
3109
3110 (define-public r-iterators
3111 (package
3112 (name "r-iterators")
3113 (version "1.0.13")
3114 (source
3115 (origin
3116 (method url-fetch)
3117 (uri (cran-uri "iterators" version))
3118 (sha256
3119 (base32
3120 "190i1y2493v5c9z8978rb3idlwsjymy67k1assa9znljqbj313kp"))))
3121 (build-system r-build-system)
3122 (home-page "https://cran.r-project.org/web/packages/iterators")
3123 (synopsis "Iterator construct for R")
3124 (description
3125 "This package provides support for iterators, which allow a programmer to
3126 traverse through all the elements of a vector, list, or other collection of
3127 data.")
3128 (license license:asl2.0)))
3129
3130 (define-public r-foreach
3131 (package
3132 (name "r-foreach")
3133 (version "1.5.1")
3134 (source
3135 (origin
3136 (method url-fetch)
3137 (uri (cran-uri "foreach" version))
3138 (sha256
3139 (base32
3140 "1qb83b1jvpmk8d6kfibkm5q2hiki0x5gipy758mwa62n56gdcnpv"))))
3141 (build-system r-build-system)
3142 (propagated-inputs
3143 `(("r-codetools" ,r-codetools)
3144 ("r-iterators" ,r-iterators)))
3145 (native-inputs
3146 `(("r-knitr" ,r-knitr)))
3147 (home-page "https://cran.r-project.org/web/packages/foreach")
3148 (synopsis "Foreach looping construct for R")
3149 (description
3150 "This package provides support for the @code{foreach} looping construct.
3151 @code{foreach} is an idiom that allows for iterating over elements in a
3152 collection, without the use of an explicit loop counter. This package in
3153 particular is intended to be used for its return value, rather than for its
3154 side effects. In that sense, it is similar to the standard @code{lapply}
3155 function, but doesn't require the evaluation of a function. Using
3156 @code{foreach} without side effects also facilitates executing the loop in
3157 parallel.")
3158 (license license:asl2.0)))
3159
3160 (define-public r-doparallel
3161 (package
3162 (name "r-doparallel")
3163 (version "1.0.16")
3164 (source
3165 (origin
3166 (method url-fetch)
3167 (uri (cran-uri "doParallel" version))
3168 (sha256
3169 (base32
3170 "1cjf0mxrxgls5pl7aj22fv9j488craib1wkc9np4f3gkckwjdfzi"))))
3171 (properties `((upstream-name . "doParallel")))
3172 (build-system r-build-system)
3173 (propagated-inputs
3174 `(("r-foreach" ,r-foreach)
3175 ("r-iterators" ,r-iterators)))
3176 (home-page "https://cran.r-project.org/web/packages/doParallel")
3177 (synopsis "Foreach parallel adaptor for the 'parallel' package")
3178 (description
3179 "This package provides a parallel backend for the @code{%dopar%} function
3180 using the parallel package.")
3181 (license license:gpl2+)))
3182
3183 (define-public r-domc
3184 (package
3185 (name "r-domc")
3186 (version "1.3.7")
3187 (source
3188 (origin
3189 (method url-fetch)
3190 (uri (cran-uri "doMC" version))
3191 (sha256
3192 (base32
3193 "0kdmfhp5m1wisjbfyl9d040jrmjmhcgjb0vdi536g2i9vixb5yny"))))
3194 (properties `((upstream-name . "doMC")))
3195 (build-system r-build-system)
3196 (propagated-inputs
3197 `(("r-foreach" ,r-foreach)
3198 ("r-iterators" ,r-iterators)))
3199 (home-page "https://cran.r-project.org/web/packages/doMC")
3200 (synopsis "Foreach parallel adaptor for the 'parallel' package")
3201 (description
3202 "This package provides a parallel backend for the @code{%dopar%} function
3203 using the multicore functionality of the parallel package.")
3204 (license license:gpl2+)))
3205
3206 (define-public r-dt
3207 (package
3208 (name "r-dt")
3209 (version "0.17")
3210 (source (origin
3211 (method url-fetch)
3212 (uri (cran-uri "DT" version))
3213 (sha256
3214 (base32
3215 "0mpvyfmi2viyhdqx11hznd7dl0q6kxrdmppjsmm2pk0x8a904hz3"))))
3216 (properties
3217 `((upstream-name . "DT")))
3218 (build-system r-build-system)
3219 (propagated-inputs
3220 `(("r-crosstalk" ,r-crosstalk)
3221 ("r-htmltools" ,r-htmltools)
3222 ("r-htmlwidgets" ,r-htmlwidgets)
3223 ("r-jsonlite" ,r-jsonlite)
3224 ("r-magrittr" ,r-magrittr)
3225 ("r-promises" ,r-promises)))
3226 (native-inputs
3227 `(("r-knitr" ,r-knitr)))
3228 (home-page "https://rstudio.github.io/DT")
3229 (synopsis "R wrapper of the DataTables JavaScript library")
3230 (description
3231 "This package allows for data objects in R to be rendered as HTML tables
3232 using the JavaScript library @code{DataTables} (typically via R Markdown or
3233 Shiny). The @code{DataTables} library has been included in this R package.")
3234 ;; The DT package as a whole is distributed under GPLv3. The DT package
3235 ;; inludes other software components under different licenses:
3236 ;;
3237 ;; * Expat: jQuery, jquery.highlight.js, DataTables
3238 ;; * ASL2.0: selectize.js
3239 ;; * WTFPL: noUiSlider
3240 (license (list license:gpl3
3241 license:expat
3242 license:asl2.0
3243 license:wtfpl2))))
3244
3245 (define-public r-base64enc
3246 (package
3247 (name "r-base64enc")
3248 (version "0.1-3")
3249 (source (origin
3250 (method url-fetch)
3251 (uri (cran-uri "base64enc" version))
3252 (sha256
3253 (base32
3254 "13b89fhg1nx7zds82a0biz847ixphg9byf5zl2cw9kab6s56v1bd"))))
3255 (build-system r-build-system)
3256 (home-page "https://www.rforge.net/base64enc")
3257 (synopsis "Tools for Base64 encoding")
3258 (description
3259 "This package provides tools for handling Base64 encoding. It is more
3260 flexible than the orphaned \"base64\" package.")
3261 (license license:gpl2+)))
3262
3263 (define-public r-irlba
3264 (package
3265 (name "r-irlba")
3266 (version "2.3.3")
3267 (source
3268 (origin
3269 (method url-fetch)
3270 (uri (cran-uri "irlba" version))
3271 (sha256
3272 (base32
3273 "1h7mzrqdjc41814cf6c93sbyl7nxwvsf3x8apl9rhmydgdlk7qkf"))))
3274 (build-system r-build-system)
3275 (propagated-inputs
3276 `(("r-matrix" ,r-matrix)))
3277 (home-page "https://cran.r-project.org/web/packages/irlba")
3278 (synopsis "Methods for eigendecomposition of large matrices")
3279 (description
3280 "This package provides fast and memory efficient methods for truncated
3281 singular and eigenvalue decompositions, as well as for principal component
3282 analysis of large sparse or dense matrices.")
3283 (license (list license:gpl2+ license:gpl3+))))
3284
3285 (define-public r-glmnet
3286 (package
3287 (name "r-glmnet")
3288 (version "4.1-1")
3289 (source
3290 (origin
3291 (method url-fetch)
3292 (uri (cran-uri "glmnet" version))
3293 (sha256
3294 (base32 "0zpfq0m1y5zks5p9r28553ykywwrhrb3ds8m6b7sm6hj4n1c4csd"))))
3295 (build-system r-build-system)
3296 (native-inputs
3297 `(("gfortran" ,gfortran)
3298 ("r-knitr" ,r-knitr)))
3299 (propagated-inputs
3300 `(("r-foreach" ,r-foreach)
3301 ("r-matrix" ,r-matrix)
3302 ("r-shape" ,r-shape)
3303 ("r-survival" ,r-survival)))
3304 (home-page "https://www.jstatsoft.org/article/view/v033i01")
3305 (synopsis "Lasso and elastic-net regularized generalized linear models")
3306 (description
3307 "The glmnet package provides efficient procedures for fitting the entire
3308 lasso or elastic-net regularization path for linear and Poisson regression, as
3309 well as logistic, multinomial, Cox, multiple-response Gaussian and grouped
3310 multinomial models. The algorithm uses cyclical coordinate descent in a
3311 path-wise fashion.")
3312 (license license:gpl2+)))
3313
3314 (define-public r-pkgmaker
3315 (package
3316 (name "r-pkgmaker")
3317 (version "0.32.2")
3318 (source
3319 (origin
3320 (method url-fetch)
3321 (uri (cran-uri "pkgmaker" version))
3322 (sha256
3323 (base32
3324 "14ggsd24n5g5rvn0wl4w90ipxzmywqikh28llj89q6kpxwnv4iff"))))
3325 (build-system r-build-system)
3326 (propagated-inputs
3327 `(("r-assertthat" ,r-assertthat)
3328 ("r-codetools" ,r-codetools)
3329 ("r-digest" ,r-digest)
3330 ("r-registry" ,r-registry)
3331 ("r-stringr" ,r-stringr)
3332 ("r-withr" ,r-withr)
3333 ("r-xtable" ,r-xtable)))
3334 (home-page "https://renozao.github.io/pkgmaker")
3335 (synopsis "Package development utilities")
3336 (description
3337 "This package provides some low-level utilities to use for R package
3338 development. It currently provides managers for multiple package specific
3339 options and registries, vignette, unit test and bibtex related utilities.")
3340 (license license:gpl2+)))
3341
3342 (define-public r-registry
3343 (package
3344 (name "r-registry")
3345 (version "0.5-1")
3346 (source
3347 (origin
3348 (method url-fetch)
3349 (uri (cran-uri "registry" version))
3350 (sha256
3351 (base32
3352 "1k3j6dx350awamr0dwwgkhfs46vsnj4nf08iw5byq0x7n3nkdsnz"))))
3353 (build-system r-build-system)
3354 (home-page "https://cran.r-project.org/web/packages/registry")
3355 (synopsis "Infrastructure for R package registries")
3356 (description
3357 "This package provides a generic infrastructure for creating and using R
3358 package registries.")
3359 (license license:gpl2+)))
3360
3361 (define-public r-rngtools
3362 (package
3363 (name "r-rngtools")
3364 (version "1.5")
3365 (source
3366 (origin
3367 (method url-fetch)
3368 (uri (cran-uri "rngtools" version))
3369 (sha256
3370 (base32
3371 "0xgmg3qb6insc157as47mcm9sdjdpy9jirh7w06bxb7pfcxqfx42"))))
3372 (build-system r-build-system)
3373 (propagated-inputs
3374 `(("r-digest" ,r-digest)))
3375 (home-page "https://renozao.github.io/rngtools")
3376 (synopsis "Utility functions for working with random number generators")
3377 (description
3378 "This package contains a set of functions for working with Random Number
3379 Generators (RNGs). In particular, it defines a generic S4 framework for
3380 getting/setting the current RNG, or RNG data that are embedded into objects
3381 for reproducibility. Notably, convenient default methods greatly facilitate
3382 the way current RNG settings can be changed.")
3383 (license license:gpl3+)))
3384
3385 (define-public r-rtsne
3386 (package
3387 (name "r-rtsne")
3388 (version "0.15")
3389 (source
3390 (origin
3391 (method url-fetch)
3392 (uri (cran-uri "Rtsne" version))
3393 (sha256
3394 (base32
3395 "0v17vxizrs1msay24xl2bckfajr2c82wpqj07lyssbrq197nwdsn"))))
3396 (properties `((upstream-name . "Rtsne")))
3397 (build-system r-build-system)
3398 (propagated-inputs
3399 `(("r-rcpp" ,r-rcpp)))
3400 (home-page "https://github.com/jkrijthe/Rtsne")
3401 (synopsis "T-distributed stochastic neighbor embedding")
3402 (description
3403 "This package provides an R wrapper around the fast T-distributed
3404 Stochastic Neighbor Embedding using a Barnes-Hut implementation.")
3405 ;; The declared license for this package is BSD-3, but it also includes
3406 ;; code licensed under BSD-4.
3407 (license (list license:bsd-3 license:bsd-4))))
3408
3409 (define-public r-e1071
3410 (package
3411 (name "r-e1071")
3412 (version "1.7-6")
3413 (source
3414 (origin
3415 (method url-fetch)
3416 (uri (cran-uri "e1071" version))
3417 (sha256
3418 (base32
3419 "0blfnv3m5k5xm9bfx1v5awvagqlhqaqpabrvzplf4244c3j259qa"))))
3420 (build-system r-build-system)
3421 (propagated-inputs
3422 `(("r-class" ,r-class)
3423 ("r-proxy" ,r-proxy)))
3424 (home-page "https://cran.r-project.org/web/packages/e1071")
3425 (synopsis "Miscellaneous functions for probability theory")
3426 (description
3427 "This package provides functions for latent class analysis, short time
3428 Fourier transform, fuzzy clustering, support vector machines, shortest path
3429 computation, bagged clustering, naive Bayes classifier, and more.")
3430 (license license:gpl2+)))
3431
3432 (define-public r-bigmemory-sri
3433 (package
3434 (name "r-bigmemory-sri")
3435 (version "0.1.3")
3436 (source
3437 (origin
3438 (method url-fetch)
3439 (uri (cran-uri "bigmemory.sri" version))
3440 (sha256
3441 (base32 "0mg14ilwdkd64q2ri9jdwnk7mp55dqim7xfifrs65sdsv1934h2m"))))
3442 (properties
3443 `((upstream-name . "bigmemory.sri")))
3444 (build-system r-build-system)
3445 (home-page "https://cran.r-project.org/web/packages/bigmemory.sri")
3446 (synopsis "Shared resource interface for the bigmemory package")
3447 (description "This package provides a shared resource interface for the
3448 bigmemory and synchronicity packages.")
3449 ;; Users can choose either LGPLv3 or ASL2.0.
3450 (license (list license:lgpl3 license:asl2.0))))
3451
3452 (define-public r-synchronicity
3453 (package
3454 (name "r-synchronicity")
3455 (version "1.3.5")
3456 (source
3457 (origin
3458 (method url-fetch)
3459 (uri (cran-uri "synchronicity" version))
3460 (sha256
3461 (base32
3462 "1kgsk64aifjm3mfj102y3va7x1abypq2zi0cqbnjhl8fqyzp69hx"))))
3463 (build-system r-build-system)
3464 (propagated-inputs
3465 `(("r-bh" ,r-bh)
3466 ("r-bigmemory-sri" ,r-bigmemory-sri)
3467 ("r-rcpp" ,r-rcpp)
3468 ("r-uuid" ,r-uuid)))
3469 (home-page "http://www.bigmemory.org")
3470 (synopsis "Boost mutex functionality in R")
3471 (description "This package provides support for synchronization
3472 via mutexes and may eventually support interprocess communication and
3473 message passing.")
3474 ;; Users can choose either LGPLv3 or ASL2.0.
3475 (license (list license:lgpl3 license:asl2.0))))
3476
3477 (define-public r-bigmemory
3478 (package
3479 (name "r-bigmemory")
3480 (version "4.5.36")
3481 (source
3482 (origin
3483 (method url-fetch)
3484 (uri (cran-uri "bigmemory" version))
3485 (sha256
3486 (base32
3487 "03pg8mxdc7q0249visjmc8bc3xmwxsfg3i2n6higicj4cfz7zihq"))))
3488 (build-system r-build-system)
3489 (propagated-inputs
3490 `(("r-bh" ,r-bh)
3491 ("r-rcpp" ,r-rcpp)
3492 ("r-bigmemory-sri" ,r-bigmemory-sri)))
3493 (home-page "http://www.bigmemory.org")
3494 (synopsis "Manage large matrices with shared memory or memory-mapped files")
3495 (description "This package provides methods to create, store, access, and
3496 manipulate large matrices. Matrices are allocated to shared memory and may use
3497 memory-mapped files.")
3498 ;; Users can choose either LGPLv3 or ASL2.0.
3499 (license (list license:lgpl3 license:asl2.0))))
3500
3501 (define-public r-r-methodss3
3502 (package
3503 (name "r-r-methodss3")
3504 (version "1.8.1")
3505 (source (origin
3506 (method url-fetch)
3507 (uri (cran-uri "R.methodsS3" version))
3508 (sha256
3509 (base32
3510 "16v1br7lf7vxv40z65giv9jnqkpnyqagcmgqa0s1jy7spj0zp64a"))))
3511 (properties `((upstream-name . "R.methodsS3")))
3512 (build-system r-build-system)
3513 (home-page "https://cran.r-project.org/web/packages/R.methodsS3")
3514 (synopsis "S3 methods simplified")
3515 (description
3516 "This package provides methods that simplify the setup of S3 generic
3517 functions and S3 methods. Major effort has been made in making definition of
3518 methods as simple as possible with a minimum of maintenance for package
3519 developers. For example, generic functions are created automatically, if
3520 missing, and naming conflict are automatically solved, if possible. The
3521 method @code{setMethodS3()} is a good start for those who in the future may
3522 want to migrate to S4.")
3523 (license license:lgpl2.1+)))
3524
3525 (define-public r-r-oo
3526 (package
3527 (name "r-r-oo")
3528 (version "1.24.0")
3529 (source (origin
3530 (method url-fetch)
3531 (uri (cran-uri "R.oo" version))
3532 (sha256
3533 (base32
3534 "1divisff26fmiqg6vmabnwlrx079c066r8qvkakfp336vnwdm89p"))))
3535 (properties `((upstream-name . "R.oo")))
3536 (build-system r-build-system)
3537 (propagated-inputs
3538 `(("r-r-methodss3" ,r-r-methodss3)))
3539 (home-page "https://github.com/HenrikBengtsson/R.oo")
3540 (synopsis "R object-oriented programming with or without references")
3541 (description
3542 "This package provides methods and classes for object-oriented
3543 programming in R with or without references. Large effort has been made on
3544 making definition of methods as simple as possible with a minimum of
3545 maintenance for package developers.")
3546 (license license:lgpl2.1+)))
3547
3548 (define-public r-r-utils
3549 (package
3550 (name "r-r-utils")
3551 (version "2.10.1")
3552 (source (origin
3553 (method url-fetch)
3554 (uri (cran-uri "R.utils" version))
3555 (sha256
3556 (base32
3557 "1gssnk73nhisc20by9kvfl4byfsmwrk6597na0x40ycck58lyylm"))))
3558 (properties `((upstream-name . "R.utils")))
3559 (build-system r-build-system)
3560 (propagated-inputs
3561 `(("r-r-methodss3" ,r-r-methodss3)
3562 ("r-r-oo" ,r-r-oo)))
3563 (home-page "https://github.com/HenrikBengtsson/R.utils")
3564 (synopsis "Various programming utilities")
3565 (description
3566 "This package provides utility functions useful when programming and
3567 developing R packages.")
3568 (license license:lgpl2.1+)))
3569
3570 (define-public r-r-cache
3571 (package
3572 (name "r-r-cache")
3573 (version "0.14.0")
3574 (source (origin
3575 (method url-fetch)
3576 (uri (cran-uri "R.cache" version))
3577 (sha256
3578 (base32
3579 "1n8n5ihkryrbxv630dwhz4r048nyv676qd3i9f5z5fa04hvlxbqq"))))
3580 (properties `((upstream-name . "R.cache")))
3581 (build-system r-build-system)
3582 (propagated-inputs
3583 `(("r-digest" ,r-digest)
3584 ("r-r-methodss3" ,r-r-methodss3)
3585 ("r-r-oo" ,r-r-oo)
3586 ("r-r-utils" ,r-r-utils)))
3587 (home-page "https://github.com/HenrikBengtsson/R.cache")
3588 (synopsis "Light-weight caching of objects and results")
3589 (description
3590 "This package provides methods for caching or memoization of objects and
3591 results. With this package, any R object can be cached in a key-value storage
3592 where the key can be an arbitrary set of R objects. The cache memory is
3593 persistent (on the file system).")
3594 (license license:lgpl2.1+)))
3595
3596 (define-public r-r-rsp
3597 (package
3598 (name "r-r-rsp")
3599 (version "0.44.0")
3600 (source (origin
3601 (method url-fetch)
3602 (uri (cran-uri "R.rsp" version))
3603 (sha256
3604 (base32
3605 "0n9sxrffahgxcc8h9vgxg5i446g14cibixpf82nkpm5bvidhfsc9"))))
3606 (properties `((upstream-name . "R.rsp")))
3607 (build-system r-build-system)
3608 (propagated-inputs
3609 `(("r-digest" ,r-digest)
3610 ("r-r-cache" ,r-r-cache)
3611 ("r-r-methodss3" ,r-r-methodss3)
3612 ("r-r-oo" ,r-r-oo)
3613 ("r-r-utils" ,r-r-utils)))
3614 (home-page "https://github.com/HenrikBengtsson/R.rsp")
3615 (synopsis "Dynamic generation of scientific reports")
3616 (description
3617 "The RSP markup language provides a powerful markup for controlling the
3618 content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr
3619 documents (and more), e.g. @code{Today's date is <%=Sys.Date()%>}. Contrary
3620 to many other literate programming languages, with RSP it is straightforward
3621 to loop over mixtures of code and text sections, e.g. in month-by-month
3622 summaries. RSP has also several preprocessing directives for incorporating
3623 static and dynamic contents of external files (local or online) among other
3624 things. RSP is ideal for self-contained scientific reports and R package
3625 vignettes.")
3626 (license license:lgpl2.1+)))
3627
3628 (define-public r-mvtnorm
3629 (package
3630 (name "r-mvtnorm")
3631 (version "1.1-1")
3632 (source (origin
3633 (method url-fetch)
3634 (uri (cran-uri "mvtnorm" version))
3635 (sha256
3636 (base32
3637 "1pj51mi0g6ip7a2nhzc93yv9289kaayvspjvsbgbgarvx7axlrg9"))))
3638 (build-system r-build-system)
3639 (native-inputs
3640 `(("gfortran" ,gfortran)))
3641 (home-page "http://mvtnorm.R-forge.R-project.org")
3642 (synopsis "Package for multivariate normal and t-distributions")
3643 (description "This package can compute multivariate normal and
3644 t-probabilities, quantiles, random deviates and densities.")
3645 (license license:gpl2)))
3646
3647 (define-public r-matrixstats
3648 (package
3649 (name "r-matrixstats")
3650 (version "0.58.0")
3651 (source (origin
3652 (method url-fetch)
3653 (uri (cran-uri "matrixStats" version))
3654 (sha256
3655 (base32
3656 "0jab3xk56vqqzgz8jbsvxvsvr83sj0gb3cic0906wjyjijwv8rw3"))))
3657 (properties `((upstream-name . "matrixStats")))
3658 (build-system r-build-system)
3659 (native-inputs
3660 `(("r-r-rsp" ,r-r-rsp))) ;used to build vignettes
3661 (home-page "https://github.com/HenrikBengtsson/matrixStats")
3662 (synopsis "Methods applying to vectors and matrix rows and columns")
3663 (description
3664 "This package provides methods operating on rows and columns of matrices,
3665 e.g. @code{rowMedians()}, @code{rowRanks()}, and @code{rowSds()}. There are
3666 also some vector-based methods, e.g. @code{binMeans()}, @code{madDiff()} and
3667 @code{weightedMedians()}. All methods have been optimized for speed and
3668 memory usage.")
3669 (license license:artistic2.0)))
3670
3671 (define-public r-viridis
3672 (package
3673 (name "r-viridis")
3674 (version "0.5.1")
3675 (source (origin
3676 (method url-fetch)
3677 (uri (cran-uri "viridis" version))
3678 (sha256
3679 (base32
3680 "060rf1jn29dq53y3nhb0hykvcap6rqsk04rq544ypiiqb18ngwnx"))))
3681 (build-system r-build-system)
3682 (propagated-inputs
3683 `(("r-ggplot2" ,r-ggplot2)
3684 ("r-gridextra" ,r-gridextra)
3685 ("r-viridislite" ,r-viridislite)))
3686 (native-inputs
3687 `(("r-knitr" ,r-knitr))) ; for vignettes
3688 (home-page "https://github.com/sjmgarnier/viridis")
3689 (synopsis "Matplotlib default color map")
3690 (description
3691 "This package is a port of the new @url{matplotlib,
3692 http://matplotlib.org/} color maps (@code{viridis}--the default--,
3693 @code{magma}, @code{plasma}, and @code{inferno}) to R. These color maps are
3694 designed in such a way that they will analytically be perfectly
3695 perceptually-uniform, both in regular form and also when converted to
3696 black-and-white. They are also designed to be perceived by readers with the
3697 most common form of color blindness.")
3698 (license license:x11)))
3699
3700 (define-public r-viridislite
3701 (package
3702 (name "r-viridislite")
3703 (version "0.3.0")
3704 (source
3705 (origin
3706 (method url-fetch)
3707 (uri (cran-uri "viridisLite" version))
3708 (sha256
3709 (base32
3710 "1by2l05f0yabwvv64lhnv7bbhx0w683s3wr9j2xda920ghpa23kq"))))
3711 (properties `((upstream-name . "viridisLite")))
3712 (build-system r-build-system)
3713 (home-page "https://github.com/sjmgarnier/viridisLite")
3714 (synopsis "Default color maps from matplotlib")
3715 (description
3716 "This package is a port of the new @code{matplotlib} color maps
3717 (@code{viridis}, @code{magma}, @code{plasma} and @code{inferno}) to R.
3718 matplotlib is a popular plotting library for Python. These color maps are
3719 designed in such a way that they will analytically be perfectly
3720 perceptually-uniform, both in regular form and also when converted to
3721 black-and-white. They are also designed to be perceived by readers with the
3722 most common form of color blindness. This is the @code{lite} version of the
3723 more complete @code{viridis} package.")
3724 (license license:expat)))
3725
3726 (define-public r-tidyselect
3727 (package
3728 (name "r-tidyselect")
3729 (version "1.1.0")
3730 (source
3731 (origin
3732 (method url-fetch)
3733 (uri (cran-uri "tidyselect" version))
3734 (sha256
3735 (base32
3736 "14rqx4dq574hilmdwrr34wyjg8rlw4rvndpsqd9plgxm3wwfsdg6"))))
3737 (build-system r-build-system)
3738 (propagated-inputs
3739 `(("r-ellipsis" ,r-ellipsis)
3740 ("r-glue" ,r-glue)
3741 ("r-purrr" ,r-purrr)
3742 ("r-rlang" ,r-rlang)
3743 ("r-vctrs" ,r-vctrs)))
3744 (native-inputs
3745 `(("r-knitr" ,r-knitr)))
3746 (home-page "https://cran.r-project.org/web/packages/tidyselect")
3747 (synopsis "Select from a set of strings")
3748 (description
3749 "This package provides a backend for the selecting functions of the
3750 tidyverse. It makes it easy to implement select-like functions in your own
3751 packages in a way that is consistent with other tidyverse interfaces for
3752 selection.")
3753 (license license:gpl3)))
3754
3755 (define-public r-tidyr
3756 (package
3757 (name "r-tidyr")
3758 (version "1.1.3")
3759 (source
3760 (origin
3761 (method url-fetch)
3762 (uri (cran-uri "tidyr" version))
3763 (sha256
3764 (base32
3765 "0cpbrvr759z8p7r9lpkjhj2dcdymsbnaib0rma9b4jb7i3qzmh2a"))))
3766 (build-system r-build-system)
3767 (propagated-inputs
3768 `(("r-cpp11" ,r-cpp11)
3769 ("r-dplyr" ,r-dplyr)
3770 ("r-ellipsis" ,r-ellipsis)
3771 ("r-magrittr" ,r-magrittr)
3772 ("r-glue" ,r-glue)
3773 ("r-lifecycle" ,r-lifecycle)
3774 ("r-purrr" ,r-purrr)
3775 ("r-rlang" ,r-rlang)
3776 ("r-tidyselect" ,r-tidyselect)
3777 ("r-tibble" ,r-tibble)
3778 ("r-vctrs" ,r-vctrs)))
3779 (native-inputs
3780 `(("r-knitr" ,r-knitr)))
3781 (home-page "https://github.com/hadley/tidyr")
3782 (synopsis "Tidy data with `spread()` and `gather()` functions")
3783 (description
3784 "tidyr is a reframing of the reshape2 package designed to accompany the
3785 tidy data framework, and to work hand-in-hand with magrittr and dplyr to build
3786 a solid pipeline for data analysis. It is designed specifically for tidying
3787 data, not the general reshaping that reshape2 does, or the general aggregation
3788 that reshape did. In particular, built-in methods only work for data frames,
3789 and tidyr provides no margins or aggregation.")
3790 (license license:expat)))
3791
3792 (define-public r-hexbin
3793 (package
3794 (name "r-hexbin")
3795 (version "1.28.2")
3796 (source
3797 (origin
3798 (method url-fetch)
3799 (uri (cran-uri "hexbin" version))
3800 (sha256
3801 (base32
3802 "0bbhs5pwxh474w62sq6gqvih7habancxng9wd4f2rgn6lv9zhhb2"))))
3803 (build-system r-build-system)
3804 (propagated-inputs
3805 `(("r-lattice" ,r-lattice)))
3806 (native-inputs
3807 `(("gfortran" ,gfortran)
3808 ("r-knitr" ,r-knitr))) ; for vignettes
3809 (home-page "https://github.com/edzer/hexbin")
3810 (synopsis "Hexagonal binning routines")
3811 (description
3812 "This package provides binning and plotting functions for hexagonal bins.
3813 It uses and relies on grid graphics and formal (S4) classes and methods.")
3814 (license license:gpl2+)))
3815
3816 (define-public r-purrr
3817 (package
3818 (name "r-purrr")
3819 (version "0.3.4")
3820 (source
3821 (origin
3822 (method url-fetch)
3823 (uri (cran-uri "purrr" version))
3824 (sha256
3825 (base32
3826 "1cj091rsjdj2xz16qhynyw72gh5cyhznifcfbrbygndfr4xwksr3"))))
3827 (build-system r-build-system)
3828 (propagated-inputs
3829 `(("r-magrittr" ,r-magrittr)
3830 ("r-rlang" ,r-rlang)))
3831 (native-inputs
3832 `(("r-knitr" ,r-knitr)))
3833 (home-page "https://github.com/hadley/purrr")
3834 (synopsis "Functional programming tools")
3835 (description
3836 "This package completes R's functional programming tools with missing
3837 features present in other programming languages.")
3838 (license license:gpl3+)))
3839
3840 (define-public r-plotly
3841 (package
3842 (name "r-plotly")
3843 (version "4.9.3")
3844 (source (origin
3845 (method url-fetch)
3846 (uri (cran-uri "plotly" version))
3847 (sha256
3848 (base32
3849 "0801i2q7sw62x734d58h9p2fwpi1hirqj73gsg18pqkdv4b1lkfl"))))
3850 (build-system r-build-system)
3851 (propagated-inputs
3852 `(("r-base64enc" ,r-base64enc)
3853 ("r-crosstalk" ,r-crosstalk)
3854 ("r-digest" ,r-digest)
3855 ("r-data-table" ,r-data-table)
3856 ("r-dplyr" ,r-dplyr)
3857 ("r-ggplot2" ,r-ggplot2)
3858 ("r-htmltools" ,r-htmltools)
3859 ("r-htmlwidgets" ,r-htmlwidgets)
3860 ("r-httr" ,r-httr)
3861 ("r-jsonlite" ,r-jsonlite)
3862 ("r-lazyeval" ,r-lazyeval)
3863 ("r-magrittr" ,r-magrittr)
3864 ("r-promises" ,r-promises)
3865 ("r-purrr" ,r-purrr)
3866 ("r-rcolorbrewer" ,r-rcolorbrewer)
3867 ("r-rlang" ,r-rlang)
3868 ("r-scales" ,r-scales)
3869 ("r-tibble" ,r-tibble)
3870 ("r-tidyr" ,r-tidyr)
3871 ("r-vctrs" ,r-vctrs)
3872 ("r-viridislite" ,r-viridislite)))
3873 (home-page "https://plot.ly/r")
3874 (synopsis "Create interactive web graphics")
3875 (description
3876 "This package enables the translation of ggplot2 graphs to an interactive
3877 web-based version and/or the creation of custom web-based visualizations
3878 directly from R. Once uploaded to a plotly account, plotly graphs (and the
3879 data behind them) can be viewed and modified in a web browser.")
3880 (license license:x11)))
3881
3882 (define-public r-biased-urn
3883 (package
3884 (name "r-biased-urn")
3885 (version "1.07")
3886 (source
3887 (origin
3888 (method url-fetch)
3889 (uri (cran-uri "BiasedUrn" version))
3890 (sha256
3891 (base32
3892 "13i2lgfnjhlbbm2yxfc2l5hswqw6x03pwba5csjmirv8kpjw4xr3"))))
3893 (properties `((upstream-name . "BiasedUrn")))
3894 (build-system r-build-system)
3895 (home-page "https://www.agner.org/random/")
3896 (synopsis "Biased urn model distributions")
3897 (description
3898 "This package provides statistical models of biased sampling in the form
3899 of univariate and multivariate noncentral hypergeometric distributions,
3900 including Wallenius' noncentral hypergeometric distribution and Fisher's
3901 noncentral hypergeometric distribution (also called extended hypergeometric
3902 distribution).")
3903 (license license:gpl3+)))
3904
3905 (define-public r-rematch
3906 (package
3907 (name "r-rematch")
3908 (version "1.0.1")
3909 (source
3910 (origin
3911 (method url-fetch)
3912 (uri (cran-uri "rematch" version))
3913 (sha256
3914 (base32
3915 "0y3mshvpvz9csmq8hk8jbabx4nxlv5sckvfzvm6920ndg34xw2d4"))))
3916 (build-system r-build-system)
3917 (home-page "https://github.com/MangoTheCat/rematch")
3918 (synopsis "Match regular expressions with a nicer API")
3919 (description
3920 "This package provides a small wrapper on @code{regexpr} to extract the
3921 matches and captured groups from the match of a regular expression to a
3922 character vector.")
3923 (license license:expat)))
3924
3925 (define-public r-cellranger
3926 (package
3927 (name "r-cellranger")
3928 (version "1.1.0")
3929 (source
3930 (origin
3931 (method url-fetch)
3932 (uri (cran-uri "cellranger" version))
3933 (sha256
3934 (base32
3935 "16fgi3annn34c3cxi0pxf62mmmmxi21hp0zzlv7bkfsjqy4g4f2x"))))
3936 (build-system r-build-system)
3937 (propagated-inputs
3938 `(("r-rematch" ,r-rematch)
3939 ("r-tibble" ,r-tibble)))
3940 (home-page "https://github.com/rsheets/cellranger")
3941 (synopsis "Translate spreadsheet cell ranges to rows and columns")
3942 (description
3943 "This package provides helper functions to work with spreadsheets and the
3944 @code{A1:D10} style of cell range specification.")
3945 (license license:expat)))
3946
3947 (define-public r-googlesheets
3948 (package
3949 (name "r-googlesheets")
3950 (version "0.3.0")
3951 (source
3952 (origin
3953 (method url-fetch)
3954 (uri (cran-uri "googlesheets" version))
3955 (sha256
3956 (base32
3957 "11q07nxys72wkxx9mawmjyf20gvwvrb7h3gpa73h6lgh2vgrwnv8"))))
3958 (build-system r-build-system)
3959 (propagated-inputs
3960 `(("r-cellranger" ,r-cellranger)
3961 ("r-dplyr" ,r-dplyr)
3962 ("r-httr" ,r-httr)
3963 ("r-jsonlite" ,r-jsonlite)
3964 ("r-purrr" ,r-purrr)
3965 ("r-readr" ,r-readr)
3966 ("r-stringr" ,r-stringr)
3967 ("r-tibble" ,r-tibble)
3968 ("r-tidyr" ,r-tidyr)
3969 ("r-xml2" ,r-xml2)))
3970 (home-page "https://github.com/jennybc/googlesheets")
3971 (synopsis "Manage Google spreadsheets from R")
3972 (description "This package provides tools to interact with Google Sheets
3973 from within R.")
3974 (license license:expat)))
3975
3976 (define-public r-spams
3977 (package
3978 (name "r-spams")
3979 (version "2.6-2017-03-22")
3980 (source
3981 (origin
3982 (method url-fetch)
3983 ;; Use the ‘Latest version’ link for a stable URI across releases.
3984 (uri (string-append "https://gforge.inria.fr/frs/download.php/"
3985 "latestfile/4531/spams-R-v" version ".tar.gz"))
3986 (sha256
3987 (base32
3988 "13z2293jixf1r9g8dyy856xrhvpjr2ln2n9smn6644126r9hmhkx"))))
3989 (build-system r-build-system)
3990 (arguments
3991 `(#:phases
3992 (modify-phases %standard-phases
3993 (add-after 'unpack 'chdir
3994 (lambda _ (chdir "spams") #t))
3995 ;; Don't tune for the building machine.
3996 (add-after 'chdir 'no-mtune
3997 (lambda _
3998 (substitute* "src/Makevars"
3999 (("-mtune=native") ""))
4000 #t)))))
4001 (propagated-inputs
4002 `(("r-lattice" ,r-lattice)
4003 ("r-matrix" ,r-matrix)))
4004 (home-page "https://spams-devel.gforge.inria.fr")
4005 (synopsis "Toolbox for solving sparse estimation problems")
4006 (description "SPAMS (SPArse Modeling Software) is an optimization toolbox
4007 for solving various sparse estimation problems. It includes tools for the
4008 following problems:
4009
4010 @enumerate
4011 @item Dictionary learning and matrix factorization (NMF, sparse @dfn{principle
4012 component analysis} (PCA), ...)
4013 @item Solving sparse decomposition problems with LARS, coordinate descent,
4014 OMP, SOMP, proximal methods
4015 @item Solving structured sparse decomposition problems (l1/l2, l1/linf, sparse
4016 group lasso, tree-structured regularization, structured sparsity with
4017 overlapping groups,...).
4018 @end enumerate\n")
4019 (license license:gpl3+)))
4020
4021 (define-public r-base64
4022 (package
4023 (name "r-base64")
4024 (version "2.0")
4025 (source
4026 (origin
4027 (method url-fetch)
4028 (uri (cran-uri "base64" version))
4029 (sha256
4030 (base32
4031 "1labh0ycdm2xcjssj8bhnyjvbk44mcdsi0rb2p8rfqa428mrq9cf"))))
4032 (build-system r-build-system)
4033 (propagated-inputs
4034 `(("r-openssl" ,r-openssl)))
4035 (home-page "https://cran.r-project.org/web/packages/base64")
4036 (synopsis "Base64 encoder and decoder")
4037 (description
4038 "This package is a compatibility wrapper to replace the orphaned package
4039 by Romain Francois. New applications should use the openssl or base64enc
4040 package instead.")
4041 (license license:expat)))
4042
4043 (define-public r-hmisc
4044 (package
4045 (name "r-hmisc")
4046 (version "4.5-0")
4047 (source
4048 (origin
4049 (method url-fetch)
4050 (uri (cran-uri "Hmisc" version))
4051 (sha256
4052 (base32 "11qj73zj16p113jpwn2vv06l99kqlcxcmrldbpyi5s7pwing9jnx"))))
4053 (properties `((upstream-name . "Hmisc")))
4054 (build-system r-build-system)
4055 (native-inputs
4056 `(("gfortran" ,gfortran)))
4057 (propagated-inputs
4058 `(("r-base64enc" ,r-base64enc)
4059 ("r-cluster" ,r-cluster)
4060 ("r-data-table" ,r-data-table)
4061 ("r-foreign" ,r-foreign)
4062 ("r-formula" ,r-formula)
4063 ("r-ggplot2" ,r-ggplot2)
4064 ("r-gridextra" ,r-gridextra)
4065 ("r-gtable" ,r-gtable)
4066 ("r-lattice" ,r-lattice)
4067 ("r-latticeextra" ,r-latticeextra)
4068 ("r-htmltable" ,r-htmltable)
4069 ("r-htmltools" ,r-htmltools)
4070 ("r-nnet" ,r-nnet)
4071 ("r-rpart" ,r-rpart)
4072 ("r-survival" ,r-survival)
4073 ("r-viridis" ,r-viridis)))
4074 (home-page "http://biostat.mc.vanderbilt.edu/Hmisc")
4075 (synopsis "Miscellaneous data analysis and graphics functions")
4076 (description
4077 "This package contains many functions useful for data analysis,
4078 high-level graphics, utility operations, functions for computing sample size
4079 and power, importing and annotating datasets, imputing missing values,
4080 advanced table making, variable clustering, character string manipulation,
4081 conversion of R objects to LaTeX code, and recoding variables.")
4082 (license license:gpl2+)))
4083
4084 (define-public r-runit
4085 (package
4086 (name "r-runit")
4087 (version "0.4.32")
4088 (source
4089 (origin
4090 (method url-fetch)
4091 (uri (cran-uri "RUnit" version))
4092 (sha256
4093 (base32
4094 "1wc1gwb7yw7phf8b0gkig6c23klya3ax11c6i4s0f049k42r78r3"))))
4095 (properties `((upstream-name . "RUnit")))
4096 (build-system r-build-system)
4097 (home-page "https://cran.r-project.org/web/packages/RUnit")
4098 (synopsis "R unit test framework")
4099 (description
4100 "This package provides R functions implementing a standard unit testing
4101 framework, with additional code inspection and report generation tools.")
4102 (license license:gpl2+)))
4103
4104 (define-public r-dynamictreecut
4105 (package
4106 (name "r-dynamictreecut")
4107 (version "1.63-1")
4108 (source
4109 (origin
4110 (method url-fetch)
4111 (uri (cran-uri "dynamicTreeCut" version))
4112 (sha256
4113 (base32
4114 "1fadbql7g5r2vvlkr89nlrjxwp4yx4xrdqmv077qvmnx9vv0f4w3"))))
4115 (properties `((upstream-name . "dynamicTreeCut")))
4116 (build-system r-build-system)
4117 (home-page
4118 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/BranchCutting/")
4119 (synopsis "Detect clusters in hierarchical clustering dendrograms")
4120 (description
4121 "This package contains methods for the detection of clusters in
4122 hierarchical clustering dendrograms.")
4123 (license license:gpl2+)))
4124
4125 (define-public r-fastcluster
4126 (package
4127 (name "r-fastcluster")
4128 (version "1.1.25")
4129 (source
4130 (origin
4131 (method url-fetch)
4132 (uri (cran-uri "fastcluster" version))
4133 (sha256
4134 (base32
4135 "01a2xnhhvv1swd4g8p4lzyn7ww7kg49jlnzc7kfz60jqjzpisrpk"))))
4136 (build-system r-build-system)
4137 (home-page "http://danifold.net/fastcluster.html")
4138 (synopsis "Fast hierarchical clustering routines")
4139 (description
4140 "This package implements fast hierarchical, agglomerative clustering
4141 routines. Part of the functionality is designed as drop-in replacement for
4142 existing routines: @code{linkage()} in the SciPy package
4143 @code{scipy.cluster.hierarchy}, @code{hclust()} in R's @code{stats} package,
4144 and the @code{flashClust} package. It provides the same functionality with
4145 the benefit of a much faster implementation. Moreover, there are
4146 memory-saving routines for clustering of vector data, which go beyond what the
4147 existing packages provide.")
4148 (license license:bsd-2)))
4149
4150 (define-public r-sfsmisc
4151 (package
4152 (name "r-sfsmisc")
4153 (version "1.1-10")
4154 (source
4155 (origin
4156 (method url-fetch)
4157 (uri (cran-uri "sfsmisc" version))
4158 (sha256
4159 (base32
4160 "1skxahq5jgqdsllpsavzrcpz8l0yj3mfzcf70as8d33jxbiaa4s4"))))
4161 (build-system r-build-system)
4162 (home-page "https://cran.r-project.org/web/packages/sfsmisc")
4163 (synopsis "Utilities from \"Seminar fuer Statistik\" ETH Zurich")
4164 (description
4165 "This package provides useful utilities from Seminar fuer Statistik ETH
4166 Zurich, including many that are related to graphics.")
4167 (license license:gpl2+)))
4168
4169 (define-public r-gtools
4170 (package
4171 (name "r-gtools")
4172 (version "3.8.2")
4173 (source
4174 (origin
4175 (method url-fetch)
4176 (uri (cran-uri "gtools" version))
4177 (sha256
4178 (base32
4179 "1pnwy412wvhhvnnx8qg6s9hrgcnsfhnfcpf2560ipipk845acfsh"))))
4180 (build-system r-build-system)
4181 (arguments
4182 `(#:phases
4183 (modify-phases %standard-phases
4184 (add-after 'unpack 'make-deterministic
4185 (lambda _
4186 (substitute* "R/checkReverseDependencies.R"
4187 (("tempdir\\(\\)") "\"/tmp\""))
4188 #t)))))
4189 (home-page "https://cran.r-project.org/web/packages/gtools")
4190 (synopsis "Various R programming tools")
4191 (description
4192 "This package contains a collection of various functions to assist in R
4193 programming, such as tools to assist in developing, updating, and maintaining
4194 R and R packages, calculating the logit and inverse logit transformations,
4195 tests for whether a value is missing, empty or contains only @code{NA} and
4196 @code{NULL} values, and many more.")
4197 (license license:gpl2)))
4198
4199 (define-public r-gdata
4200 (package
4201 (name "r-gdata")
4202 (version "2.18.0")
4203 (source
4204 (origin
4205 (method url-fetch)
4206 (uri (cran-uri "gdata" version))
4207 (sha256
4208 (base32
4209 "0zwdj7lscgxr8r62ii8hbdh4mb7sa9w4f5nv32zzrxdvymcpya2b"))))
4210 (build-system r-build-system)
4211 (inputs
4212 `(("perl" ,perl)))
4213 (propagated-inputs
4214 `(("r-gtools" ,r-gtools)))
4215 (home-page "https://cran.r-project.org/web/packages/gdata")
4216 (synopsis "Various R programming tools for data manipulation")
4217 (description
4218 "This package provides various R programming tools for data manipulation,
4219 including:
4220
4221 @itemize
4222 @item medical unit conversions
4223 @item combining objects
4224 @item character vector operations
4225 @item factor manipulation
4226 @item obtaining information about R objects
4227 @item manipulating MS-Excel formatted files
4228 @item generating fixed-width format files
4229 @item extricating components of date and time objects
4230 @item operations on columns of data frames
4231 @item matrix operations
4232 @item operations on vectors and data frames
4233 @item value of last evaluated expression
4234 @item wrapper for @code{sample} that ensures consistent behavior for
4235 both scalar and vector arguments
4236 @end itemize\n")
4237 (license license:gpl2+)))
4238
4239 (define-public r-gplots
4240 (package
4241 (name "r-gplots")
4242 (version "3.1.1")
4243 (source
4244 (origin
4245 (method url-fetch)
4246 (uri (cran-uri "gplots" version))
4247 (sha256
4248 (base32
4249 "0f8khaymz383w2ksnk80d4kpnvgmdk37pbycpsnl2vabaz11kbpr"))))
4250 (build-system r-build-system)
4251 (propagated-inputs
4252 `(("r-catools" ,r-catools)
4253 ("r-gtools" ,r-gtools)
4254 ("r-kernsmooth" ,r-kernsmooth)))
4255 (native-inputs
4256 `(("r-knitr" ,r-knitr)))
4257 (home-page "https://cran.r-project.org/web/packages/gplots")
4258 (synopsis "Various R programming tools for plotting data")
4259 (description
4260 "This package provides various R programming tools for plotting data,
4261 including:
4262
4263 @itemize
4264 @item calculating and plotting locally smoothed summary function
4265 @item enhanced versions of standard plots
4266 @item manipulating colors
4267 @item calculating and plotting two-dimensional data summaries
4268 @item enhanced regression diagnostic plots
4269 @item formula-enabled interface to @code{stats::lowess} function
4270 @item displaying textual data in plots
4271 @item balloon plots
4272 @item plotting \"Venn\" diagrams
4273 @item displaying Open-Office style plots
4274 @item plotting multiple data on same region, with separate axes
4275 @item plotting means and confidence intervals
4276 @item spacing points in an x-y plot so they don't overlap
4277 @end itemize\n")
4278 (license license:gpl2+)))
4279
4280 (define-public r-rocr
4281 (package
4282 (name "r-rocr")
4283 (version "1.0-11")
4284 (source
4285 (origin
4286 (method url-fetch)
4287 (uri (cran-uri "ROCR" version))
4288 (sha256
4289 (base32
4290 "0amvvrkiflmr3qygrsgrsja4gaf2v6r6h6i2bgpsm8r069vmlf2p"))))
4291 (properties `((upstream-name . "ROCR")))
4292 (build-system r-build-system)
4293 (propagated-inputs
4294 `(("r-gplots" ,r-gplots)))
4295 (native-inputs
4296 `(("r-knitr" ,r-knitr)))
4297 (home-page "https://rocr.bioinf.mpi-sb.mpg.de/")
4298 (synopsis "Visualizing the performance of scoring classifiers")
4299 (description
4300 "ROCR is a flexible tool for creating cutoff-parameterized 2D performance
4301 curves by freely combining two from over 25 performance measures (new
4302 performance measures can be added using a standard interface). Curves from
4303 different cross-validation or bootstrapping runs can be averaged by different
4304 methods, and standard deviations, standard errors or box plots can be used to
4305 visualize the variability across the runs. The parameterization can be
4306 visualized by printing cutoff values at the corresponding curve positions, or
4307 by coloring the curve according to cutoff. All components of a performance
4308 plot can be quickly adjusted using a flexible parameter dispatching
4309 mechanism.")
4310 (license license:gpl2+)))
4311
4312 (define-public r-ztable
4313 (package
4314 (name "r-ztable")
4315 (version "0.2.2")
4316 (source (origin
4317 (method url-fetch)
4318 (uri (cran-uri "ztable" version))
4319 (sha256
4320 (base32
4321 "0wxcdb7yp2r6w5iznz1k49npp5sn4jiybfcj30s3198hkcnv0r8y"))))
4322 (build-system r-build-system)
4323 (propagated-inputs
4324 `(("r-flextable" ,r-flextable)
4325 ("r-magrittr" ,r-magrittr)
4326 ("r-officer" ,r-officer)
4327 ("r-rcolorbrewer" ,r-rcolorbrewer)
4328 ("r-rstudioapi" ,r-rstudioapi)
4329 ("r-scales" ,r-scales)
4330 ("r-stringr" ,r-stringr)))
4331 (native-inputs
4332 `(("r-knitr" ,r-knitr)))
4333 (home-page "https://cran.r-project.org/web/packages/ztable")
4334 (synopsis "Zebra-striped tables in LaTeX and HTML formats for R")
4335 (description
4336 "This package provides functions to make zebra-striped tables (tables
4337 with alternating row colors) in LaTeX and HTML formats easily from
4338 @code{data.frame}, @code{matrix}, @code{lm}, @code{aov}, @code{anova},
4339 @code{glm}, @code{coxph}, @code{nls}, @code{fitdistr}, @code{mytable} and
4340 @code{cbind.mytable} objects.")
4341 (license license:gpl2+)))
4342
4343 (define-public r-vipor
4344 (package
4345 (name "r-vipor")
4346 (version "0.4.5")
4347 (source (origin
4348 (method url-fetch)
4349 (uri (cran-uri "vipor" version))
4350 (sha256
4351 (base32
4352 "112gc0d7f8iavgf56pnzfxb7hy75yhd0zlyjzshdcfbnqcd2a6bx"))))
4353 (build-system r-build-system)
4354 (home-page "https://cran.r-project.org/web/packages/vipor")
4355 (synopsis "Plot categorical data using noise and density estimates")
4356 (description
4357 "This package provides tools to generate a violin point plot, a
4358 combination of a violin/histogram plot and a scatter plot by offsetting points
4359 within a category based on their density using quasirandom noise.")
4360 (license license:gpl2+)))
4361
4362 (define-public r-beeswarm
4363 (package
4364 (name "r-beeswarm")
4365 (version "0.3.1")
4366 (source (origin
4367 (method url-fetch)
4368 (uri (cran-uri "beeswarm" version))
4369 (sha256
4370 (base32
4371 "1jsggypyww77hkcic03kdb3fp8h938qs142xi0lapzh62bkn2pjj"))))
4372 (build-system r-build-system)
4373 (home-page "https://www.cbs.dtu.dk/~eklund/beeswarm/")
4374 (synopsis "Implementation of bee swarm plots")
4375 (description
4376 "This package provides an implementation of bee swarm plots. The bee
4377 swarm plot is a one-dimensional scatter plot like stripchart, but with
4378 closely-packed, non-overlapping points.")
4379 (license license:artistic2.0)))
4380
4381 (define-public r-sourcetools
4382 (package
4383 (name "r-sourcetools")
4384 (version "0.1.7")
4385 (source
4386 (origin
4387 (method url-fetch)
4388 (uri (cran-uri "sourcetools" version))
4389 (sha256
4390 (base32
4391 "1jnjir0q2dj724f1mjm6p5h77yzyx6xcqy9r2g7gmcxkxw349627"))))
4392 (build-system r-build-system)
4393 (home-page "https://cran.r-project.org/web/packages/sourcetools")
4394 (synopsis "Tools for reading, tokenizing and parsing R code")
4395 (description
4396 "The sourcetools package provides both an R and C++ interface for the
4397 tokenization of R code, and helpers for interacting with the tokenized
4398 representation of R code.")
4399 (license license:expat)))
4400
4401 (define-public r-ggbeeswarm
4402 (package
4403 (name "r-ggbeeswarm")
4404 (version "0.6.0")
4405 (source (origin
4406 (method url-fetch)
4407 (uri (cran-uri "ggbeeswarm" version))
4408 (sha256
4409 (base32
4410 "0crk29p5vi1r3a988kms4y7r0iqwgwzsikgvh18r9wbzyr98bb5v"))))
4411 (build-system r-build-system)
4412 (propagated-inputs
4413 `(("r-beeswarm" ,r-beeswarm)
4414 ("r-ggplot2" ,r-ggplot2)
4415 ("r-vipor" ,r-vipor)))
4416 (home-page "https://github.com/eclarke/ggbeeswarm")
4417 (synopsis "Categorical scatter (violin point) plots")
4418 (description
4419 "This package provides two methods of plotting categorical scatter plots
4420 such that the arrangement of points within a category reflects the density of
4421 data at that region, and avoids over-plotting.")
4422 (license license:gpl2+)))
4423
4424 (define-public r-ggthemes
4425 (package
4426 (name "r-ggthemes")
4427 (version "4.2.4")
4428 (source (origin
4429 (method url-fetch)
4430 (uri (cran-uri "ggthemes" version))
4431 (sha256
4432 (base32
4433 "0rw5f6axyz1pqn6qx9jwm38hjzn8bqs1nfjkvm96z3xnyn61cdbv"))))
4434 (build-system r-build-system)
4435 (propagated-inputs
4436 `(("r-ggplot2" ,r-ggplot2)
4437 ("r-purrr" ,r-purrr)
4438 ("r-scales" ,r-scales)
4439 ("r-stringr" ,r-stringr)
4440 ("r-tibble" ,r-tibble)))
4441 (home-page "https://cran.rstudio.com/web/packages/ggthemes")
4442 (synopsis "Extra themes, scales and geoms for @code{ggplot2}")
4443 (description "This package provides extra themes and scales for
4444 @code{ggplot2} that replicate the look of plots by Edward Tufte and
4445 Stephen Few in Fivethirtyeight, The Economist, Stata, Excel, and The
4446 Wall Street Journal, among others. This package also provides
4447 @code{geoms} for Tufte's box plot and range frame.")
4448 (license license:gpl2)))
4449
4450 (define-public r-statmod
4451 (package
4452 (name "r-statmod")
4453 (version "1.4.35")
4454 (source (origin
4455 (method url-fetch)
4456 (uri (cran-uri "statmod" version))
4457 (sha256
4458 (base32
4459 "1zpqnfslq5gi6hvqjqnsn5kf2m986s1yb6kvyjd881n3h67l4pny"))))
4460 (build-system r-build-system)
4461 (home-page "https://cran.r-project.org/web/packages/statmod")
4462 (native-inputs
4463 `(("gfortran" ,gfortran)))
4464 (synopsis "Statistical modeling")
4465 (description
4466 "This package provides a collection of algorithms and functions to aid
4467 statistical modeling. It includes growth curve comparisons, limiting dilution
4468 analysis (aka ELDA), mixed linear models, heteroscedastic regression,
4469 inverse-Gaussian probability calculations, Gauss quadrature and a secure
4470 convergence algorithm for nonlinear models. It also includes advanced
4471 generalized linear model functions that implement secure convergence,
4472 dispersion modeling and Tweedie power-law families.")
4473 ;; Statmod is distributed under either license
4474 (license (list license:gpl2 license:gpl3))))
4475
4476 (define-public r-rann
4477 (package
4478 (name "r-rann")
4479 (version "2.6.1")
4480 (source (origin
4481 (method url-fetch)
4482 (uri (cran-uri "RANN" version))
4483 (sha256
4484 (base32
4485 "10kid40w9w7vkz2hpcfkdpxr4afxzms5dzvfwr0sl5xynzgw76dj"))))
4486 (properties
4487 `((upstream-name . "RANN")))
4488 (build-system r-build-system)
4489 (home-page "https://github.com/jefferis/RANN")
4490 (synopsis "Fast nearest neighbour search")
4491 (description
4492 "This package finds the k nearest neighbours for every point in a given
4493 dataset in O(N log N) time using Arya and Mount's ANN library. Provides
4494 approximate, exact searches, fixed radius searches, bd and kb trees.")
4495 (license license:gpl3+)))
4496
4497 (define-public r-fivethirtyeight
4498 (package
4499 (name "r-fivethirtyeight")
4500 (version "0.1.0")
4501 (source
4502 (origin
4503 (method url-fetch)
4504 (uri (string-append "https://mran.microsoft.com/src/contrib/"
4505 "fivethirtyeight_" version ".tar.gz"))
4506 (sha256
4507 (base32
4508 "0fcc8rq745nsghp27dk0lgih90y4zx8hrzcvsn6ih786yv7qxhvl"))))
4509 (build-system r-build-system)
4510 (propagated-inputs
4511 `(("r-knitr" ,r-knitr)
4512 ("r-rmarkdown" ,r-rmarkdown)
4513 ("r-dplyr" ,r-dplyr)
4514 ("r-readr" ,r-readr)
4515 ("r-ggplot2" ,r-ggplot2)
4516 ("r-magrittr" ,r-magrittr)
4517 ("r-stringr" ,r-stringr)))
4518 (home-page "https://mran.microsoft.com/package/fivethirtyeight/")
4519 (synopsis "Data and code behind the stories at FiveThirtyEight")
4520 (description "This R package provides access to the code and data sets
4521 published by the statistics blog FiveThirtyEight.")
4522 (license license:expat)))
4523
4524 (define-public r-compquadform
4525 (package
4526 (name "r-compquadform")
4527 (version "1.4.3")
4528 (source
4529 (origin
4530 (method url-fetch)
4531 (uri (cran-uri "CompQuadForm" version))
4532 (sha256
4533 (base32
4534 "1i30hrqdk64q17vsn918c3q79brchgx2wzh1gbsgbn0dh1ncabq4"))))
4535 (properties `((upstream-name . "CompQuadForm")))
4536 (build-system r-build-system)
4537 (home-page "https://cran.r-project.org/web/packages/CompQuadForm")
4538 (synopsis "Distribution function of quadratic forms in normal variables")
4539 (description
4540 "This package provides functions to compute the distribution function of
4541 quadratic forms in normal variables using Imhof's method, Davies's algorithm,
4542 Farebrother's algorithm or Liu et al.'s algorithm.")
4543 (license license:gpl2+)))
4544
4545 (define-public r-cowplot
4546 (package
4547 (name "r-cowplot")
4548 (version "1.1.1")
4549 (source
4550 (origin
4551 (method url-fetch)
4552 (uri (cran-uri "cowplot" version))
4553 (sha256
4554 (base32
4555 "0j7d5vhzdxn1blrsfafx5z8lhq122rp8230hp9czrpsnnhjydp67"))))
4556 (build-system r-build-system)
4557 (propagated-inputs
4558 `(("r-ggplot2" ,r-ggplot2)
4559 ("r-gtable" ,r-gtable)
4560 ("r-rlang" ,r-rlang)
4561 ("r-scales" ,r-scales)))
4562 (native-inputs
4563 `(("r-knitr" ,r-knitr)))
4564 (home-page "https://github.com/wilkelab/cowplot")
4565 (synopsis "Streamlined plot theme and plot annotations for ggplot2")
4566 (description
4567 "This package provides some helpful extensions and modifications to the
4568 ggplot2 package to combine multiple ggplot2 plots into one and label them with
4569 letters, as is often required for scientific publications.")
4570 (license license:gpl2)))
4571
4572 (define-public r-mixtools
4573 (package
4574 (name "r-mixtools")
4575 (version "1.2.0")
4576 (source
4577 (origin
4578 (method url-fetch)
4579 (uri (cran-uri "mixtools" version))
4580 (sha256
4581 (base32
4582 "08whic8hmmzi55b7azwj11l2x5r9s5qbyrv7s9jr08156vqkw0zg"))))
4583 (build-system r-build-system)
4584 (propagated-inputs
4585 `(("r-mass" ,r-mass)
4586 ("r-kernlab" ,r-kernlab)
4587 ("r-segmented" ,r-segmented)
4588 ("r-survival" ,r-survival)))
4589 (home-page "https://cran.r-project.org/web/packages/mixtools")
4590 (synopsis "Tools for analyzing finite mixture models")
4591 (description
4592 "This package provides a collection of R functions for analyzing finite
4593 mixture models.")
4594 (license license:gpl2+)))
4595
4596 (define-public r-lars
4597 (package
4598 (name "r-lars")
4599 (version "1.2")
4600 (source
4601 (origin
4602 (method url-fetch)
4603 (uri (cran-uri "lars" version))
4604 (sha256
4605 (base32
4606 "0blj44wqrx6lmym1m9v6wkz8zxzbjax2zl6swgdczci0ixb5nx34"))))
4607 (build-system r-build-system)
4608 (inputs
4609 `(("gfortran" ,gfortran)))
4610 (home-page "https://web.stanford.edu/~hastie/Papers/LARS/")
4611 (synopsis "Least angle regression software")
4612 (description
4613 "Least Angle Regression (\"LAR\") is a model selection algorithm; a
4614 useful and less greedy version of traditional forward selection methods. A
4615 simple modification of the LAR algorithm implements Tibshirani's Lasso; the
4616 Lasso modification of LARS calculates the entire Lasso path of coefficients
4617 for a given problem at the cost of a single least squares fit. Another LARS
4618 modification efficiently implements epsilon Forward Stagewise linear
4619 regression.")
4620 (license license:gpl2)))
4621
4622 (define-public r-fastica
4623 (package
4624 (name "r-fastica")
4625 (version "1.2-2")
4626 (source
4627 (origin
4628 (method url-fetch)
4629 (uri (cran-uri "fastICA" version))
4630 (sha256
4631 (base32
4632 "1zpijqcipm0aa3rxj0mys06lskqy4dbppjpxr1aby0j16y9ka8ij"))))
4633 (properties `((upstream-name . "fastICA")))
4634 (build-system r-build-system)
4635 (home-page "https://cran.r-project.org/web/packages/fastICA")
4636 (synopsis "FastICA algorithms to perform ICA and projection pursuit")
4637 (description
4638 "This package provides an implementation of the FastICA algorithm to
4639 perform @dfn{independent component analysis} (ICA) and projection pursuit.")
4640 ;; Any GPL version.
4641 (license license:gpl3+)))
4642
4643 (define-public r-randomforest
4644 (package
4645 (name "r-randomforest")
4646 (version "4.6-14")
4647 (source
4648 (origin
4649 (method url-fetch)
4650 (uri (cran-uri "randomForest" version))
4651 (sha256
4652 (base32
4653 "0kbmm0l42fc2d1rdq0l7k09d34kd87q4lx651ffsic4y84h8kf7l"))))
4654 (properties `((upstream-name . "randomForest")))
4655 (build-system r-build-system)
4656 (home-page "https://www.stat.berkeley.edu/~breiman/RandomForests/")
4657 (native-inputs
4658 `(("gfortran" ,gfortran)))
4659 (synopsis "Breiman and Cutler's random forests for classification and regression")
4660 (description
4661 "This package provides the Breiman and Cutler's random forests algorithm, based on a
4662 forest of trees using random inputs, for classification and regression.")
4663 (license license:gpl2+)))
4664
4665 (define-public r-diptest
4666 (package
4667 (name "r-diptest")
4668 (version "0.75-7")
4669 (source
4670 (origin
4671 (method url-fetch)
4672 (uri (cran-uri "diptest" version))
4673 (sha256
4674 (base32
4675 "06xnc5gv1284ll0addxnxb6ljz6fn8dbyrp5vchyz6551h800aa6"))))
4676 (build-system r-build-system)
4677 (home-page "https://cran.r-project.org/web/packages/diptest")
4678 (synopsis "Hartigan's dip test statistic for unimodality")
4679 (description
4680 "This package computes Hartigan's dip test statistic for unimodality,
4681 multimodality and provides a test with simulation based p-values, where the
4682 original public code has been corrected.")
4683 (license license:gpl2+)))
4684
4685 (define-public r-modeltools
4686 (package
4687 (name "r-modeltools")
4688 (version "0.2-23")
4689 (source
4690 (origin
4691 (method url-fetch)
4692 (uri (cran-uri "modeltools" version))
4693 (sha256
4694 (base32
4695 "1vqh69256h344sbj5affm0kmc77dakrxp6442xfdnfd0y5d8sgkb"))))
4696 (build-system r-build-system)
4697 (home-page "https://cran.r-project.org/web/packages/modeltools")
4698 (synopsis "Tools and classes for statistical models")
4699 (description
4700 "This package provides a collection of tools to deal with statistical
4701 models. The functionality is experimental and the user interface is likely
4702 to change in the future.")
4703 (license license:gpl2)))
4704
4705 (define-public r-flexmix
4706 (package
4707 (name "r-flexmix")
4708 (version "2.3-17")
4709 (source
4710 (origin
4711 (method url-fetch)
4712 (uri (cran-uri "flexmix" version))
4713 (sha256
4714 (base32
4715 "0jangf89174p0idh9afbicfiln2sz8jxc3bjc6n0j9036dw9n09n"))))
4716 (build-system r-build-system)
4717 (propagated-inputs
4718 `(("r-lattice" ,r-lattice)
4719 ("r-modeltools" ,r-modeltools)
4720 ("r-nnet" ,r-nnet)))
4721 (home-page "https://cran.r-project.org/web/packages/flexmix")
4722 (synopsis "Flexible mixture modeling")
4723 (description
4724 "This package implements a general framework for finite mixtures of
4725 regression models using the EM algorithm. FlexMix provides the E-step and
4726 all data handling, while the M-step can be supplied by the user to easily
4727 define new models. Existing drivers implement mixtures of standard linear
4728 models, generalized linear models and model-based clustering.")
4729 (license license:gpl2+)))
4730
4731 (define-public r-mclust
4732 (package
4733 (name "r-mclust")
4734 (version "5.4.7")
4735 (source
4736 (origin
4737 (method url-fetch)
4738 (uri (cran-uri "mclust" version))
4739 (sha256
4740 (base32
4741 "08scl72llpinfijiyx14yqvmx8lma9jvh8h92v9ynnzfr9kadxa5"))))
4742 (build-system r-build-system)
4743 (native-inputs
4744 `(("gfortran" ,gfortran)
4745 ("r-knitr" ,r-knitr)))
4746 (home-page "https://www.stat.washington.edu/mclust/")
4747 (synopsis "Gaussian mixture modelling for model-based clustering etc.")
4748 (description
4749 "This package provides Gaussian finite mixture models fitted via EM
4750 algorithm for model-based clustering, classification, and density estimation,
4751 including Bayesian regularization, dimension reduction for visualisation,
4752 and resampling-based inference.")
4753 (license license:gpl2+)))
4754
4755 (define-public r-prabclus
4756 (package
4757 (name "r-prabclus")
4758 (version "2.3-2")
4759 (source
4760 (origin
4761 (method url-fetch)
4762 (uri (cran-uri "prabclus" version))
4763 (sha256
4764 (base32
4765 "0hg4d7y1w18jpgvw10z8833bbbcnlkwiasx0wh6iwa2pnnybq8gl"))))
4766 (build-system r-build-system)
4767 (propagated-inputs
4768 `(("r-mass" ,r-mass)
4769 ("r-mclust" ,r-mclust)))
4770 (home-page "https://cran.r-project.org/web/packages/prabclus")
4771 (synopsis "Parametric bootstrap tests for spatial neighborhood clustering")
4772 (description
4773 "This package provides distance-based parametric bootstrap tests for
4774 clustering with spatial neighborhood information. It implements some distance
4775 measures, clustering of presence-absence, abundance and multilocus genetical
4776 data for species delimitation, nearest neighbor based noise detection.")
4777 (license license:gpl2+)))
4778
4779 (define-public r-deoptimr
4780 (package
4781 (name "r-deoptimr")
4782 (version "1.0-8")
4783 (source
4784 (origin
4785 (method url-fetch)
4786 (uri (cran-uri "DEoptimR" version))
4787 (sha256
4788 (base32
4789 "1vz546hyjyhly70z62h5n3mn62b8llhhmim8ffp9y6jnnb0i2sc4"))))
4790 (properties `((upstream-name . "DEoptimR")))
4791 (build-system r-build-system)
4792 (home-page "https://cran.r-project.org/web/packages/DEoptimR")
4793 (synopsis "Differential evolution optimization in pure R")
4794 (description
4795 "This package provides a differential evolution (DE) stochastic
4796 algorithms for global optimization of problems with and without constraints.
4797 The aim is to curate a collection of its state-of-the-art variants that (1) do
4798 not sacrifice simplicity of design, (2) are essentially tuning-free, and (3)
4799 can be efficiently implemented directly in the R language.")
4800 (license license:gpl2+)))
4801
4802 (define-public r-robustbase
4803 (package
4804 (name "r-robustbase")
4805 (version "0.93-7")
4806 (source
4807 (origin
4808 (method url-fetch)
4809 (uri (cran-uri "robustbase" version))
4810 (sha256
4811 (base32
4812 "0mh9d114p3jdrjf8yn4dx5ff41niz5wn411y0ckjcpnazp8d44c9"))))
4813 (build-system r-build-system)
4814 (native-inputs
4815 `(("gfortran" ,gfortran)))
4816 (propagated-inputs
4817 `(("r-deoptimr" ,r-deoptimr)))
4818 (home-page "http://robustbase.r-forge.r-project.org/")
4819 (synopsis "Basic robust statistics")
4820 (description
4821 "This package analyzes data with robust methods such as
4822 regression methodology including model selections and multivariate statistics.")
4823 (license license:gpl2+)))
4824
4825 (define-public r-pcapp
4826 (package
4827 (name "r-pcapp")
4828 (version "1.9-73")
4829 (source
4830 (origin
4831 (method url-fetch)
4832 (uri (cran-uri "pcaPP" version))
4833 (sha256
4834 (base32
4835 "1z2kdf9gfp965xbcd4rg6vf20d1bl443na0qjkpq7gmzpaq6cifa"))))
4836 (properties `((upstream-name . "pcaPP")))
4837 (build-system r-build-system)
4838 (propagated-inputs
4839 `(("r-mvtnorm" ,r-mvtnorm)))
4840 (home-page "https://cran.r-project.org/web/packages/pcaPP")
4841 (synopsis "Robust PCA by projection pursuit")
4842 (description
4843 "This package provides functions for robust @dfn{principal component
4844 analysis} (PCA) by projection pursuit.")
4845 (license license:gpl3+)))
4846
4847 (define-public r-rrcov
4848 (package
4849 (name "r-rrcov")
4850 (version "1.5-5")
4851 (source
4852 (origin
4853 (method url-fetch)
4854 (uri (cran-uri "rrcov" version))
4855 (sha256
4856 (base32
4857 "0ag6q16ajkqwj28dk9vp4xkvqw26fqqqdxnz38gpszilirahfzqz"))))
4858 (build-system r-build-system)
4859 (propagated-inputs
4860 `(("r-lattice" ,r-lattice)
4861 ("r-mvtnorm" ,r-mvtnorm)
4862 ("r-pcapp" ,r-pcapp)
4863 ("r-robustbase" ,r-robustbase)))
4864 (native-inputs
4865 `(("gfortran" ,gfortran)))
4866 (home-page "https://cran.r-project.org/web/packages/rrcov")
4867 (synopsis "Scalable robust estimators with high breakdown Point")
4868 (description
4869 "This package provides an implementation of robust location and scatter
4870 estimation and robust multivariate analysis with high breakdown point.")
4871 (license license:gpl2+)))
4872
4873 (define-public r-fit-models
4874 (package
4875 (name "r-fit-models")
4876 (version "0.64")
4877 (source
4878 (origin
4879 (method url-fetch)
4880 (uri (cran-uri "fit.models" version))
4881 (sha256
4882 (base32
4883 "1nk4x2q8cv79zcls61saf627ac0fci6jcrd6lmzk61asm2zhc27p"))))
4884 (properties `((upstream-name . "fit.models")))
4885 (build-system r-build-system)
4886 (propagated-inputs
4887 `(("r-lattice" ,r-lattice)))
4888 (home-page "https://cran.r-project.org/web/packages/fit.models")
4889 (synopsis "Compare fitted models")
4890 (description
4891 "The @code{fit.models} function and its associated methods (coefficients, print,
4892 summary, plot, etc.) were originally provided in the @code{robust} package to
4893 compare robustly and classically fitted model objects. The aim of the
4894 @code{fit.models} package is to separate this fitted model object comparison
4895 functionality from the robust package and to extend it to support fitting
4896 methods (e.g., classical, robust, Bayesian, regularized, etc.) more
4897 generally.")
4898 ;; Any version of the GPL
4899 (license (list license:gpl2+ license:gpl3+))))
4900
4901 (define-public r-robust
4902 (package
4903 (name "r-robust")
4904 (version "0.5-0.0")
4905 (source
4906 (origin
4907 (method url-fetch)
4908 (uri (cran-uri "robust" version))
4909 (sha256
4910 (base32
4911 "1ks5scp8bnicl9j1r8yrmz668fjs6ifdmi540zw6d2ck500bbw42"))))
4912 (build-system r-build-system)
4913 (propagated-inputs
4914 `(("r-fit-models" ,r-fit-models)
4915 ("r-lattice" ,r-lattice)
4916 ("r-mass" ,r-mass)
4917 ("r-robustbase" ,r-robustbase)
4918 ("r-rrcov" ,r-rrcov)))
4919 (native-inputs
4920 `(("gfortran" ,gfortran)))
4921 (home-page "https://cran.r-project.org/web/packages/robust")
4922 (synopsis "Port of the S+ \"Robust Library\"")
4923 (description
4924 "This package is a port of the S+ \"Robust Library\". It provides
4925 methods for robust statistics, notably for robust regression and robust
4926 multivariate analysis.")
4927 (license license:gpl2)))
4928
4929 (define-public r-trimcluster
4930 (package
4931 (name "r-trimcluster")
4932 (version "0.1-5")
4933 (source
4934 (origin
4935 (method url-fetch)
4936 (uri (cran-uri "trimcluster" version))
4937 (sha256
4938 (base32
4939 "12siv8yx8dcavsz8jk96lwscbj257ar8jpaxksl2zb06987g4fcj"))))
4940 (build-system r-build-system)
4941 (home-page "https://cran.r-project.org/web/packages/trimcluster")
4942 (synopsis "Cluster analysis with trimming")
4943 (description
4944 "The trimmed k-means clustering method by Cuesta-Albertos, Gordaliza and
4945 Matran (1997). This optimizes the k-means criterion under trimming a portion
4946 of the points.")
4947 ;; Any GPL version
4948 (license (list license:gpl2+ license:gpl3+))))
4949
4950 (define-public r-fpc
4951 (package
4952 (name "r-fpc")
4953 (version "2.2-9")
4954 (source
4955 (origin
4956 (method url-fetch)
4957 (uri (cran-uri "fpc" version))
4958 (sha256
4959 (base32
4960 "0f7sfmpcycr9y7cy5gasyjm2ardxa62kglqms92mcr68jrp01c19"))))
4961 (build-system r-build-system)
4962 (propagated-inputs
4963 `(("r-class" ,r-class)
4964 ("r-cluster" ,r-cluster)
4965 ("r-diptest" ,r-diptest)
4966 ("r-flexmix" ,r-flexmix)
4967 ("r-kernlab" ,r-kernlab)
4968 ("r-mass" ,r-mass)
4969 ("r-mclust" ,r-mclust)
4970 ("r-prabclus" ,r-prabclus)
4971 ("r-robustbase" ,r-robustbase)))
4972 (home-page "https://cran.r-project.org/web/packages/fpc")
4973 (synopsis "Flexible procedures for clustering")
4974 (description
4975 "This package provides various methods for clustering and cluster validation.
4976 For example, it provides fixed point clustering, linear regression clustering,
4977 clustering by merging Gaussian mixture components, as well as symmetric and
4978 asymmetric discriminant projections for visualisation of the separation of
4979 groupings.")
4980 (license license:gpl2+)))
4981
4982 (define-public r-vgam
4983 (package
4984 (name "r-vgam")
4985 (version "1.1-5")
4986 (source
4987 (origin
4988 (method url-fetch)
4989 (uri (cran-uri "VGAM" version))
4990 (sha256
4991 (base32 "1fx123h4x5awzshv0m4jqbbllrdjfpslb2i8gl9phm1y1wahn69h"))))
4992 (properties `((upstream-name . "VGAM")))
4993 (build-system r-build-system)
4994 (native-inputs
4995 `(("gfortran" ,gfortran)))
4996 (home-page "https://www.stat.auckland.ac.nz/~yee/VGAM")
4997 (synopsis "Vector generalized linear and additive models")
4998 (description
4999 "This package is an implementation of about 6 major classes of statistical
5000 regression models. Currently only fixed-effects models are implemented, i.e.,
5001 no random-effects models. Many (150+) models and distributions are estimated
5002 by maximum likelihood estimation (MLE) or penalized MLE, using Fisher scoring.
5003 VGLMs can be loosely thought of as multivariate generalised linear models.")
5004 (license license:gpl2+)))
5005
5006 (define-public r-pbapply
5007 (package
5008 (name "r-pbapply")
5009 (version "1.4-3")
5010 (source
5011 (origin
5012 (method url-fetch)
5013 (uri (cran-uri "pbapply" version))
5014 (sha256
5015 (base32
5016 "08gb6c8p1r9z8wrfidj2dfn6irm43k6f4448d1d6nxmy6msjirlg"))))
5017 (build-system r-build-system)
5018 (home-page "https://github.com/psolymos/pbapply")
5019 (synopsis "Adding progress bar to apply functions")
5020 (description
5021 "This lightweight package that adds progress bar to vectorized R
5022 functions apply. The implementation can easily be added to functions where
5023 showing the progress is useful e.g. bootstrap.")
5024 (license license:gpl2)))
5025
5026 (define-public r-minqa
5027 (package
5028 (name "r-minqa")
5029 (version "1.2.4")
5030 (source
5031 (origin
5032 (method url-fetch)
5033 (uri (cran-uri "minqa" version))
5034 (sha256
5035 (base32
5036 "036drja6xz7awja9iwb76x91415p26fb0jmg7y7v0p65m6j978fg"))))
5037 (build-system r-build-system)
5038 (propagated-inputs
5039 `(("r-rcpp" ,r-rcpp)))
5040 (inputs
5041 `(("gfortran" ,gfortran)))
5042 (home-page "http://optimizer.r-forge.r-project.org")
5043 (synopsis "Derivative-free optimization algorithms by quadratic approximation")
5044 (description
5045 "This package provides a derivative-free optimization by quadratic approximation
5046 based on an interface to Fortran implementations by M. J. D. Powell.")
5047 (license license:gpl2)))
5048
5049 (define-public r-rcppeigen
5050 (package
5051 (name "r-rcppeigen")
5052 (version "0.3.3.9.1")
5053 (source
5054 (origin
5055 (method url-fetch)
5056 (uri (cran-uri "RcppEigen" version))
5057 (sha256
5058 (base32
5059 "0qp9gypar280lm84pc8w0fxw4jgwqygwi3qnl5sl52kpkcj8c14a"))))
5060 (properties `((upstream-name . "RcppEigen")))
5061 (build-system r-build-system)
5062 (propagated-inputs
5063 `(("r-rcpp" ,r-rcpp)
5064 ("r-matrix" ,r-matrix)))
5065 (home-page "http://eigen.tuxfamily.org")
5066 (synopsis "Rcpp integration for the Eigen templated linear algebra library")
5067 (description
5068 "This package provides an integration of Eigen in R using a C++ template
5069 library for linear algebra: matrices, vectors, numerical solvers and related algorithms.
5070 It supports dense and sparse matrices on integer, floating point and complex numbers,
5071 decompositions of such matrices, and solutions of linear systems.")
5072 (license license:gpl2+)))
5073
5074 (define-public r-modelmetrics
5075 (package
5076 (name "r-modelmetrics")
5077 (version "1.2.2.2")
5078 (source
5079 (origin
5080 (method url-fetch)
5081 (uri (cran-uri "ModelMetrics" version))
5082 (sha256
5083 (base32
5084 "0mrlsw4c5y1vdsqynxr2dcvmhh5h37pnd71jw5a5djpbda9g21jy"))))
5085 (properties `((upstream-name . "ModelMetrics")))
5086 (build-system r-build-system)
5087 (propagated-inputs
5088 `(("r-rcpp" ,r-rcpp)
5089 ("r-data-table" ,r-data-table)))
5090 (home-page "https://cran.r-project.org/web/packages/ModelMetrics")
5091 (synopsis "Rapid calculation of model metrics")
5092 (description
5093 "Written in C++ using @code{Rcpp}, this package provides a collection of
5094 metrics for evaluating models.")
5095 (license license:gpl2+)))
5096
5097 (define-public r-matrixmodels
5098 (package
5099 (name "r-matrixmodels")
5100 (version "0.5-0")
5101 (source
5102 (origin
5103 (method url-fetch)
5104 (uri (cran-uri "MatrixModels" version))
5105 (sha256
5106 (base32
5107 "1va6i6bpkq71rzl9i4xgyc5x7qcksa3nfzihlaggf6aj30dayzx8"))))
5108 (properties `((upstream-name . "MatrixModels")))
5109 (build-system r-build-system)
5110 (propagated-inputs
5111 `(("r-matrix" ,r-matrix)))
5112 (home-page "https://cran.r-project.org/web/packages/MatrixModels")
5113 (synopsis "Modelling with sparse and dense matrices")
5114 (description
5115 "This package models with sparse and dense matrix matrices,
5116 using modular prediction and response module classes.")
5117 (license license:gpl2+)))
5118
5119 (define-public r-quantreg
5120 (package
5121 (name "r-quantreg")
5122 (version "5.85")
5123 (source
5124 (origin
5125 (method url-fetch)
5126 (uri (cran-uri "quantreg" version))
5127 (sha256
5128 (base32 "1y8sgl16yby1k7g23y6bdnfllwnxj3iik3fqp96iwm5jd8blb7q4"))))
5129 (build-system r-build-system)
5130 (native-inputs
5131 `(("gfortran" ,gfortran)))
5132 (propagated-inputs
5133 `(("r-conquer" ,r-conquer)
5134 ("r-matrix" ,r-matrix)
5135 ("r-matrixmodels" ,r-matrixmodels)
5136 ("r-sparsem" ,r-sparsem)))
5137 (home-page "https://www.r-project.org")
5138 (synopsis "Quantile regression")
5139 (description
5140 "This package provides an estimation and inference methods for models
5141 of conditional quantiles: linear and nonlinear parametric and non-parametric
5142 models for conditional quantiles of a univariate response and several methods
5143 for handling censored survival data. Portfolio selection methods based on
5144 expected shortfall risk are also included.")
5145 (license license:gpl2+)))
5146
5147 (define-public r-nloptr
5148 (package
5149 (name "r-nloptr")
5150 (version "1.2.2.2")
5151 (source
5152 (origin
5153 (method url-fetch)
5154 (uri (cran-uri "nloptr" version))
5155 (sha256
5156 (base32
5157 "0whkilb85k4wixvr3k7rygfw1rcs1fs9h8c18kz4p3y1k9hsj3p8"))))
5158 (build-system r-build-system)
5159 (native-inputs
5160 `(("r-knitr" ,r-knitr) ; for building vignettes
5161 ("pkg-config" ,pkg-config)
5162 ("gfortran" ,gfortran)))
5163 (inputs
5164 `(("nlopt" ,nlopt)))
5165 (home-page "https://cran.r-project.org/web/packages/nloptr")
5166 (synopsis "R interface to NLopt")
5167 (description
5168 "This package is interface to NLopt, a library for nonlinear
5169 optimization. NLopt is a library for nonlinear optimization, providing a
5170 common interface for a number of different free optimization routines
5171 available online as well as original implementations of various other
5172 algorithms.")
5173 (license license:lgpl3)))
5174
5175 (define-public r-lme4
5176 (package
5177 (name "r-lme4")
5178 (version "1.1-26")
5179 (source
5180 (origin
5181 (method url-fetch)
5182 (uri (cran-uri "lme4" version))
5183 (sha256
5184 (base32
5185 "0ls2krph4pfjn45vf9fn3ln3x98s85wxrkvm5pnxyx55n1pnsjrn"))))
5186 (build-system r-build-system)
5187 (propagated-inputs
5188 `(("r-boot" ,r-boot)
5189 ("r-lattice" ,r-lattice)
5190 ("r-mass" ,r-mass)
5191 ("r-matrix" ,r-matrix)
5192 ("r-minqa" ,r-minqa)
5193 ("r-nloptr" ,r-nloptr)
5194 ("r-nlme" ,r-nlme)
5195 ("r-rcpp" ,r-rcpp)
5196 ("r-rcppeigen" ,r-rcppeigen)
5197 ("r-statmod" ,r-statmod)))
5198 (native-inputs
5199 `(("r-knitr" ,r-knitr)))
5200 (home-page "https://cran.r-project.org/web/packages/lme4")
5201 (synopsis "Linear mixed-effects models using eigen and S4")
5202 (description
5203 "This package provides fit linear and generalized linear mixed-effects
5204 models. The models and their components are represented using S4 classes and
5205 methods. The core computational algorithms are implemented using the Eigen
5206 C++ library for numerical linear algebra and RcppEigen glue.")
5207 (license license:gpl2+)))
5208
5209 (define-public r-pbkrtest
5210 (package
5211 (name "r-pbkrtest")
5212 (version "0.5.1")
5213 (source
5214 (origin
5215 (method url-fetch)
5216 (uri (cran-uri "pbkrtest" version))
5217 (sha256
5218 (base32
5219 "1if7msv9i7jhg1as1f7m81a95dnwhwj3yfs24bqr0f6r0ch4b8xj"))))
5220 (build-system r-build-system)
5221 (propagated-inputs
5222 `(("r-broom" ,r-broom)
5223 ("r-dplyr" ,r-dplyr)
5224 ("r-lme4" ,r-lme4)
5225 ("r-magrittr" ,r-magrittr)
5226 ("r-mass" ,r-mass)
5227 ("r-matrix" ,r-matrix)
5228 ("r-numderiv" ,r-numderiv)))
5229 (native-inputs
5230 `(("r-knitr" ,r-knitr)))
5231 (home-page "https://people.math.aau.dk/~sorenh/software/pbkrtest/")
5232 (synopsis "Methods for linear mixed model comparison")
5233 (description
5234 "This package implements a parametric bootstrap test and a Kenward Roger
5235 modification of F-tests for linear mixed effects models and a parametric
5236 bootstrap test for generalized linear mixed models.")
5237 (license license:gpl2+)))
5238
5239 (define-public r-cardata
5240 (package
5241 (name "r-cardata")
5242 (version "3.0-4")
5243 (source
5244 (origin
5245 (method url-fetch)
5246 (uri (cran-uri "carData" version))
5247 (sha256
5248 (base32 "09270j39n4jpswxqps20b12zaj8dz4rrqpk2l2j5bnf1xzizb9nd"))))
5249 (properties `((upstream-name . "carData")))
5250 (build-system r-build-system)
5251 (home-page "https://r-forge.r-project.org/projects/car/")
5252 (synopsis "Data Sets for the book Companion to Applied Regression")
5253 (description
5254 "This package provides datasets to accompany J. Fox and S. Weisberg, An R
5255 Companion to Applied Regression, Third Edition, Sage.")
5256 (license license:gpl2+)))
5257
5258 (define-public r-car
5259 (package
5260 (name "r-car")
5261 (version "3.0-10")
5262 (source
5263 (origin
5264 (method url-fetch)
5265 (uri (cran-uri "car" version))
5266 (sha256
5267 (base32 "1w95b7xm0bna3qm637pwyv4s7294ffz9dl153naprd79zv91dqqw"))))
5268 (build-system r-build-system)
5269 (propagated-inputs
5270 `(("r-abind" ,r-abind)
5271 ("r-cardata" ,r-cardata)
5272 ("r-lme4" ,r-lme4)
5273 ("r-maptools" ,r-maptools)
5274 ("r-mass" ,r-mass)
5275 ("r-mgcv" ,r-mgcv)
5276 ("r-nlme" ,r-nlme)
5277 ("r-nnet" ,r-nnet)
5278 ("r-pbkrtest" ,r-pbkrtest)
5279 ("r-quantreg" ,r-quantreg)
5280 ("r-rio" ,r-rio)))
5281 (native-inputs
5282 `(("r-knitr" ,r-knitr)))
5283 (home-page "https://r-forge.r-project.org/projects/car/")
5284 (synopsis "Companion to applied regression")
5285 (description
5286 "This package provides functions and datasets from book Companion
5287 to Applied regression, Second Edition, Sage, 2011.")
5288 (license license:gpl2+)))
5289
5290 (define-public r-rcppprogress
5291 (package
5292 (name "r-rcppprogress")
5293 (version "0.4.2")
5294 (source
5295 (origin
5296 (method url-fetch)
5297 (uri (cran-uri "RcppProgress" version))
5298 (sha256
5299 (base32
5300 "0j2b37gwjpgmrnr00srdzm751hzlpsjb54ph63xxmcdfnwhlnqmi"))))
5301 (properties `((upstream-name . "RcppProgress")))
5302 (build-system r-build-system)
5303 (home-page "https://github.com/kforner/rcpp_progress")
5304 (synopsis "Interruptible progress bar for C++ in R packages")
5305 (description
5306 "This package displays a progress bar in the R console for long running
5307 computations taking place in C++ code, and support for interrupting those computations
5308 even in multithreaded code, typically using OpenMP.")
5309 (license license:gpl3+)))
5310
5311 (define-public r-tmvnsim
5312 (package
5313 (name "r-tmvnsim")
5314 (version "1.0-2")
5315 (source
5316 (origin
5317 (method url-fetch)
5318 (uri (cran-uri "tmvnsim" version))
5319 (sha256
5320 (base32
5321 "03xsvsg9bqvgl98ywid3h91mmlhax5s6wvmypp3hq91vmc5kvxlp"))))
5322 (properties `((upstream-name . "tmvnsim")))
5323 (build-system r-build-system)
5324 (native-inputs `(("gfortran" ,gfortran)))
5325 (home-page "https://www.r-project.org")
5326 (synopsis "Truncated multivariate normal simulation")
5327 (description
5328 "This package implements importance sampling from the truncated
5329 multivariate normal using the @dfn{Geweke-Hajivassiliou-Keane} (GHK)
5330 simulator. Unlike Gibbs sampling which can get stuck in one truncation
5331 sub-region depending on initial values, this package allows truncation based
5332 on disjoint regions that are created by truncation of absolute values. The
5333 GHK algorithm uses simple Cholesky transformation followed by recursive
5334 simulation of univariate truncated normals hence there are also no convergence
5335 issues. Importance sample is returned along with sampling weights, based on
5336 which, one can calculate integrals over truncated regions for multivariate
5337 normals.")
5338 (license license:gpl2)))
5339
5340 (define-public r-mnormt
5341 (package
5342 (name "r-mnormt")
5343 (version "2.0.2")
5344 (source
5345 (origin
5346 (method url-fetch)
5347 (uri (cran-uri "mnormt" version))
5348 (sha256
5349 (base32
5350 "0d7ka4l4fl1wi77r2r81dc91n6cbj2xrb3lsizz5y0ziscva0sjw"))))
5351 (build-system r-build-system)
5352 (propagated-inputs
5353 `(("r-tmvnsim" ,r-tmvnsim)))
5354 (native-inputs
5355 `(("gfortran" ,gfortran)))
5356 (home-page "http://azzalini.stat.unipd.it/SW/Pkg-mnormt")
5357 (synopsis "Multivariate normal and \"t\" distributions")
5358 (description
5359 "This package provides functions for computing the density and the
5360 distribution function of multivariate normal and \"t\" random variables, and
5361 for generating random vectors sampled from these distributions. Probabilities
5362 are computed via non-Monte Carlo methods.")
5363 (license license:gpl2+)))
5364
5365 (define-public r-numderiv
5366 (package
5367 (name "r-numderiv")
5368 (version "2016.8-1.1")
5369 (source
5370 (origin
5371 (method url-fetch)
5372 (uri (cran-uri "numDeriv" version))
5373 (sha256
5374 (base32
5375 "0idk02pqkziik932bd8k72d1q775g1is3m4bc861pcxfz6gx3i6q"))))
5376 (properties `((upstream-name . "numDeriv")))
5377 (build-system r-build-system)
5378 (home-page "https://cran.r-project.org/web/packages/numDeriv")
5379 (synopsis "Accurate numerical derivatives")
5380 (description
5381 "This package provides methods for calculating accurate numerical
5382 first and second order derivatives.")
5383 (license license:gpl2)))
5384
5385 (define-public r-sn
5386 (package
5387 (name "r-sn")
5388 (version "2.0.0")
5389 (source
5390 (origin
5391 (method url-fetch)
5392 (uri (cran-uri "sn" version))
5393 (sha256
5394 (base32
5395 "0sl8qzy9isy5fq8qxh1fg5285jzgy895nbgz8gdq5d0r6zdwrmmb"))))
5396 (build-system r-build-system)
5397 (propagated-inputs
5398 `(("r-mnormt" ,r-mnormt)
5399 ("r-numderiv" ,r-numderiv)
5400 ("r-quantreg" ,r-quantreg)))
5401 (home-page "http://azzalini.stat.unipd.it/SN")
5402 (synopsis "The skew-normal and skew-t distributions")
5403 (description
5404 "This package provides functionalities to build and manipulate
5405 probability distributions of the skew-normal family and some related
5406 ones, notably the skew-t family, and provides related statistical
5407 methods for data fitting and diagnostics, in the univariate and the
5408 multivariate case.")
5409 (license license:gpl2+)))
5410
5411 (define-public r-tclust
5412 (package
5413 (name "r-tclust")
5414 (version "1.4-2")
5415 (source
5416 (origin
5417 (method url-fetch)
5418 (uri (cran-uri "tclust" version))
5419 (sha256
5420 (base32
5421 "1nb5iky4kc832627jf28lzj19wrvgwg5da6fyl3kyf0npmyx1p4m"))))
5422 (build-system r-build-system)
5423 ;; These are all suggested packages, not build dependencies.
5424 (propagated-inputs
5425 `(("r-cluster" ,r-cluster)
5426 ("r-mclust" ,r-mclust)
5427 ("r-mvtnorm" ,r-mvtnorm)
5428 ("r-sn" ,r-sn)))
5429 (home-page "https://cran.r-project.org/web/packages/tclust")
5430 (synopsis "Robust trimmed clustering")
5431 (description
5432 "This package implements different robust clustering
5433 algorithms (@code{tclust}) based on trimming and including some graphical
5434 diagnostic tools (@code{ctlcurves} and @code{DiscrFact}).")
5435 (license license:gpl3)))
5436
5437 (define-public r-ranger
5438 (package
5439 (name "r-ranger")
5440 (version "0.12.1")
5441 (source
5442 (origin
5443 (method url-fetch)
5444 (uri (cran-uri "ranger" version))
5445 (sha256
5446 (base32
5447 "1vr5akgh388iivrxi0g4pl2npq9dc4cim3ljk4kjf637q058wc7w"))))
5448 (build-system r-build-system)
5449 (propagated-inputs
5450 `(("r-rcpp" ,r-rcpp)
5451 ("r-matrix" ,r-matrix)
5452 ("r-rcppeigen" ,r-rcppeigen)))
5453 (home-page "https://github.com/imbs-hl/ranger")
5454 (synopsis "Fast implementation of random forests")
5455 (description
5456 "This package provides a fast implementation of Random Forests,
5457 particularly suited for high dimensional data. Ensembles of classification,
5458 regression, survival and probability prediction trees are supported. Data from
5459 genome-wide association studies can be analyzed efficiently.")
5460 (license license:gpl3)))
5461
5462 (define-public r-tsne
5463 (package
5464 (name "r-tsne")
5465 (version "0.1-3")
5466 (source
5467 (origin
5468 (method url-fetch)
5469 (uri (cran-uri "tsne" version))
5470 (sha256
5471 (base32
5472 "0s8cv2pndkddq62rzlgzgfdjp1vjv5hz5i5957sllnb97vbzbzb6"))))
5473 (build-system r-build-system)
5474 (home-page "https://github.com/jdonaldson/rtsne/")
5475 (synopsis "t-Distributed Stochastic Neighbor Embedding for R")
5476 (description
5477 "This package provides a pure R implementation of the t-SNE algorithm.")
5478 (license license:gpl2+)))
5479
5480 (define-public r-cairo
5481 (package
5482 (name "r-cairo")
5483 (version "1.5-12.2")
5484 (source
5485 (origin
5486 (method url-fetch)
5487 (uri (cran-uri "Cairo" version))
5488 (sha256
5489 (base32
5490 "14hgz5wmnhlbqkd1g662n1agmjnlj3pq69gfng1vb0ivr02l2lnx"))))
5491 (properties `((upstream-name . "Cairo")))
5492 (build-system r-build-system)
5493 (inputs
5494 `(("cairo" ,cairo)
5495 ("libxt" ,libxt)
5496 ("zlib" ,zlib)))
5497 (native-inputs
5498 `(("pkg-config" ,pkg-config)))
5499 (home-page "https://www.rforge.net/Cairo/")
5500 (synopsis "R graphics device using Cairo graphics library")
5501 (description
5502 "This package provides a Cairo graphics device that can be use to
5503 create high-quality vector (PDF, PostScript and SVG) and bitmap
5504 output (PNG,JPEG,TIFF), and high-quality rendering in displays (X11
5505 and Win32). Since it uses the same back-end for all output, copying
5506 across formats is WYSIWYG. Files are created without the dependence
5507 on X11 or other external programs. This device supports alpha
5508 channel (semi-transparent drawing) and resulting images can contain
5509 transparent and semi-transparent regions. It is ideal for use in
5510 server environments (file output) and as a replacement for other
5511 devices that don't have Cairo's capabilities such as alpha support or
5512 anti-aliasing. Backends are modular such that any subset of backends
5513 is supported.")
5514 (license license:gpl2)))
5515
5516 (define-public r-lubridate
5517 (package
5518 (name "r-lubridate")
5519 (version "1.7.10")
5520 (source
5521 (origin
5522 (method url-fetch)
5523 (uri (cran-uri "lubridate" version))
5524 (sha256
5525 (base32
5526 "1s653d6rnpf9bkynxmbq4fdjdcz7r9ma19aph8f5y9ck70his4hm"))))
5527 (build-system r-build-system)
5528 (propagated-inputs
5529 `(("r-generics" ,r-generics)
5530 ("r-rcpp" ,r-rcpp)))
5531 (native-inputs
5532 `(("r-knitr" ,r-knitr)))
5533 (home-page "https://cran.r-project.org/web/packages/lubridate/")
5534 (synopsis "Make dealing with dates a little easier")
5535 (description
5536 "This package provides functions to work with date-times and time-spans:
5537 fast and user friendly parsing of date-time data, extraction and updating of
5538 components of a date-time (years, months, days, hours, minutes, and seconds),
5539 algebraic manipulation on date-time and time-span objects. The @code{lubridate}
5540 package has a consistent and memorable syntax that makes working with dates
5541 easy and fun.")
5542 (license license:gpl2)))
5543
5544 (define-public r-fdrtool
5545 (package
5546 (name "r-fdrtool")
5547 (version "1.2.16")
5548 (source
5549 (origin
5550 (method url-fetch)
5551 (uri (cran-uri "fdrtool" version))
5552 (sha256
5553 (base32
5554 "1aap4k1l3a9m43374xq688mqnzkgqx8l021li262r3h1xr4adpp7"))))
5555 (build-system r-build-system)
5556 (home-page "http://strimmerlab.org/software/fdrtool/")
5557 (synopsis "Estimation of false discovery rates and higher criticism")
5558 (description
5559 "This package provides tools to estimate tail area-based false discovery
5560 rates as well as local false discovery rates for a variety of null
5561 models (p-values, z-scores, correlation coefficients, t-scores). The
5562 proportion of null values and the parameters of the null distribution are
5563 adaptively estimated from the data. In addition, the package contains
5564 functions for non-parametric density estimation (Grenander estimator), for
5565 monotone regression (isotonic regression and antitonic regression with
5566 weights), for computing the @dfn{greatest convex minorant} (GCM) and the
5567 @dfn{least concave majorant} (LCM), for the half-normal and correlation
5568 distributions, and for computing empirical @dfn{higher criticism} (HC) scores
5569 and the corresponding decision threshold.")
5570 (license license:gpl3+)))
5571
5572 (define-public r-forcats
5573 (package
5574 (name "r-forcats")
5575 (version "0.5.1")
5576 (source
5577 (origin
5578 (method url-fetch)
5579 (uri (cran-uri "forcats" version))
5580 (sha256
5581 (base32
5582 "12d2nv2w15085jscgidmjdnr1ryymciflcmal6ldmgp2fkl9dyy4"))))
5583 (build-system r-build-system)
5584 (propagated-inputs
5585 `(("r-ellipsis" ,r-ellipsis)
5586 ("r-magrittr" ,r-magrittr)
5587 ("r-tibble" ,r-tibble)
5588 ("r-rlang" ,r-rlang)))
5589 (native-inputs
5590 `(("r-knitr" ,r-knitr)))
5591 (home-page "https://forcats.tidyverse.org")
5592 (synopsis "Tools for working with factors")
5593 (description "This package provides helpers for reordering factor
5594 levels (including moving specified levels to front, ordering by first
5595 appearance, reversing, and randomly shuffling), and tools for modifying factor
5596 levels (including collapsing rare levels into other, \"anonymizing\", and
5597 manually \"recoding\").")
5598 (license license:gpl3)))
5599
5600 (define-public r-tgstat
5601 (let ((changeset "4f8e60c03598f49aff6f5beeab40f2b995377e9f")
5602 (revision "1"))
5603 (package
5604 (name "r-tgstat")
5605 (version (string-append "1.0.2-" revision "." (string-take changeset 7)))
5606 (source
5607 (origin
5608 (method hg-fetch)
5609 (uri (hg-reference
5610 (url "https://bitbucket.org/tanaylab/tgstat")
5611 (changeset changeset)))
5612 (file-name (string-append name "-" version "-checkout"))
5613 (sha256
5614 (base32
5615 "0ilkkyximy77zbncm91kdfqbxf0qyndg16pd3q3p6a3xc9qcmxvn"))))
5616 (build-system r-build-system)
5617 (arguments
5618 `(#:phases
5619 (modify-phases %standard-phases
5620 (add-after 'unpack 'fix-isnan
5621 (lambda _
5622 (substitute* "src/tgstat.h"
5623 (("#define isnan ::isnan")
5624 "#define isnan std::isnan"))
5625 #t)))))
5626 (propagated-inputs
5627 `(("r-rcpp" ,r-rcpp)))
5628 (home-page "https://bitbucket.org/tanaylab/tgstat/")
5629 (synopsis "Tanay's group statistical utilities")
5630 (description
5631 "The goal of tgstat is to provide fast and efficient statistical
5632 tools.")
5633 (license license:gpl2))))
5634
5635 (define-public r-tgconfig
5636 (let ((changeset "1e02c7614713bd0866c46f0c679a058f8c6d627e")
5637 (revision "1"))
5638 (package
5639 (name "r-tgconfig")
5640 (version (string-append "0.0.0.9000-" revision "." (string-take changeset 7)))
5641 (source
5642 (origin
5643 (method hg-fetch)
5644 (uri (hg-reference
5645 (url "https://bitbucket.org/tanaylab/tgconfig")
5646 (changeset changeset)))
5647 (file-name (string-append name "-" version "-checkout"))
5648 (sha256
5649 (base32
5650 "0xy6c7s7mn1yx191154bwbv1bl424bnvc80syqpl1vdl28ba46rj"))))
5651 (build-system r-build-system)
5652 (propagated-inputs
5653 `(("r-yaml" ,r-yaml)))
5654 (home-page "https://bitbucket.org/tanaylab/tgconfig/")
5655 (synopsis "Infrastructure for managing package parameters")
5656 (description
5657 "The goal of tgconfig is to provide infrastructure for managing package
5658 parameters.")
5659 (license license:gpl3))))
5660
5661 (define-public r-catterplots
5662 (let ((commit "ae17cd5e49ddda4ecfe0eba8a4c21df8c88e72c4")
5663 (revision "3"))
5664 (package
5665 (name "r-catterplots")
5666 (version (git-version "0" revision commit))
5667 (source (origin
5668 (method git-fetch)
5669 (uri (git-reference
5670 (url "https://github.com/Gibbsdavidl/CatterPlots")
5671 (commit commit)))
5672 (file-name (git-file-name name version))
5673 (sha256
5674 (base32
5675 "0qa8liylffpxgdg8xcgjar5dsvczqhn3akd4w35113hnyg1m4xyg"))))
5676 (build-system r-build-system)
5677 (propagated-inputs
5678 `(("r-png" ,r-png)))
5679 (home-page "https://github.com/Gibbsdavidl/CatterPlots")
5680 (synopsis "Scatter plots with cat shaped points")
5681 (description "Did you ever wish you could make scatter plots with cat
5682 shaped points? Now you can!")
5683 (license license:asl2.0))))
5684
5685 (define-public r-colorout
5686 (package
5687 (name "r-colorout")
5688 (version "1.2-2")
5689 (source
5690 (origin
5691 (method git-fetch)
5692 (uri (git-reference
5693 (url "https://github.com/jalvesaq/colorout")
5694 (commit (string-append "v" version))))
5695 (file-name (git-file-name name version))
5696 (sha256
5697 (base32 "1rsx69wjpa73c6x2hacvvvbzdzxn7wg06gizf97kasjdlb7azmp3"))))
5698 (build-system r-build-system)
5699 (home-page "https://github.com/jalvesaq/colorout")
5700 (synopsis "Colorize output in the R REPL")
5701 (description "@code{colorout} is an R package that colorizes R output when
5702 running in terminal emulator.
5703
5704 R STDOUT is parsed and numbers, negative numbers, dates in the standard
5705 format, strings, and R constants are identified and wrapped by special ANSI
5706 scape codes that are interpreted by terminal emulators as commands to colorize
5707 the output. R STDERR is also parsed to identify the expressions warning and
5708 error and their translations to many languages. If these expressions are
5709 found, the output is colorized accordingly; otherwise, it is colorized as
5710 STDERROR (blue, by default).
5711
5712 You can customize the colors according to your taste, guided by the color
5713 table made by the command @code{show256Colors()}. You can also set the colors
5714 to any arbitrary string. In this case, it is up to you to set valid values.")
5715 (license license:gpl3+)))
5716
5717 (define-public python-rpy2
5718 (package
5719 (name "python-rpy2")
5720 (version "3.3.5")
5721 (source
5722 (origin
5723 (method url-fetch)
5724 (uri (pypi-uri "rpy2" version))
5725 (sha256
5726 (base32
5727 "1bs36rds5fq8821l5q85q2b25161rs9ppw5c26x0hjwj487gpcfj"))
5728 ;; These patches should be removed with the next release.
5729 (patches
5730 (list
5731 (origin
5732 (method url-fetch)
5733 (uri "https://github.com/rpy2/rpy2/commit/04c57598f00145d868ea8da31ac1b1e7c49f7570.patch")
5734 (file-name "python-rpy2-fix-test-failure.patch")
5735 (sha256
5736 (base32
5737 "1lqd3yxjfx1rxrybcmnapy0r6ambg9myrb98q4nlfhpxanwfdbbh")))
5738 (origin
5739 (method url-fetch)
5740 (uri "https://github.com/rpy2/rpy2/commit/685f67d0a6b47ea80e718116a10755019446aef7.patch")
5741 (file-name "python-rpy2-r-console-test-fix.patch")
5742 (sha256
5743 (base32
5744 "18wpvfaa4c13d44cb4sw88c3c7403xdy5m8h82wfq8fjmcq3cmzn")))))))
5745 (build-system python-build-system)
5746 (arguments
5747 '(#:modules ((ice-9 ftw)
5748 (srfi srfi-1)
5749 (srfi srfi-26)
5750 (guix build utils)
5751 (guix build python-build-system))
5752 #:phases
5753 (modify-phases %standard-phases
5754 (replace 'check
5755 (lambda* (#:key outputs inputs #:allow-other-keys)
5756 (let ((cwd (getcwd)))
5757 (setenv "TZ" "UTC")
5758 (setenv "PYTHONPATH"
5759 (string-append cwd "/build/"
5760 (find (cut string-prefix? "lib" <>)
5761 (scandir (string-append cwd "/build")))
5762 ":"
5763 (getenv "PYTHONPATH"))))
5764 ;; test_vector_complex has issues when run in our environment.
5765 (invoke "pytest" "-v" "rpy2/tests/" "-k" "not test_vector_complex"))))))
5766 (propagated-inputs
5767 `(("python-cffi" ,python-cffi)
5768 ("python-six" ,python-six)
5769 ("python-jinja2" ,python-jinja2)
5770 ("python-numpy" ,python-numpy)
5771 ("python-pandas" ,python-pandas)
5772 ("python-pytz" ,python-pytz)
5773 ("python-ipython" ,python-ipython)
5774 ("python-tzlocal" ,python-tzlocal)))
5775 (inputs
5776 `(("readline" ,readline)
5777 ("icu4c" ,icu4c)
5778 ("pcre" ,pcre)
5779 ("r-minimal" ,r-minimal)
5780 ("r-survival" ,r-survival)
5781 ("r-ggplot2" ,r-ggplot2)
5782 ("r-rsqlite" ,r-rsqlite)
5783 ("r-dplyr" ,r-dplyr)
5784 ("r-dbplyr" ,r-dbplyr)
5785 ("python-numpy" ,python-numpy)))
5786 (native-inputs
5787 `(("zlib" ,zlib)
5788 ("python-pytest" ,python-pytest)))
5789 (home-page "https://rpy2.github.io")
5790 (synopsis "Python interface to the R language")
5791 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
5792 low-level interface to R from Python, a proposed high-level interface,
5793 including wrappers to graphical libraries, as well as R-like structures and
5794 functions.")
5795 ;; Any of these licenses can be picked for the R interface. The whole
5796 ;; project is released under GPLv2+ according to the license declaration
5797 ;; in "setup.py".
5798 (license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+))))
5799
5800 (define-public java-jdistlib
5801 (package
5802 (name "java-jdistlib")
5803 (version "0.4.5")
5804 (source (origin
5805 (method url-fetch)
5806 (uri (string-append "mirror://sourceforge/jdistlib/jdistlib-"
5807 version "-src.jar"))
5808 (sha256
5809 (base32
5810 "1pkj8aahw9ydr1isbaqrkd05nvq98ik5jwwhf3yf3rky3z869v11"))))
5811 (build-system ant-build-system)
5812 (arguments
5813 `(#:jar-name "jdistlib.jar"
5814 #:jdk ,icedtea-8
5815 #:tests? #f ; no dedicated test directory
5816 #:phases
5817 (modify-phases %standard-phases
5818 (add-after 'unpack 'fix-broken-encoding
5819 (lambda _
5820 (with-fluids ((%default-port-encoding "ISO-8859-1"))
5821 (substitute* "src/jdistlib/Beta.java"
5822 (("Scheff.+-Tukey") "Scheffe-Tukey")))
5823 #t)))))
5824 (propagated-inputs
5825 `(("java-jtransforms" ,java-jtransforms)))
5826 (native-inputs
5827 `(("java-junit" ,java-junit)))
5828 (home-page "http://jdistlib.sourceforge.net/")
5829 (synopsis "Java library of statistical distributions")
5830 (description "JDistlib is the Java Statistical Distribution Library, a
5831 Java package that provides routines for various statistical distributions.")
5832 ;; The files that were translated from R code are under GPLv2+; some files
5833 ;; are under the GPLv3, which is a mistake. The author confirmed in an
5834 ;; email that this whole project should be under GPLv2+.
5835 (license license:gpl2+)))
5836
5837 (define-public emacs-ess
5838 ;; Latest release is old. This is not the latest commit either due to bug
5839 ;; reported here: <https://github.com/emacs-ess/ESS/issues/987>.
5840 (let ((commit "24da603184ce39246611dd5b8602e769d7ebd5bf")
5841 (version "18.10.2")
5842 (revision "0"))
5843 (package
5844 (name "emacs-ess")
5845 (version (git-version version revision commit))
5846 (source
5847 (origin
5848 (method git-fetch)
5849 (uri (git-reference
5850 (url "https://github.com/emacs-ess/ESS")
5851 (commit commit)))
5852 (sha256
5853 (base32 "0j98lv07nzwzd54d4dgcfz01wy5gj48m0mnirxzh5r45ik2myh1r"))
5854 (file-name (git-file-name name version))
5855 (modules '((guix build utils)))
5856 (snippet
5857 '(begin
5858 ;; Stop ESS from trying to bundle an external julia-mode.el.
5859 (substitute* "lisp/Makefile"
5860 ((" \\$\\(JULIAS)") "")
5861 (("\ttest.*julia-mode.*\\.el") ""))
5862 ;; Only build docs in info format.
5863 (substitute* "doc/Makefile"
5864 (("all : info text")
5865 "all : info")
5866 (("install: install-info install-other-docs")
5867 "install: install-info"))
5868 ;; Stop install-info from trying to update the info directory.
5869 (substitute* "doc/Makefile"
5870 ((".*/dir.*") ""))
5871 ;; Fix r-help-mode test.
5872 (substitute* "test/ess-test-r.el"
5873 (("\\(equal ess-help-object \"plot.default\")") "t"))
5874 ;; Avoid generating ess-autoloads.el twice.
5875 (substitute* "Makefile"
5876 (("all: lisp doc etc autoloads")
5877 "all: lisp doc etc"))
5878 ;; Install to correct directories.
5879 (substitute* "Makefile"
5880 (("mkdir -p \\$\\(ESSDESTDIR)")
5881 "$(MAKE) -C lisp install; $(MAKE) -C doc install")
5882 (("\\$\\(INSTALL) -R \\./\\* \\$\\(ESSDESTDIR)/")
5883 "$(MAKE) -C etc install"))
5884 #t))))
5885 (build-system gnu-build-system)
5886 (arguments
5887 (let ((base-directory "/share/emacs/site-lisp"))
5888 `(#:make-flags (list (string-append "PREFIX=" %output)
5889 (string-append "ETCDIR=" %output
5890 ,base-directory "/etc")
5891 (string-append "LISPDIR=" %output
5892 ,base-directory)
5893 (string-append "INFODIR=" %output
5894 "/share/info"))
5895 #:phases
5896 (modify-phases %standard-phases
5897 (delete 'configure)
5898 (replace 'check
5899 (lambda _ (invoke "make" "test")))))))
5900 (native-inputs
5901 `(("perl" ,perl)
5902 ("r-roxygen2" ,r-roxygen2)
5903 ("texinfo" ,texinfo)))
5904 (inputs
5905 `(("emacs" ,emacs-minimal)
5906 ("r-minimal" ,r-minimal)))
5907 (propagated-inputs
5908 `(("emacs-julia-mode" ,emacs-julia-mode)))
5909 (home-page "https://ess.r-project.org/")
5910 (synopsis "Emacs mode for statistical analysis programs")
5911 (description
5912 "Emacs Speaks Statistics (ESS) is an add-on package for GNU Emacs. It
5913 is designed to support editing of scripts and interaction with various
5914 statistical analysis programs such as R, Julia, and JAGS.")
5915 (license license:gpl3+))))
5916
5917 (define-public readstat
5918 (package
5919 (name "readstat")
5920 (version "1.1.5")
5921 (source
5922 (origin
5923 (method git-fetch)
5924 (uri (git-reference
5925 (url "https://github.com/WizardMac/ReadStat")
5926 (commit (string-append "v" version))))
5927 (file-name (git-file-name name version))
5928 (sha256
5929 (base32 "00sdmaq0qzp6kyv53fpfi6jf3iv4pd0ap0gmw3mbfip52bbnl55w"))))
5930 (build-system gnu-build-system)
5931 (native-inputs
5932 `(("autoconf" ,autoconf)
5933 ("automake" ,automake)
5934 ("gettext" ,gnu-gettext)
5935 ("libtool" ,libtool)))
5936 (inputs
5937 `(("zlib" ,zlib))) ; libz
5938 (synopsis "Convert SAS, Stata, and SPSS files")
5939 (description "Command-line tool and C library for reading files from
5940 popular stats packages like SAS, Stata and SPSS.")
5941 (home-page "https://github.com/WizardMac/ReadStat")
5942 (license license:expat)))
5943
5944 (define-public r-quantpsyc
5945 (package
5946 (name "r-quantpsyc")
5947 (version "1.5")
5948 (source
5949 (origin
5950 (method url-fetch)
5951 (uri (cran-uri "QuantPsyc" version))
5952 (sha256
5953 (base32
5954 "1i9bh88r8zxndzjqsj14qw64gnvm5a9kvhjhzk3qsrvl3qzjgh93"))))
5955 (properties `((upstream-name . "QuantPsyc")))
5956 (build-system r-build-system)
5957 (propagated-inputs
5958 `(("r-boot" ,r-boot) ("r-mass" ,r-mass)))
5959 (home-page "https://cran.r-project.org/web/packages/QuantPsyc/")
5960 (synopsis "Quantitative Psychology Tools")
5961 (description
5962 "Contains functions useful for data screening, testing moderation,
5963 mediation and estimating power.")
5964 (license license:gpl2+)))
5965
5966 (define-public r-clubsandwich
5967 (package
5968 (name "r-clubsandwich")
5969 (version "0.5.3")
5970 (source
5971 (origin
5972 (method url-fetch)
5973 (uri (cran-uri "clubSandwich" version))
5974 (sha256
5975 (base32
5976 "0jazgka18bb5n58d5sn94q7rc9sac82qrpl2i5b4rkx9q2pb39cn"))))
5977 (properties `((upstream-name . "clubSandwich")))
5978 (build-system r-build-system)
5979 (propagated-inputs
5980 `(("r-sandwich" ,r-sandwich)))
5981 (native-inputs `(("r-knitr" ,r-knitr)))
5982 (home-page "https://github.com/jepusto/clubSandwich")
5983 (synopsis "Cluster-Robust (Sandwich) Variance Estimators with Small-Sample
5984 Corrections")
5985 (description
5986 "Provides several cluster-robust variance estimators (i.e.,
5987 sandwich estimators) for ordinary and weighted least squares linear regression
5988 models, including the bias-reduced linearization estimator introduced by Bell
5989 and McCaffrey (2002)
5990 @url{http://www.statcan.gc.ca/pub/12-001-x/2002002/article/9058-eng.pdf} and
5991 developed further by Pustejovsky and Tipton (2017)
5992 @url{doi:10.1080/07350015.2016.1247004}. The package includes functions for estimating
5993 the variance- covariance matrix and for testing single- and multiple-
5994 contrast hypotheses based on Wald test statistics. Tests of single regression
5995 coefficients use Satterthwaite or saddle-point corrections. Tests of multiple-
5996 contrast hypotheses use an approximation to Hotelling's T-squared distribution.
5997 Methods are provided for a variety of fitted models, including @code{lm()} and
5998 @code{mlm} objects, @code{glm()}, ivreg (from package @code{AER}), @code{plm()}
5999 (from package @code{plm}), @code{gls()} and @code{lme()} (from @code{nlme}),
6000 @code{robu()} (from @code{robumeta}), and @code{rma.uni()} and @code{rma.mv()}
6001 (from @code{metafor}).")
6002 (license license:gpl3)))
6003
6004 (define-public r-puniform
6005 (package
6006 (name "r-puniform")
6007 (version "0.2.4")
6008 (source
6009 (origin
6010 (method url-fetch)
6011 (uri (cran-uri "puniform" version))
6012 (sha256
6013 (base32
6014 "0v2977y9cwjx74xk0ig745g09wn7nrcsrg4f6v315sglsm18iaa8"))))
6015 (properties `((upstream-name . "puniform")))
6016 (build-system r-build-system)
6017 (propagated-inputs
6018 `(("r-adgoftest" ,r-adgoftest)
6019 ("r-metafor" ,r-metafor)
6020 ("r-rcpp" ,r-rcpp)
6021 ("r-rcpparmadillo" ,r-rcpparmadillo)))
6022 (home-page
6023 "https://github.com/RobbievanAert/puniform")
6024 (synopsis
6025 "Meta-Analysis Methods Correcting for Publication Bias")
6026 (description
6027 "This package provides meta-analysis methods that correct for publication
6028 bias and outcome reporting bias. Four methods and a visual tool are currently
6029 included in the package.
6030
6031 @enumerate
6032 @item The p-uniform method as described in van Assen, van Aert, and Wicherts
6033 (2015) @url{doi:10.1037/met0000025} can be used for estimating the average
6034 effect size, testing the null hypothesis of no effect, and testing for
6035 publication bias using only the statistically significant effect sizes of
6036 primary studies.
6037
6038 @item The p-uniform* method as described in van Aert and van Assen (2019)
6039 @url{doi:10.31222/osf.io/zqjr9}. This method is an extension of the p-uniform
6040 method that allows for estimation of the average effect size and the
6041 between-study variance in a meta-analysis, and uses both the statistically
6042 significant and nonsignificant effect sizes.
6043
6044 @item The hybrid method as described in van Aert and van Assen (2017)
6045 @url{doi:10.3758/s13428-017-0967-6}. The hybrid method is a meta-analysis
6046 method for combining an original study and replication and while taking into
6047 account statistical significance of the original study. The p-uniform and
6048 hybrid method are based on the statistical theory that the distribution of
6049 p-values is uniform conditional on the population effect size.
6050
6051 @item
6052 The fourth method in the package is the Snapshot Bayesian Hybrid Meta-Analysis
6053 Method as described in van Aert and van Assen (2018)
6054 @url{doi:10.1371/journal.pone.0175302}. This method computes posterior
6055 probabilities for four true effect sizes (no, small, medium, and large) based
6056 on an original study and replication while taking into account publication bias
6057 in the original study. The method can also be used for computing the required
6058 sample size of the replication akin to power analysis in null hypothesis
6059 significance testing.
6060 @end enumerate
6061
6062 The meta-plot is a visual tool for meta-analysis that
6063 provides information on the primary studies in the meta-analysis, the results
6064 of the meta-analysis, and characteristics of the research on the effect under
6065 study (van Assen and others, 2020).
6066
6067 Helper functions to apply the Correcting for Outcome Reporting Bias (CORB)
6068 method to correct for outcome reporting bias in a meta-analysis (van Aert &
6069 Wicherts, 2020).")
6070 (license license:gpl2+)))
6071
6072 (define-public r-esc
6073 (package
6074 (name "r-esc")
6075 (version "0.5.1")
6076 (source
6077 (origin
6078 (method url-fetch)
6079 (uri (cran-uri "esc" version))
6080 (sha256
6081 (base32
6082 "0gns7gz55p6pha05413r3hlvd7f2v1amxkg13d197mab1ypqic7q"))))
6083 (properties `((upstream-name . "esc")))
6084 (build-system r-build-system)
6085 (home-page "https://strengejacke.github.io/esc/")
6086 (synopsis
6087 "Effect Size Computation for Meta Analysis")
6088 (description
6089 "Implementation of the web-based
6090 @url{http://www.campbellcollaboration.org/escalc/html/EffectSizeCalculator-Home.php,'Practical
6091 Meta-Analysis Effect Size Calculator'} from David B. Wilson in R. Based on the
6092 input, the effect size can be returned as standardized mean difference, Cohen's
6093 f, Hedges' g, Pearson's r or Fisher's transformation z, odds ratio or log odds,
6094 or eta squared effect size.")
6095 (license license:gpl3)))