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