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