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