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