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