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