gnu: python-statsmodels: Fix tests.
[jackhill/guix/guix.git] / gnu / packages / statistics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016 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 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 ;;;
10 ;;; This file is part of GNU Guix.
11 ;;;
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
16 ;;;
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
21 ;;;
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24
25 (define-module (gnu packages statistics)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix utils)
30 #:use-module (guix build-system gnu)
31 #:use-module (guix build-system r)
32 #:use-module (guix build-system python)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages compression)
35 #:use-module (gnu packages curl)
36 #:use-module (gnu packages gcc)
37 #:use-module (gnu packages gtk)
38 #:use-module (gnu packages gettext)
39 #:use-module (gnu packages glib)
40 #:use-module (gnu packages haskell)
41 #:use-module (gnu packages icu4c)
42 #:use-module (gnu packages image)
43 #:use-module (gnu packages java)
44 #:use-module (gnu packages maths)
45 #:use-module (gnu packages multiprecision)
46 #:use-module (gnu packages pcre)
47 #:use-module (gnu packages perl)
48 #:use-module (gnu packages pkg-config)
49 #:use-module (gnu packages python)
50 #:use-module (gnu packages readline)
51 #:use-module (gnu packages ssh)
52 #:use-module (gnu packages texinfo)
53 #:use-module (gnu packages tls)
54 #:use-module (gnu packages base)
55 #:use-module (gnu packages web)
56 #:use-module (gnu packages xml)
57 #:use-module (gnu packages xorg)
58 #:use-module (gnu packages zip)
59 #:use-module (srfi srfi-1))
60
61
62 (define-public pspp
63 (package
64 (name "pspp")
65 (version "0.10.2")
66 (source
67 (origin
68 (method url-fetch)
69 (uri (string-append "mirror://gnu/pspp/pspp-"
70 version ".tar.gz"))
71 (sha256
72 (base32
73 "1afsq0a3iij64qacczvwhk81qg0q5rfqm055y5h9ls28d6paqz7p"))))
74 (build-system gnu-build-system)
75 (inputs
76 `(("cairo" ,cairo)
77 ("gettext" ,gnu-gettext)
78 ("gsl" ,gsl)
79 ("libxml2" ,libxml2)
80 ("pango" ,pango)
81 ("readline" ,readline)
82 ("gtk" ,gtk+)
83 ("gtksourceview" ,gtksourceview)
84 ("zlib" ,zlib)))
85 (native-inputs
86 `(("glib" ,glib "bin") ;for glib-genmarshal
87 ("perl" ,perl)
88 ("pkg-config" ,pkg-config)))
89 (home-page "http://www.gnu.org/software/pspp/")
90 (synopsis "Statistical analysis")
91 (description
92 "GNU PSPP is a statistical analysis program. It can perform
93 descriptive statistics, T-tests, linear regression and non-parametric tests.
94 It features both a graphical interface as well as command-line input. PSPP
95 is designed to interoperate with Gnumeric, LibreOffice and OpenOffice. Data
96 can be imported from spreadsheets, text files and database sources and it can
97 be output in text, PostScript, PDF or HTML.")
98 (license license:gpl3+)))
99
100 (define-public r
101 (package
102 (name "r")
103 (version "3.3.0")
104 (source (origin
105 (method url-fetch)
106 (uri (string-append "mirror://cran/src/base/R-"
107 (version-prefix version 1) "/R-"
108 version ".tar.gz"))
109 (sha256
110 (base32
111 "1r0i0cqs3p0vrpiwq0zg5kbrmja9rmaijyzf9f23v6d5n5ab2mlj"))))
112 (build-system gnu-build-system)
113 (arguments
114 `(#:make-flags
115 (list (string-append "LDFLAGS=-Wl,-rpath="
116 (assoc-ref %outputs "out")
117 "/lib/R/lib"))
118 #:phases
119 (modify-phases %standard-phases
120 (add-before
121 'configure 'set-default-pager
122 ;; Set default pager to "cat", because otherwise it is "false",
123 ;; making "help()" print nothing at all.
124 (lambda _ (setenv "PAGER" "cat") #t))
125 (add-before 'check 'set-timezone
126 ;; Some tests require the timezone to be set.
127 (lambda* (#:key inputs #:allow-other-keys)
128 (setenv "TZ" "UTC")
129 (setenv "TZDIR"
130 (string-append (assoc-ref inputs "tzdata")
131 "/share/zoneinfo"))
132 #t))
133 (add-after 'build 'make-info
134 (lambda _ (zero? (system* "make" "info"))))
135 (add-after 'build 'install-info
136 (lambda _ (zero? (system* "make" "install-info")))))
137 #:configure-flags
138 '("--with-cairo"
139 "--with-libpng"
140 "--with-jpeglib"
141 "--with-libtiff"
142 "--with-ICU"
143 "--enable-R-shlib"
144 "--enable-BLAS-shlib"
145 "--with-system-zlib"
146 "--with-system-bzlib"
147 "--with-system-pcre"
148 "--with-system-tre"
149 "--with-system-xz")))
150 ;; R has some support for Java. When the JDK is available at configure
151 ;; time environment variables pointing to the JDK will be recorded under
152 ;; $R_HOME/etc and ./tools/getsp.java will be compiled which is used by "R
153 ;; CMD javareconf". "R CMD javareconf" appears to only be used to update
154 ;; the recorded environment variables in $R_HOME/etc. Refer to
155 ;; https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
156 ;; for additional information.
157
158 ;; As the JDK is a rather large input with only very limited effects on R,
159 ;; we decided to drop it.
160 (native-inputs
161 `(("bzip2" ,bzip2)
162 ("perl" ,perl)
163 ("pkg-config" ,pkg-config)
164 ("texinfo" ,texinfo) ; for building HTML manuals
165 ("which" ,which) ; for tests/Examples/base-Ex.R
166 ("xz" ,xz)))
167 (inputs
168 `(;; We need not only cairo here, but pango to ensure that tests for the
169 ;; "cairo" bitmapType plotting backend succeed.
170 ("pango" ,pango)
171 ("curl" ,curl)
172 ("tzdata" ,tzdata)
173 ("gfortran" ,gfortran)
174 ("icu4c" ,icu4c)
175 ("libjpeg" ,libjpeg)
176 ("libpng" ,libpng)
177 ("libtiff" ,libtiff)
178 ("libxt" ,libxt)
179 ("pcre" ,pcre)
180 ("readline" ,readline)
181 ("zlib" ,zlib)))
182 (native-search-paths
183 (list (search-path-specification
184 (variable "R_LIBS_SITE")
185 (files (list "site-library/")))))
186 (home-page "http://www.r-project.org/")
187 (synopsis "Environment for statistical computing and graphics")
188 (description
189 "R is a language and environment for statistical computing and graphics.
190 It provides a variety of statistical techniques, such as linear and nonlinear
191 modeling, classical statistical tests, time-series analysis, classification
192 and clustering. It also provides robust support for producing
193 publication-quality data plots. A large amount of 3rd-party packages are
194 available, greatly increasing its breadth and scope.")
195 (license license:gpl3+)))
196
197 (define-public r-colorspace
198 (package
199 (name "r-colorspace")
200 (version "1.2-6")
201 (source
202 (origin
203 (method url-fetch)
204 (uri (cran-uri "colorspace" version))
205 (sha256
206 (base32 "0y8n4ljwhbdvkysdwgqzcnpv107pb3px1jip3k6svv86p72nacds"))))
207 (build-system r-build-system)
208 (home-page "http://cran.r-project.org/web/packages/colorspace")
209 (synopsis "Color space manipulation")
210 (description
211 "This package carries out a mapping between assorted color spaces
212 including RGB, HSV, HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar
213 CIELAB. Qualitative, sequential, and diverging color palettes based on HCL
214 colors are provided.")
215 (license license:bsd-3)))
216
217 (define-public r-dichromat
218 (package
219 (name "r-dichromat")
220 (version "2.0-0")
221 (source
222 (origin
223 (method url-fetch)
224 (uri (cran-uri "dichromat" version))
225 (sha256
226 (base32 "1l8db1nk29ccqg3mkbafvfiw0775iq4gapysf88xq2zp6spiw59i"))))
227 (build-system r-build-system)
228 (home-page "http://cran.r-project.org/web/packages/dichromat")
229 (synopsis "Color schemes for dichromats")
230 (description
231 "Dichromat collapses red-green or green-blue distinctions to simulate the
232 effects of different types of color-blindness.")
233 (license license:gpl2+)))
234
235 (define-public r-digest
236 (package
237 (name "r-digest")
238 (version "0.6.9")
239 (source
240 (origin
241 (method url-fetch)
242 (uri (cran-uri "digest" version))
243 (sha256
244 (base32 "0ixy1mb7kfl20lkckqiilpw03g1ip4ibihs03gicz7w625hc7zcm"))))
245 (build-system r-build-system)
246 ;; Vignettes require r-knitr, which requires r-digest, so we have to
247 ;; disable them and the tests.
248 (arguments
249 `(#:tests? #f
250 #:configure-flags (list "--no-build-vignettes")))
251 (home-page "http://dirk.eddelbuettel.com/code/digest.html")
252 (synopsis "Create cryptographic hash digests of R objects")
253 (description
254 "This package contains an implementation of a function 'digest()' for the
255 creation of hash digests of arbitrary R objects (using the md5, sha-1,
256 sha-256, crc32, xxhash and murmurhash algorithms) permitting easy comparison
257 of R language objects, as well as a function 'hmac()' to create hash-based
258 message authentication code.
259
260 Please note that this package is not meant to be deployed for cryptographic
261 purposes for which more comprehensive (and widely tested) libraries such as
262 OpenSSL should be used.")
263 (license license:gpl2+)))
264
265 (define-public r-estimability
266 (package
267 (name "r-estimability")
268 (version "1.1-1")
269 (source (origin
270 (method url-fetch)
271 (uri (cran-uri "estimability" version))
272 (sha256
273 (base32
274 "049adh8i0ad0m0qln2ylqdxcs5v2q9zfignn2a50r5f93ip2ay6w"))))
275 (build-system r-build-system)
276 (home-page "http://cran.r-project.org/web/packages/estimability")
277 (synopsis "Tools for assessing estimability of linear predictions")
278 (description "Provides tools for determining estimability of linear
279 functions of regression coefficients, and 'epredict' methods that handle
280 non-estimable cases correctly.")
281 (license license:gpl2+)))
282
283 (define-public r-gtable
284 (package
285 (name "r-gtable")
286 (version "0.1.2")
287 (source
288 (origin
289 (method url-fetch)
290 (uri (cran-uri "gtable" version))
291 (sha256
292 (base32 "0k9hfj6r5y238gqh92s3cbdn34biczx3zfh79ix5xq0c5vkai2xh"))))
293 (build-system r-build-system)
294 (home-page "https://cran.r-project.org/web/packages/gtable")
295 (synopsis "R library to arrange grobs in tables")
296 (description
297 "Gtable is a collection of tools to make it easier to work with
298 \"tables\" of grobs.")
299 (license license:gpl2+)))
300
301 (define-public r-labeling
302 (package
303 (name "r-labeling")
304 (version "0.3")
305 (source
306 (origin
307 (method url-fetch)
308 (uri (cran-uri "labeling" version))
309 (sha256
310 (base32 "13sk7zrrrzry6ky1bp8mmnzcl9jhvkig8j4id9nny7z993mnk00d"))))
311 (build-system r-build-system)
312 (home-page "http://cran.r-project.org/web/packages/labeling")
313 (synopsis "Axis labeling algorithms")
314 (description "The labeling package provides a range of axis labeling
315 algorithms.")
316 (license license:expat)))
317
318 (define-public r-magrittr
319 (package
320 (name "r-magrittr")
321 (version "1.5")
322 (source
323 (origin
324 (method url-fetch)
325 (uri (cran-uri "magrittr" version))
326 (sha256
327 (base32 "1s1ar6rag8m277qcqmdp02gn4awn9bdj9ax0r8s32i59mm1mki05"))))
328 (build-system r-build-system)
329 (home-page "http://cran.r-project.org/web/packages/magrittr/index.html")
330 (synopsis "A forward-pipe operator for R")
331 (description
332 "Magrittr provides a mechanism for chaining commands with a new
333 forward-pipe operator, %>%. This operator will forward a value, or the result
334 of an expression, into the next function call/expression. There is flexible
335 support for the type of right-hand side expressions. For more information,
336 see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"")
337 (license license:expat)))
338
339 (define-public r-munsell
340 (package
341 (name "r-munsell")
342 (version "0.4.3")
343 (source
344 (origin
345 (method url-fetch)
346 (uri (cran-uri "munsell" version))
347 (sha256
348 (base32 "0jdxlbjslkzaqgp058da1cgm85qvqi09wpcgpvp4hvwnmy83qz1r"))))
349 (build-system r-build-system)
350 (propagated-inputs
351 `(("r-colorspace" ,r-colorspace)))
352 (home-page "http://cran.r-project.org/web/packages/munsell")
353 (synopsis "Munsell colour system")
354 (description
355 "The Munsell package contains Functions for exploring and using the
356 Munsell colour system.")
357 (license license:expat)))
358
359 (define-public r-rcpp
360 (package
361 (name "r-rcpp")
362 (version "0.12.5")
363 (source
364 (origin
365 (method url-fetch)
366 (uri (cran-uri "Rcpp" version))
367 (sha256
368 (base32 "1vw0zbd6zhqixqg7h8ahn1dr1hb492365x419nrp2lhvr60r8i0k"))))
369 (build-system r-build-system)
370 (home-page "http://www.rcpp.org")
371 (synopsis "Seamless R and C++ Integration")
372 (description
373 "The Rcpp package provides R functions as well as C++ classes which offer
374 a seamless integration of R and C++. Many R data types and objects can be
375 mapped back and forth to C++ equivalents which facilitates both writing of new
376 code as well as easier integration of third-party libraries. Documentation
377 about Rcpp is provided by several vignettes included in this package, via the
378 'Rcpp Gallery' site at <http://gallery.rcpp.org>, the paper by Eddelbuettel
379 and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer); see
380 'citation(\"Rcpp\")' for details on these last two.")
381 (license license:gpl2+)))
382
383 (define-public r-mgcv
384 (package
385 (name "r-mgcv")
386 (version "1.8-12")
387 (source
388 (origin
389 (method url-fetch)
390 (uri (cran-uri "mgcv" version))
391 (sha256
392 (base32
393 "1khzy36nn6xbnzqfc2953ng0sv8w91mns1ymhibaqn1150x1qid0"))))
394 (build-system r-build-system)
395 (home-page "http://cran.r-project.org/web/packages/mgcv")
396 (synopsis "Mixed generalised additive model computation")
397 (description
398 "GAMs, GAMMs and other generalized ridge regression with multiple smoothing
399 parameter estimation by GCV, REML or UBRE/AIC. The library includes a
400 @code{gam()} function, a wide variety of smoothers, JAGS support and
401 distributions beyond the exponential family.")
402 (license license:gpl2+)))
403
404 (define-public r-permute
405 (package
406 (name "r-permute")
407 (version "0.9-0")
408 (source
409 (origin
410 (method url-fetch)
411 (uri (cran-uri "permute" version))
412 (sha256
413 (base32
414 "0w68cqw6s4pixix8bh1qzsy1pm64jqh1cjznw74h82ygp8sj7p73"))))
415 (build-system r-build-system)
416 ;; Tests do not run correctly, but running them properly would entail a
417 ;; circular dependency with vegan.
418 (home-page "https://github.com/gavinsimpson/permute")
419 (synopsis "Functions for Generating Restricted Permutations of Data")
420 (description
421 "This package provides a set of restricted permutation designs for freely
422 exchangeable, line transects (time series), spatial grid designs and permutation
423 of blocks (groups of samples). @code{permute} also allows split-plot designs,
424 in which the whole-plots or split-plots or both can be freely exchangeable.")
425 (license license:gpl2+)))
426
427 (define-public r-plyr
428 (package
429 (name "r-plyr")
430 (version "1.8.3")
431 (source
432 (origin
433 (method url-fetch)
434 (uri (cran-uri "plyr" version))
435 (sha256
436 (base32 "06v4zxawpjz37rp2q2ii5q43g664z9s29j4ydn0cz3crn7lzl6pk"))))
437 (build-system r-build-system)
438 (native-inputs `(("r-rcpp" ,r-rcpp)))
439 (home-page "http://had.co.nz/plyr")
440 (synopsis "Tools for Splitting, Applying and Combining Data")
441 (description
442 "Plyr is a set of tools that solves a common set of problems: you need to
443 break a big problem down into manageable pieces, operate on each piece and
444 then put all the pieces back together. For example, you might want to fit a
445 model to each spatial location or time point in your study, summarise data by
446 panels or collapse high-dimensional arrays to simpler summary statistics.")
447 (license license:expat)))
448
449 (define-public r-proto
450 (package
451 (name "r-proto")
452 (version "0.3-10")
453 (source
454 (origin
455 (method url-fetch)
456 (uri (cran-uri "proto" version))
457 (sha256
458 (base32 "03mvzi529y6kjcp9bkpk7zlgpcakb3iz73hca6rpjy14pyzl3nfh"))))
459 (build-system r-build-system)
460 (home-page "http://r-proto.googlecode.com")
461 (synopsis "Prototype object-based programming")
462 (description
463 "Proto is an object oriented system using object-based, also called
464 prototype-based, rather than class-based object oriented ideas.")
465 (license license:gpl2+)))
466
467 (define-public r-rcolorbrewer
468 (package
469 (name "r-rcolorbrewer")
470 (version "1.1-2")
471 (source
472 (origin
473 (method url-fetch)
474 (uri (cran-uri "RColorBrewer" version))
475 (sha256
476 (base32 "1pfcl8z1pnsssfaaz9dvdckyfnnc6rcq56dhislbf571hhg7isgk"))))
477 (build-system r-build-system)
478 (home-page "http://cran.r-project.org/web/packages/RColorBrewer")
479 (synopsis "ColorBrewer palettes")
480 (description
481 "This package provides color schemes for maps (and other graphics)
482 designed by Cynthia Brewer as described at http://colorbrewer2.org")
483 ;; Includes code licensed under bsd-4
484 (license license:asl2.0)))
485
486 (define-public r-stringi
487 (package
488 (name "r-stringi")
489 (version "1.0-1")
490 (source
491 (origin
492 (method url-fetch)
493 (uri (cran-uri "stringi" version))
494 (sha256
495 (base32
496 "1ld38536sswyywp6pyys3v8vkngbk5cksrhdxp8jyr6bz7qf8j77"))))
497 (build-system r-build-system)
498 (inputs `(("icu4c" ,icu4c)))
499 (native-inputs `(("pkg-config" ,pkg-config)))
500 (home-page "http://stringi.rexamine.com/")
501 (synopsis "Character string processing facilities")
502 (description
503 "This package allows for fast, correct, consistent, portable, as well as
504 convenient character string/text processing in every locale and any native
505 encoding. Owing to the use of the ICU library, the package provides R users
506 with platform-independent functions known to Java, Perl, Python, PHP, and Ruby
507 programmers. Among available features there are: pattern searching
508 (e.g. via regular expressions), random string generation, string collation,
509 transliteration, concatenation, date-time formatting and parsing, etc.")
510 (license license:bsd-3)))
511
512 (define-public r-stringr
513 (package
514 (name "r-stringr")
515 (version "1.0.0")
516 (source
517 (origin
518 (method url-fetch)
519 (uri (cran-uri "stringr" version))
520 (sha256
521 (base32 "0jnz6r9yqyf7dschr2fnn1slg4wn6b4ik5q00j4zrh43bfw7s9pq"))))
522 (build-system r-build-system)
523 (propagated-inputs
524 `(("r-magrittr" ,r-magrittr)
525 ("r-stringi" ,r-stringi)))
526 (home-page "https://github.com/hadley/stringr")
527 (synopsis "Simple, consistent wrappers for common string operations")
528 (description
529 "Stringr is a consistent, simple and easy to use set of wrappers around
530 the fantastic 'stringi' package. All function and argument names (and
531 positions) are consistent, all functions deal with \"NA\"'s and zero length
532 vectors in the same way, and the output from one function is easy to feed into
533 the input of another.")
534 (license license:gpl2+)))
535
536 (define-public r-reshape2
537 (package
538 (name "r-reshape2")
539 (version "1.4.1")
540 (source
541 (origin
542 (method url-fetch)
543 (uri (cran-uri "reshape2" version))
544 (sha256
545 (base32 "0hl082dyk3pk07nqprpn5dvnrkqhnf6zjnjig1ijddxhlmsrzm7v"))))
546 (build-system r-build-system)
547 (propagated-inputs
548 `(("r-plyr" ,r-plyr)
549 ("r-rcpp" ,r-rcpp)
550 ("r-stringr" ,r-stringr)))
551 (home-page "https://github.com/hadley/reshape")
552 (synopsis "Flexibly reshape data: a reboot of the \"reshape\" package")
553 (description
554 "Reshape2 is an R library to flexibly restructure and aggregate data
555 using just two functions: melt and dcast (or acast).")
556 (license license:expat)))
557
558 (define-public r-scales
559 (package
560 (name "r-scales")
561 (version "0.4.0")
562 (source
563 (origin
564 (method url-fetch)
565 (uri (cran-uri "scales" version))
566 (sha256
567 (base32 "19y6q4j8vpmc73dnn4ncp5wj44gri7m77ys3z2rn3crrcc9zc7l5"))))
568 (build-system r-build-system)
569 (propagated-inputs
570 `(("r-dichromat" ,r-dichromat)
571 ("r-labeling" ,r-labeling)
572 ("r-munsell" ,r-munsell)
573 ("r-plyr" ,r-plyr)
574 ("r-rcolorbrewer" ,r-rcolorbrewer)
575 ("r-rcpp" ,r-rcpp)))
576 (home-page "https://github.com/hadley/scales")
577 (synopsis "Scale functions for visualization")
578 (description
579 "This package provides graphical scales that map data to aesthetics, and
580 provides methods for automatically determining breaks and labels for axes and
581 legends.")
582 (license license:expat)))
583
584 (define-public r-ggplot2
585 (package
586 (name "r-ggplot2")
587 (version "2.1.0")
588 (source
589 (origin
590 (method url-fetch)
591 (uri (cran-uri "ggplot2" version))
592 (sha256
593 (base32 "0s9rvp0f736ji6p9xpxq54agxf95pjkql4sj7ag0hv2xhnp27hzj"))))
594 (build-system r-build-system)
595 (propagated-inputs
596 `(("r-digest" ,r-digest)
597 ("r-gtable" ,r-gtable)
598 ("r-plyr" ,r-plyr)
599 ("r-proto" ,r-proto)
600 ("r-reshape2" ,r-reshape2)
601 ("r-scales" ,r-scales)
602 ("r-svglite" ,r-svglite)))
603 (home-page "http://ggplot2.org")
604 (synopsis "An implementation of the grammar of graphics")
605 (description
606 "Ggplot2 is an implementation of the grammar of graphics in R. It
607 combines the advantages of both base and lattice graphics: conditioning and
608 shared axes are handled automatically, and you can still build up a plot step
609 by step from multiple data sources. It also implements a sophisticated
610 multidimensional conditioning system and a consistent interface to map data to
611 aesthetic attributes.")
612 (license license:gpl2+)))
613
614 (define-public r-gdtools
615 (package
616 (name "r-gdtools")
617 (version "0.0.7")
618 (source
619 (origin
620 (method url-fetch)
621 (uri (cran-uri "gdtools" version))
622 (sha256
623 (base32
624 "1bmnf9d677f2jy8jnb9ymjz1qzm4yrd0qp6k5qrrly06jfffyx7g"))))
625 (build-system r-build-system)
626 (native-inputs
627 `(("r-rcpp" ,r-rcpp)
628 ("pkg-config" ,pkg-config)))
629 (inputs
630 `(("cairo" ,cairo)))
631 (home-page "http://cran.r-project.org/web/packages/gdtools")
632 (synopsis "Utilities for graphical rendering")
633 (description
634 "The @code{gdtools} package provides functionalities to get font metrics
635 and to generate base64 encoded string from raster matrix.")
636 (license license:gpl3)))
637
638 (define-public r-svglite
639 (package
640 (name "r-svglite")
641 (version "1.1.0")
642 (source
643 (origin
644 (method url-fetch)
645 (uri (cran-uri "svglite" version))
646 (sha256
647 (base32
648 "11ryicjglfi6jvkk4jgg5kra42qbs5z2zid7jjhlslpjcljfwc70"))))
649 (build-system r-build-system)
650 (native-inputs `(("r-rcpp" ,r-rcpp)))
651 (propagated-inputs
652 `(("r-bh" ,r-bh)
653 ("r-gdtools" ,r-gdtools)))
654 (home-page "https://github.com/hadley/svglite")
655 (synopsis "SVG graphics device")
656 (description
657 "@code{svglite} is a graphics device that produces clean
658 @dfn{SVG} (Scalable Vector Graphics) output, suitable for use on the web, or
659 hand editing. Compared to the built-in @code{svg()}, @code{svglite} is
660 considerably faster, produces smaller files, and leaves text as is.")
661 (license license:gpl2+)))
662
663 (define-public r-assertthat
664 (package
665 (name "r-assertthat")
666 (version "0.1")
667 (source (origin
668 (method url-fetch)
669 (uri (cran-uri "assertthat" version))
670 (sha256
671 (base32
672 "0dwsqajyglfscqilj843qfqn1ndbqpswa7b4l1d633qjk9d68qqk"))))
673 (build-system r-build-system)
674 (home-page "https://github.com/hadley/assertthat")
675 (synopsis "Easy pre and post assertions")
676 (description
677 "Assertthat is an extension to stopifnot() that makes it easy to declare
678 the pre and post conditions that your code should satisfy, while also
679 producing friendly error messages so that your users know what they've done
680 wrong.")
681 (license license:gpl3+)))
682
683 (define-public r-lazyeval
684 (package
685 (name "r-lazyeval")
686 (version "0.1.10")
687 (source (origin
688 (method url-fetch)
689 (uri (cran-uri "lazyeval" version))
690 (sha256
691 (base32
692 "02qfpn2fmy78vx4jxr7g7rhqzcm1kcivfwai7lbh0vvpawia0qwh"))))
693 (build-system r-build-system)
694 (home-page "https://github.com/hadley/lazyeval")
695 (synopsis "Lazy (non-standard) evaluation in R")
696 (description
697 "This package provides the tools necessary to do non-standard
698 evaluation (NSE) in R.")
699 (license license:gpl3+)))
700
701 (define-public r-dbi
702 (package
703 (name "r-dbi")
704 (version "0.4-1")
705 (source (origin
706 (method url-fetch)
707 (uri (cran-uri "DBI" version))
708 (sha256
709 (base32
710 "13n6ibmrma42qmq17qgkyjsc0ciwqf17sd7lw7w26pwpyjd4mwgg"))))
711 (build-system r-build-system)
712 (home-page "https://github.com/rstats-db/DBI")
713 (synopsis "R database interface")
714 (description
715 "The DBI package provides a database interface (DBI) definition for
716 communication between R and relational database management systems. All
717 classes in this package are virtual and need to be extended by the various
718 R/DBMS implementations.")
719 (license license:lgpl2.0+)))
720
721 (define-public r-bh
722 (package
723 (name "r-bh")
724 (version "1.60.0-2")
725 (source (origin
726 (method url-fetch)
727 (uri (cran-uri "BH" version))
728 (sha256
729 (base32
730 "136497fng9bcvrf8favpj8inz96pxdwp1rrb2k00sxjxjbgawhg4"))))
731 (build-system r-build-system)
732 (home-page "https://github.com/eddelbuettel/bh")
733 (synopsis "R package providing subset of Boost headers")
734 (description
735 "This package aims to provide the most useful subset of Boost libraries
736 for template use among CRAN packages.")
737 (license license:boost1.0)))
738
739 (define-public r-evaluate
740 (package
741 (name "r-evaluate")
742 (version "0.9")
743 (source (origin
744 (method url-fetch)
745 (uri (cran-uri "evaluate" version))
746 (sha256
747 (base32
748 "1bn6bympg9prr8d16g1g530bddii8i04hf4i2bkw0yf4dsfqq4g8"))))
749 (build-system r-build-system)
750 (propagated-inputs
751 `(("r-stringr" ,r-stringr)))
752 (home-page "https://github.com/hadley/evaluate")
753 (synopsis "Parsing and evaluation tools for R")
754 (description
755 "This package provides tools that allow you to recreate the parsing,
756 evaluation and display of R code, with enough information that you can
757 accurately recreate what happens at the command line. The tools can easily be
758 adapted for other output formats, such as HTML or LaTeX.")
759 (license license:gpl3+)))
760
761 (define-public r-formatr
762 (package
763 (name "r-formatr")
764 (version "1.4")
765 (source (origin
766 (method url-fetch)
767 (uri (cran-uri "formatR" version))
768 (sha256
769 (base32
770 "1fvynq0fj1r9grg9vvfdh5fl2riv6qki9f2rfpyvbvqq3xxpmi3f"))))
771 (build-system r-build-system)
772 (home-page "http://yihui.name/formatR")
773 (synopsis "Format R code automatically")
774 (description
775 "This package provides a function to format R source code. Spaces and
776 indent will be added to the code automatically, and comments will be preserved
777 under certain conditions, so that R code will be more human-readable and tidy.
778 There is also a Shiny app as a user interface in this package.")
779 (license license:gpl3+)))
780
781 (define-public r-highr
782 (package
783 (name "r-highr")
784 (version "0.6")
785 (source (origin
786 (method url-fetch)
787 (uri (cran-uri "highr" version))
788 (sha256
789 (base32
790 "0n9v44dxdy5fhkdmpbpa2p78whyd9z3rhhy42ipdz5m5vsr55qa3"))))
791 (build-system r-build-system)
792 (home-page "https://github.com/yihui/highr")
793 (synopsis "Syntax highlighting for R source code")
794 (description
795 "This package provides syntax highlighting for R source code. Currently
796 it supports LaTeX and HTML output. Source code of other languages is
797 supported via Andre Simon's highlight package.")
798 (license license:gpl3+)))
799
800 (define-public r-mime
801 (package
802 (name "r-mime")
803 (version "0.4")
804 (source (origin
805 (method url-fetch)
806 (uri (cran-uri "mime" version))
807 (sha256
808 (base32
809 "145cdcg252w2zsq67dmvmsqka60msfp7agymlxs3gl3ihgiwg46p"))))
810 (build-system r-build-system)
811 (home-page "https://github.com/yihui/mime")
812 (synopsis "R package to map filenames to MIME types")
813 (description
814 "This package guesses the MIME type from a filename extension using the
815 data derived from /etc/mime.types in UNIX-type systems.")
816 (license license:gpl2)))
817
818 (define-public r-markdown
819 (package
820 (name "r-markdown")
821 (version "0.7.7")
822 (source (origin
823 (method url-fetch)
824 (uri (cran-uri "markdown" version))
825 (sha256
826 (base32
827 "00j1hlib3il50azs2vlcyhi0bjpx1r50mxr9w9dl5g1bwjjc71hb"))))
828 (build-system r-build-system)
829 ;; Skip check phase because the tests require the r-knitr package to be
830 ;; installed. This prevents installation failures. Knitr normally
831 ;; shouldn't be available since r-markdown is a dependency of the r-knitr
832 ;; package.
833 (arguments `(#:tests? #f))
834 (propagated-inputs
835 `(("r-mime" ,r-mime)))
836 (home-page "https://github.com/rstudio/markdown")
837 (synopsis "Markdown rendering for R")
838 (description
839 "This package provides R bindings to the Sundown Markdown rendering
840 library (https://github.com/vmg/sundown). Markdown is a plain-text formatting
841 syntax that can be converted to XHTML or other formats.")
842 (license license:gpl2)))
843
844 (define-public r-yaml
845 (package
846 (name "r-yaml")
847 (version "2.1.13")
848 (source (origin
849 (method url-fetch)
850 (uri (cran-uri "yaml" version))
851 (sha256
852 (base32
853 "18kz5mfn7qpif5pn91w4vbrc5bkycsj85vwm5wxwzjlb02i9mxi6"))))
854 (build-system r-build-system)
855 (home-page "https://cran.r-project.org/web/packages/yaml/")
856 (synopsis "Methods to convert R data to YAML and back")
857 (description
858 "This package implements the libyaml YAML 1.1 parser and
859 emitter (http://pyyaml.org/wiki/LibYAML) for R.")
860 (license license:bsd-3)))
861
862 (define-public r-knitr
863 (package
864 (name "r-knitr")
865 (version "1.13")
866 (source (origin
867 (method url-fetch)
868 (uri (cran-uri "knitr" version))
869 (sha256
870 (base32
871 "0v69846myi4fbjp8wiik4295fhba67s3i6ccysghm6x031i2f26q"))))
872 (build-system r-build-system)
873 (propagated-inputs
874 `(("r-evaluate" ,r-evaluate)
875 ("r-digest" ,r-digest)
876 ("r-formatr" ,r-formatr)
877 ("r-highr" ,r-highr)
878 ("r-markdown" ,r-markdown)
879 ("r-stringr" ,r-stringr)
880 ("r-yaml" ,r-yaml)))
881 (home-page "http://yihui.name/knitr/")
882 (synopsis "General-purpose package for dynamic report generation in R")
883 (description
884 "This package provides a general-purpose tool for dynamic report
885 generation in R using Literate Programming techniques.")
886 ;; The code is released under any version of the GPL. As it is used by
887 ;; r-markdown which is available under GPLv2 only, we have chosen GPLv2+
888 ;; here.
889 (license license:gpl2+)))
890
891 (define-public r-knitrbootstrap
892 (package
893 (name "r-knitrbootstrap")
894 (version "1.0.0")
895 (source
896 (origin
897 (method url-fetch)
898 (uri (cran-uri "knitrBootstrap" version))
899 (sha256
900 (base32
901 "0pshn2slzqwpryklslsxwh1dmqcnwv6bwi7yfm6m342wjybpk0wl"))))
902 (properties `((upstream-name . "knitrBootstrap")))
903 (build-system r-build-system)
904 (propagated-inputs
905 `(("r-knitr" ,r-knitr)
906 ("r-rmarkdown" ,r-rmarkdown)))
907 (home-page "https://github.com/jimhester/knitrBootstrap")
908 (synopsis "Knitr bootstrap framework")
909 (description
910 "This package provides a framework to create Bootstrap 3 HTML reports
911 from knitr Rmarkdown.")
912 (license license:expat)))
913
914 (define-public r-microbenchmark
915 (package
916 (name "r-microbenchmark")
917 (version "1.4-2.1")
918 (source (origin
919 (method url-fetch)
920 (uri (cran-uri "microbenchmark" version))
921 (sha256
922 (base32
923 "0qn5r1a6qidghcisc2hpbdmj62pnixc3zz6p4ipk8mvakf0hdsvg"))))
924 (build-system r-build-system)
925 (propagated-inputs
926 `(("r-ggplot2" ,r-ggplot2)))
927 (home-page "https://cran.r-project.org/web/packages/microbenchmark/")
928 (synopsis "Accurate timing functions for R")
929 (description
930 "This package provides infrastructure to accurately measure and compare
931 the execution time of R expressions.")
932 (license license:bsd-2)))
933
934 (define-public r-codetools
935 (package
936 (name "r-codetools")
937 (version "0.2-14")
938 (source (origin
939 (method url-fetch)
940 (uri (cran-uri "codetools" version))
941 (sha256
942 (base32
943 "0y9r4m2b8xgavr89sc179knzwpz54xljbc1dinpq2q07i4xn0397"))))
944 (build-system r-build-system)
945 (home-page "https://cran.r-project.org/web/packages/codetools/index.html")
946 (synopsis "Code analysis tools for R")
947 (description "This package provides code analysis tools for R.")
948 (license license:gpl3+)))
949
950 (define-public r-pryr
951 (package
952 (name "r-pryr")
953 (version "0.1.2")
954 (source (origin
955 (method url-fetch)
956 (uri (cran-uri "pryr" version))
957 (sha256
958 (base32
959 "1in350a8hxwf580afavasvn3jc7x2p1b7nlwmj1scakfz74vghk5"))))
960 (build-system r-build-system)
961 (propagated-inputs
962 `(("r-stringr" ,r-stringr)
963 ("r-codetools" ,r-codetools)))
964 (native-inputs
965 `(("r-rcpp" ,r-rcpp)))
966 (home-page "https://github.com/hadley/pryr")
967 (synopsis "Tools for computing on the R language")
968 (description
969 "This package provides useful tools to pry back the covers of R and
970 understand the language at a deeper level.")
971 (license license:gpl2)))
972
973 (define-public r-memoise
974 (package
975 (name "r-memoise")
976 (version "1.0.0")
977 (source (origin
978 (method url-fetch)
979 (uri (cran-uri "memoise" version))
980 (sha256
981 (base32
982 "0sq2dhpvxy17v1baj256r0jnygdy3m5a8x4zh6vhv29957qnq6zx"))))
983 (build-system r-build-system)
984 (propagated-inputs
985 `(("r-digest" ,r-digest)))
986 (home-page "http://github.com/hadley/memoise")
987 (synopsis "Memoise functions for R")
988 (description
989 "This R package allows to cache the results of a function so that when
990 you call it again with the same arguments it returns the pre-computed value.")
991 (license license:expat)))
992
993 (define-public r-crayon
994 (package
995 (name "r-crayon")
996 (version "1.3.1")
997 (source (origin
998 (method url-fetch)
999 (uri (cran-uri "crayon" version))
1000 (sha256
1001 (base32
1002 "0d38fm06h272a8iqlc0d45m2rh36giwqw7mwq4z8hkp4vs975fmm"))))
1003 (build-system r-build-system)
1004 (propagated-inputs
1005 `(("r-memoise" ,r-memoise)))
1006 (home-page "https://github.com/gaborcsardi/crayon")
1007 (synopsis "Colored terminal output for R")
1008 (description
1009 "Colored terminal output on terminals that support ANSI color and
1010 highlight codes. It also works in Emacs ESS. ANSI color support is
1011 automatically detected. Colors and highlighting can be combined and nested.
1012 New styles can also be created easily. This package was inspired by the
1013 \"chalk\" JavaScript project.")
1014 (license license:expat)))
1015
1016 (define-public r-praise
1017 (package
1018 (name "r-praise")
1019 (version "1.0.0")
1020 (source
1021 (origin
1022 (method url-fetch)
1023 (uri (cran-uri "praise" version))
1024 (sha256
1025 (base32
1026 "1gfyypnvmih97p2r0php9qa39grzqpsdbq5g0fdsbpq5zms5w0sw"))))
1027 (build-system r-build-system)
1028 (home-page "https://github.com/gaborcsardi/praise")
1029 (synopsis "Functions to praise users")
1030 (description
1031 "This package provides template functions to assist in building friendly
1032 R packages that praise their users.")
1033 (license license:expat)))
1034
1035 (define-public r-testthat
1036 (package
1037 (name "r-testthat")
1038 (version "1.0.2")
1039 (source (origin
1040 (method url-fetch)
1041 (uri (cran-uri "testthat" version))
1042 (sha256
1043 (base32
1044 "0pj1r01x4ny4capr83dfa19hi5i2sjjxky99schzip8zrq5dzxqf"))))
1045 (build-system r-build-system)
1046 (propagated-inputs
1047 `(("r-digest" ,r-digest)
1048 ("r-crayon" ,r-crayon)
1049 ("r-magrittr" ,r-magrittr)
1050 ("r-praise" ,r-praise)
1051 ("r-r6" ,r-r6)))
1052 (home-page "https://github.com/hadley/testthat")
1053 (synopsis "Unit testing for R")
1054 (description
1055 "This package provides a unit testing system for R designed to be fun,
1056 flexible and easy to set up.")
1057 (license license:expat)))
1058
1059 (define-public r-r6
1060 (package
1061 (name "r-r6")
1062 (version "2.1.2")
1063 (source (origin
1064 (method url-fetch)
1065 (uri (cran-uri "R6" version))
1066 (sha256
1067 (base32
1068 "0yad91i9p4r8bbz6nq8zny39y767n9an7ak5p275ynx8km6v3yqv"))))
1069 (build-system r-build-system)
1070 (home-page "https://github.com/wch/R6/")
1071 (synopsis "Classes with reference semantics in R")
1072 (description
1073 "The R6 package allows the creation of classes with reference semantics,
1074 similar to R's built-in reference classes. Compared to reference classes, R6
1075 classes are simpler and lighter-weight, and they are not built on S4 classes
1076 so they do not require the methods package. These classes allow public and
1077 private members, and they support inheritance, even when the classes are
1078 defined in different packages.")
1079 (license license:expat)))
1080
1081 (define-public r-dplyr
1082 (package
1083 (name "r-dplyr")
1084 (version "0.4.3")
1085 (source (origin
1086 (method url-fetch)
1087 (uri (cran-uri "dplyr" version))
1088 (sha256
1089 (base32
1090 "1p8rbn4p4yrx2840dapwiahf9iqa8gnvd35nyc200wfhmrxlqdlc"))))
1091 (build-system r-build-system)
1092 (propagated-inputs
1093 `(("r-assertthat" ,r-assertthat)
1094 ("r-r6" ,r-r6)
1095 ("r-magrittr" ,r-magrittr)
1096 ("r-lazyeval" ,r-lazyeval)
1097 ("r-dbi" ,r-dbi)))
1098 (native-inputs
1099 `(("r-rcpp" ,r-rcpp)
1100 ("r-bh" ,r-bh)))
1101 (home-page "https://github.com/hadley/dplyr")
1102 (synopsis "Tools for working with data frames in R")
1103 (description
1104 "dplyr is the next iteration of plyr. It is focussed on tools for
1105 working with data frames. It has three main goals: 1) identify the most
1106 important data manipulation tools needed for data analysis and make them easy
1107 to use in R; 2) provide fast performance for in-memory data by writing key
1108 pieces of code in C++; 3) use the same code interface to work with data no
1109 matter where it is stored, whether in a data frame, a data table or
1110 database.")
1111 (license license:expat)))
1112
1113 (define-public r-acepack
1114 (package
1115 (name "r-acepack")
1116 (version "1.3-3.3")
1117 (source
1118 (origin
1119 (method url-fetch)
1120 (uri (cran-uri "acepack" version))
1121 (sha256
1122 (base32
1123 "13ry3vyys12iplb14jfhmkrl9g5fxg3iijiggq4s4zb5m5436b1y"))))
1124 (build-system r-build-system)
1125 (inputs
1126 `(("gfortran" ,gfortran)))
1127 (home-page "http://cran.r-project.org/web/packages/acepack")
1128 (synopsis "Functions for regression transformations")
1129 (description
1130 "This package provides ACE and AVAS methods for choosing regression
1131 transformations.")
1132 (license license:expat)))
1133
1134 (define-public r-cluster
1135 (package
1136 (name "r-cluster")
1137 (version "2.0.4")
1138 (source
1139 (origin
1140 (method url-fetch)
1141 (uri (cran-uri "cluster" version))
1142 (sha256
1143 (base32
1144 "1r669aaaia05i8sv8hxiig1ddah7hm8qw869wgig5i0zzk22bnfl"))))
1145 (build-system r-build-system)
1146 (inputs
1147 `(("gfortran" ,gfortran)))
1148 (home-page "http://cran.r-project.org/web/packages/cluster")
1149 (synopsis "Methods for data cluster analysis")
1150 (description
1151 "This package provides tools that are useful in finding groups in data.
1152 It is based on the methods described in Kaufman and Rousseeuw (1990) \"Finding
1153 Groups in Data\".")
1154 (license license:gpl2+)))
1155
1156 (define-public r-foreign
1157 (package
1158 (name "r-foreign")
1159 (version "0.8-66")
1160 (source
1161 (origin
1162 (method url-fetch)
1163 (uri (cran-uri "foreign" version))
1164 (sha256
1165 (base32
1166 "19278jm85728zb20800w6hq9q8jy8ywdn81mgmlnxkmrr9giwh6p"))))
1167 (build-system r-build-system)
1168 (home-page "http://cran.r-project.org/web/packages/foreign")
1169 (synopsis "Read data stored by other statistics software in R")
1170 (description
1171 "This package provides functions for reading and writing data stored by
1172 some versions of Epi Info, Minitab, S, SAS, SPSS, Stata, Systat and Weka, and
1173 for reading and writing some dBase files.")
1174 (license license:gpl2+)))
1175
1176 (define-public r-formula
1177 (package
1178 (name "r-formula")
1179 (version "1.2-1")
1180 (source
1181 (origin
1182 (method url-fetch)
1183 (uri (cran-uri "Formula" version))
1184 (sha256
1185 (base32
1186 "02in5325zzrqbhlygx6s0dinj6ymw845q70y56frqacv25ayzcax"))))
1187 (properties `((upstream-name . "Formula")))
1188 (build-system r-build-system)
1189 (home-page "http://cran.r-project.org/web/packages/Formula")
1190 (synopsis "Extended model formulas")
1191 (description
1192 "This package provides a new class @code{Formula}, which extends the base
1193 class @code{formula}. It supports extended formulas with multiple parts of
1194 regressors on the right-hand side and/or multiple responses on the left-hand
1195 side.")
1196 (license (list license:gpl2+ license:gpl3+))))
1197
1198 (define-public r-locfit
1199 (package
1200 (name "r-locfit")
1201 (version "1.5-9.1")
1202 (source
1203 (origin
1204 (method url-fetch)
1205 (uri (cran-uri "locfit" version))
1206 (sha256
1207 (base32
1208 "0lafrmq1q7x026m92h01hc9cjjiximqqi3v1g2hw7ai9vf7i897m"))))
1209 (build-system r-build-system)
1210 (home-page "http://cran.r-project.org/web/packages/locfit")
1211 (synopsis "Local regression, likelihood and density estimation")
1212 (description
1213 "This package provides functions used for local regression, likelihood
1214 and density estimation.")
1215 (license (list license:gpl2+ license:gpl3+))))
1216
1217 (define-public r-chron
1218 (package
1219 (name "r-chron")
1220 (version "2.3-47")
1221 (source (origin
1222 (method url-fetch)
1223 (uri (cran-uri "chron" version))
1224 (sha256
1225 (base32
1226 "1xj50kk8b8mbjpszp8i0wbripb5a4b36jcscwlbyap8n4487g34s"))))
1227 (build-system r-build-system)
1228 (home-page "http://cran.r-project.org/web/packages/chron")
1229 (synopsis "Chronological R objects which can handle dates and times")
1230 (description
1231 "This package provides chronological R objects which can handle dates and
1232 times.")
1233 (license license:gpl2)))
1234
1235 (define-public r-data-table
1236 (package
1237 (name "r-data-table")
1238 (version "1.9.6")
1239 (source (origin
1240 (method url-fetch)
1241 (uri (cran-uri "data.table" version))
1242 (sha256
1243 (base32
1244 "0vi3zplpxqbg78z9ifjfs1kl2i8qhkqxr7l9ysp2663kq54w6x3g"))))
1245 (build-system r-build-system)
1246 (propagated-inputs
1247 `(("r-chron" ,r-chron)))
1248 (home-page "https://github.com/Rdatatable/data.table/wiki")
1249 (synopsis "Enhanced version of data.frame R object")
1250 (description
1251 "The R package @code{data.table} is an extension of @code{data.frame}
1252 providing functions for fast aggregation of large data (e.g. 100GB in RAM),
1253 fast ordered joins, fast add/modify/delete of columns by group, column listing
1254 and fast file reading.")
1255 (license license:gpl3+)))
1256
1257 (define-public r-xtable
1258 (package
1259 (name "r-xtable")
1260 (version "1.8-2")
1261 (source
1262 (origin
1263 (method url-fetch)
1264 (uri (cran-uri "xtable" version))
1265 (sha256
1266 (base32
1267 "0398qkpvlw3dv0myz4mjcyqwpwc2m31l127r8vdzwc71wb6s28qn"))))
1268 (build-system r-build-system)
1269 (native-inputs
1270 `(("r-knitr" ,r-knitr)))
1271 (home-page "http://xtable.r-forge.r-project.org/")
1272 (synopsis "Export R tables to LaTeX or HTML")
1273 (description
1274 "This package provides tools to export R data as LaTeX and HTML tables.")
1275 (license license:gpl2+)))
1276
1277 (define-public python-patsy
1278 (package
1279 (name "python-patsy")
1280 (version "0.4.1")
1281 (source (origin
1282 (method url-fetch)
1283 (uri (pypi-uri "patsy" version ".zip"))
1284 (sha256
1285 (base32
1286 "1m6knyq8hbqlx242y4da02j0x86j4qggs1j7q186w3jv0j0c476w"))))
1287 (build-system python-build-system)
1288 (arguments
1289 `(#:phases
1290 (modify-phases %standard-phases
1291 (replace 'check (lambda _ (zero? (system* "nosetests" "-v"))))
1292 (add-after 'unpack 'prevent-generation-of-egg-archive
1293 (lambda _
1294 (substitute* "setup.py"
1295 (("from setuptools import setup")
1296 "from distutils.core import setup"))
1297 #t)))))
1298 (propagated-inputs
1299 `(("python-numpy" ,python-numpy)
1300 ("python-scipy" ,python-scipy)
1301 ("python-six" ,python-six)))
1302 (native-inputs
1303 `(("python-nose" ,python-nose)
1304 ("unzip" ,unzip)))
1305 (home-page "https://github.com/pydata/patsy")
1306 (synopsis "Describe statistical models and build design matrices")
1307 (description
1308 "Patsy is a Python package for describing statistical models and for
1309 building design matrices.")
1310 ;; The majority of the code is distributed under BSD-2. The module
1311 ;; patsy.compat contains code derived from the Python standard library,
1312 ;; and is covered by the PSFL.
1313 (license (list license:bsd-2 license:psfl))
1314 (properties `((python2-variant . ,(delay python2-patsy))))))
1315
1316 (define-public python2-patsy
1317 (let ((patsy (package-with-python2 (strip-python2-variant python-patsy))))
1318 (package (inherit patsy)
1319 (native-inputs
1320 `(("python2-setuptools" ,python2-setuptools)
1321 ,@(package-native-inputs patsy))))))
1322
1323 (define-public python-statsmodels
1324 (package
1325 (name "python-statsmodels")
1326 (version "0.6.1")
1327 (source
1328 (origin
1329 (method url-fetch)
1330 (uri (string-append "https://pypi.python.org/packages/source/"
1331 "s/statsmodels/statsmodels-" version ".tar.gz"))
1332 (sha256
1333 (base32
1334 "0xn67sqr0cc1lmlhzm71352hrb4hw7g318p5ff5q97pc98vl8kmy"))
1335 (patches (search-patches "python-statsmodels-fix-tests.patch"))))
1336 (build-system python-build-system)
1337 (arguments
1338 `(#:phases
1339 (modify-phases %standard-phases
1340 ;; tests must be run after installation
1341 (delete 'check)
1342 (add-after 'unpack 'set-matplotlib-backend-to-agg
1343 (lambda _
1344 ;; Set the matplotlib backend to Agg to avoid problems using the
1345 ;; GTK backend without a display.
1346 (substitute* (find-files "statsmodels/graphics/tests" "\\.py")
1347 (("import matplotlib\\.pyplot as plt" line)
1348 (string-append "import matplotlib;matplotlib.use('Agg');"
1349 line)))
1350 #t))
1351 (add-after 'install 'check
1352 (lambda _
1353 (with-directory-excursion "/tmp"
1354 (zero? (system* "nosetests"
1355 "--stop"
1356 "-v" "statsmodels"))))))))
1357 (propagated-inputs
1358 `(("python-numpy" ,python-numpy)
1359 ("python-scipy" ,python-scipy)
1360 ("python-pandas" ,python-pandas)
1361 ("python-patsy" ,python-patsy)
1362 ("python-matplotlib" ,python-matplotlib)))
1363 (native-inputs
1364 `(("python-cython" ,python-cython)
1365 ("python-nose" ,python-nose)
1366 ("python-sphinx" ,python-sphinx)))
1367 (home-page "http://statsmodels.sourceforge.net/")
1368 (synopsis "Statistical modeling and econometrics in Python")
1369 (description
1370 "Statsmodels is a Python package that provides a complement to scipy for
1371 statistical computations including descriptive statistics and estimation and
1372 inference for statistical models.")
1373 (license license:bsd-3)))
1374
1375 (define-public python2-statsmodels
1376 (let ((stats (package-with-python2 python-statsmodels)))
1377 (package (inherit stats)
1378 (propagated-inputs
1379 `(("python2-pytz" ,python2-pytz)
1380 ("python2-numpy" ,python2-numpy)
1381 ("python2-scipy" ,python2-scipy)
1382 ("python2-pandas" ,python2-pandas)
1383 ("python2-patsy" ,python2-patsy)
1384 ("python2-matplotlib" ,python2-matplotlib)))
1385 (native-inputs
1386 `(("python2-setuptools" ,python2-setuptools)
1387 ,@(package-native-inputs stats))))))
1388
1389 (define-public r-coda
1390 (package
1391 (name "r-coda")
1392 (version "0.18-1")
1393 (source (origin
1394 (method url-fetch)
1395 (uri (cran-uri "coda" version))
1396 (sha256
1397 (base32
1398 "03sc780734zj2kqcm8lkyvf76fql0jbfhkblpn8l58zmb6cqi958"))))
1399 (build-system r-build-system)
1400 (propagated-inputs
1401 `(("r-lattice" ,r-lattice)))
1402 (home-page "http://cran.r-project.org/web/packages/coda")
1403 (synopsis "This is a package for Output Analysis and Diagnostics for MCMC")
1404 (description "This package provides functions for summarizing and plotting
1405 the output from Markov Chain Monte Carlo (MCMC) simulations, as well as
1406 diagnostic tests of convergence to the equilibrium distribution of the Markov
1407 chain.")
1408 (license license:gpl2+)))
1409
1410 (define-public r-ade4
1411 (package
1412 (name "r-ade4")
1413 (version "1.7-4")
1414 (source
1415 (origin
1416 (method url-fetch)
1417 (uri (cran-uri "ade4" version))
1418 (sha256
1419 (base32
1420 "17sbicash7z4b63dlrbaf8xx2pbwh62vykzvhdjs43h8jkl881y7"))))
1421 (build-system r-build-system)
1422 (home-page "http://pbil.univ-lyon1.fr/ADE-4")
1423 (synopsis "Multivariate data analysis and graphical display")
1424 (description
1425 "The ade4 package contains data analysis functions to analyze ecological
1426 and environmental data in the framework of Euclidean exploratory methods.")
1427 (license license:gpl2+)))
1428
1429 (define-public r-xml2
1430 (package
1431 (name "r-xml2")
1432 (version "0.1.2")
1433 (source
1434 (origin
1435 (method url-fetch)
1436 (uri (cran-uri "xml2" version))
1437 (sha256
1438 (base32
1439 "0jjilz36h7vbdbkpvjnja1vgjf6d1imql3z4glqn2m2b74w5qm4c"))))
1440 (build-system r-build-system)
1441 (inputs
1442 `(("libxml2" ,libxml2)))
1443 (propagated-inputs
1444 `(("r-rcpp" ,r-rcpp)
1445 ("r-bh" ,r-bh)))
1446 (home-page "https://github.com/hadley/xml2")
1447 (synopsis "Parse XML with R")
1448 (description
1449 "This package provides a simple, consistent interface to working with XML
1450 files in R. It is built on top of the libxml2 C library.")
1451 (license license:gpl2+)))
1452
1453 (define-public r-multitaper
1454 (package
1455 (name "r-multitaper")
1456 (version "1.0-11")
1457 (source
1458 (origin
1459 (method url-fetch)
1460 (uri (cran-uri "multitaper" version))
1461 (sha256
1462 (base32
1463 "1s0lmjzpyd7zmc2p1ywv5fm7qkq357p70b76gw9wjlms6d81j1n4"))))
1464 (build-system r-build-system)
1465 (native-inputs
1466 `(("gfortran" ,gfortran)))
1467 (home-page "http://github.com/wesleyburr/multitaper/")
1468 (synopsis "Multitaper spectral analysis tools")
1469 (description
1470 "This package implements multitaper spectral estimation
1471 techniques using prolate spheroidal sequences (Slepians) and sine
1472 tapers for time series analysis. It includes an adaptive weighted
1473 multitaper spectral estimate, a coherence estimate, Thomson's Harmonic
1474 F-test, and complex demodulation. The Slepians sequences are
1475 generated efficiently using a tridiagonal matrix solution, and
1476 jackknifed confidence intervals are available for most estimates.")
1477 (license license:gpl2+)))
1478
1479 (define-public r-rversions
1480 (package
1481 (name "r-rversions")
1482 (version "1.0.2")
1483 (source (origin
1484 (method url-fetch)
1485 (uri (cran-uri "rversions" version))
1486 (sha256
1487 (base32
1488 "0xmi461g1rf5ngb7r1sri798jn6icld1xq25wj9jii2ca8j8xv68"))))
1489 (build-system r-build-system)
1490 (propagated-inputs
1491 `(("r-curl" ,r-curl)
1492 ("r-xml2" ,r-xml2)))
1493 (home-page "https://github.com/metacran/rversions")
1494 (synopsis "Query R versions, including 'r-release' and 'r-oldrel'")
1495 (description
1496 "This package provides functions to query the main R repository to find
1497 the versions that @code{r-release} and @code{r-oldrel} refer to, and also all
1498 previous R versions and their release dates.")
1499 (license license:expat)))
1500
1501 (define-public r-whisker
1502 (package
1503 (name "r-whisker")
1504 (version "0.3-2")
1505 (source (origin
1506 (method url-fetch)
1507 (uri (cran-uri "whisker" version))
1508 (sha256
1509 (base32
1510 "0z4cn115gxcl086d6bnqr8afi67b6a7xqg6ivmk3l4ng1x8kcj28"))))
1511 (build-system r-build-system)
1512 (home-page "http://github.com/edwindj/whisker")
1513 (synopsis "Logicless mustache templating for R")
1514 (description
1515 "This package provides logicless templating, with a syntax that is not
1516 limited to R.")
1517 (license license:gpl3+)))
1518
1519 (define-public r-brew
1520 (package
1521 (name "r-brew")
1522 (version "1.0-6")
1523 (source (origin
1524 (method url-fetch)
1525 (uri (cran-uri "brew" version))
1526 (sha256
1527 (base32
1528 "1vghazbcha8gvkwwcdagjvzx6yl8zm7kgr0i9wxr4jng06d1l3fp"))))
1529 (build-system r-build-system)
1530 (home-page "http://cran.r-project.org/web/packages/brew")
1531 (synopsis "Templating framework for report generation")
1532 (description
1533 "The brew package implements a templating framework for mixing text and R
1534 code for report generation. The template syntax is similar to PHP, Ruby's erb
1535 module, Java Server Pages, and Python's psp module.")
1536 (license license:gpl2+)))
1537
1538 (define-public r-roxygen2
1539 (package
1540 (name "r-roxygen2")
1541 (version "5.0.1")
1542 (source (origin
1543 (method url-fetch)
1544 (uri (cran-uri "roxygen2" version))
1545 (sha256
1546 (base32
1547 "19gblyrrn29msbpawcb1hn5m1rshiqwxy0lby0vf92rm13fmsxcz"))))
1548 (build-system r-build-system)
1549 (propagated-inputs
1550 `(("r-brew" ,r-brew)
1551 ("r-digest" ,r-digest)
1552 ("r-rcpp" ,r-rcpp)
1553 ("r-stringi" ,r-stringi)
1554 ("r-stringr" ,r-stringr)))
1555 (home-page "https://github.com/klutometis/roxygen")
1556 (synopsis "In-source documentation system for R")
1557 (description
1558 "Roxygen2 is a Doxygen-like in-source documentation system for Rd,
1559 collation, and NAMESPACE files.")
1560 (license license:gpl2+)))
1561
1562 (define-public r-openssl
1563 (package
1564 (name "r-openssl")
1565 (version "0.9.3")
1566 (source
1567 (origin
1568 (method url-fetch)
1569 (uri (cran-uri "openssl" version))
1570 (sha256
1571 (base32
1572 "0ldqam7d9fyxwhr651ld6lsh05lg4v2y8ajxwzq9ywzjmfb3vlpz"))))
1573 (build-system r-build-system)
1574 (inputs
1575 `(("openssl" ,openssl)))
1576 (home-page "https://github.com/jeroenooms/openssl")
1577 (synopsis "Toolkit for encryption, signatures and certificates")
1578 (description
1579 "This package provides R bindings to OpenSSL libssl and libcrypto, plus
1580 custom SSH pubkey parsers. It supports RSA, DSA and NIST curves P-256, P-384
1581 and P-521. Cryptographic signatures can either be created and verified
1582 manually or via x509 certificates. AES block cipher is used in CBC mode for
1583 symmetric encryption; RSA for asymmetric (public key) encryption. High-level
1584 envelope functions combine RSA and AES for encrypting arbitrary sized data.
1585 Other utilities include key generators, hash functions (md5, sha1, sha256,
1586 etc), base64 encoder, a secure random number generator, and @code{bignum} math
1587 methods for manually performing crypto calculations on large multibyte
1588 integers.")
1589 (license license:expat)))
1590
1591 (define-public r-httr
1592 (package
1593 (name "r-httr")
1594 (version "1.1.0")
1595 (source (origin
1596 (method url-fetch)
1597 (uri (cran-uri "httr" version))
1598 (sha256
1599 (base32
1600 "08sq34pknsfcy8lm06nydi12mbaxpqpgb025ahr33v9d3g0wvh6p"))))
1601 (build-system r-build-system)
1602 (propagated-inputs
1603 `(("r-curl" ,r-curl)
1604 ("r-digest" ,r-digest)
1605 ("r-jsonlite" ,r-jsonlite)
1606 ("r-openssl" ,r-openssl)
1607 ("r-mime" ,r-mime)
1608 ("r-r6" ,r-r6)
1609 ("r-stringr" ,r-stringr)))
1610 (home-page "https://github.com/hadley/httr")
1611 (synopsis "Tools for working with URLs and HTTP")
1612 (description
1613 "The aim of httr is to provide a wrapper for RCurl customised to the
1614 demands of modern web APIs. It provides useful tools for working with HTTP
1615 organised by HTTP verbs (@code{GET()}, @code{POST()}, etc). Configuration
1616 functions make it easy to control additional request components.")
1617 (license license:expat)))
1618
1619 (define-public r-git2r
1620 (package
1621 (name "r-git2r")
1622 (version "0.15.0")
1623 (source (origin
1624 (method url-fetch)
1625 (uri (cran-uri "git2r" version))
1626 (sha256
1627 (base32
1628 "1rpdf85wy9fp456ypvbhl3p9whkb7kgl0n7rkqxd2bhvyzkvjak8"))))
1629 (build-system r-build-system)
1630 ;; This R package contains modified sources of libgit2. This modified
1631 ;; version of libgit2 is built as the package is built. Hence libgit2 is
1632 ;; not among the inputs of this package.
1633 (inputs
1634 `(("libssh2" ,libssh2)
1635 ("openssl" ,openssl)
1636 ("zlib" ,zlib)))
1637 (home-page "https://github.com/ropensci/git2r")
1638 (synopsis "Access Git repositories with R")
1639 (description
1640 "This package provides an R interface to the libgit2 library, which is a
1641 pure C implementation of the Git core methods.")
1642 ;; GPLv2 only with linking exception.
1643 (license license:gpl2)))
1644
1645 (define-public r-rstudioapi
1646 (package
1647 (name "r-rstudioapi")
1648 (version "0.5")
1649 (source (origin
1650 (method url-fetch)
1651 (uri (cran-uri "rstudioapi" version))
1652 (sha256
1653 (base32
1654 "0sgnqfx0m3hzh57k10s7ndrbw7yqjjjcgfikafya98jcc7wmpwym"))))
1655 (build-system r-build-system)
1656 (home-page "http://cran.r-project.org/web/packages/rstudioapi")
1657 (synopsis "Safely access the RStudio API")
1658 (description
1659 "This package provides functions to access the RStudio API and provide
1660 informative error messages when it's not available.")
1661 (license license:expat)))
1662
1663 (define-public r-devtools
1664 (package
1665 (name "r-devtools")
1666 (version "1.11.1")
1667 (source (origin
1668 (method url-fetch)
1669 (uri (cran-uri "devtools" version))
1670 (sha256
1671 (base32
1672 "0ik3l3q62sspdph613f9ik5yz36s8q5nrc50dqgn3pxzvpwpdj2i"))))
1673 (build-system r-build-system)
1674 (propagated-inputs
1675 `(("r-curl" ,r-curl)
1676 ("r-digest" ,r-digest)
1677 ("r-evaluate" ,r-evaluate)
1678 ("r-git2r" ,r-git2r)
1679 ("r-httr" ,r-httr)
1680 ("r-jsonlite" ,r-jsonlite)
1681 ("r-memoise" ,r-memoise)
1682 ("r-roxygen2" ,r-roxygen2)
1683 ("r-rstudioapi" ,r-rstudioapi)
1684 ("r-rversions" ,r-rversions)
1685 ("r-whisker" ,r-whisker)
1686 ("r-withr" ,r-withr)))
1687 (home-page "https://github.com/hadley/devtools")
1688 (synopsis "Tools to make developing R packages easier")
1689 (description "The devtools package is a collection of package development
1690 tools to simplify the devolpment of R packages.")
1691 (license license:gpl2+)))
1692
1693 (define-public r-withr
1694 (package
1695 (name "r-withr")
1696 (version "1.0.1")
1697 (source (origin
1698 (method url-fetch)
1699 (uri (cran-uri "withr" version))
1700 (sha256
1701 (base32
1702 "0zbj3rd7dc0ycknmay7y7rm1qvnh9n05jw93gjggz46j2zfmy93y"))))
1703 (build-system r-build-system)
1704 (home-page "https://github.com/jimhester/withr")
1705 (synopsis "Run code with temporarily modified global state")
1706 (description
1707 "This package provides a set of functions to run R code in an environment
1708 in which global state has been temporarily modified. Many of these functions
1709 were originally a part of the r-devtools package.")
1710 (license license:gpl2+)))
1711
1712 (define-public r-readr
1713 (package
1714 (name "r-readr")
1715 (version "0.2.2")
1716 (source (origin
1717 (method url-fetch)
1718 (uri (cran-uri "readr" version))
1719 (sha256
1720 (base32
1721 "156422xwvskynna5kjc8h1qqnn50kxgjrihl2h2b7vm9sxxdyr2m"))))
1722 (build-system r-build-system)
1723 (propagated-inputs
1724 `(("r-curl" ,r-curl)
1725 ("r-rcpp" ,r-rcpp)
1726 ("r-bh" ,r-bh)))
1727 (home-page "https://github.com/hadley/readr")
1728 (synopsis "Read tabular data")
1729 (description
1730 "This package provides functions to read flat or tabular text files from
1731 disk (or a connection).")
1732 (license license:gpl2+)))
1733
1734 (define-public r-plotrix
1735 (package
1736 (name "r-plotrix")
1737 (version "3.6-2")
1738 (source (origin
1739 (method url-fetch)
1740 (uri (cran-uri "plotrix" version))
1741 (sha256
1742 (base32
1743 "1jn1k3skmlgyvpijj6vlcn5m2zgrsdh00g1fq8n5dqs1pkl1sqrw"))))
1744 (build-system r-build-system)
1745 (home-page "http://cran.r-project.org/web/packages/plotrix")
1746 (synopsis "Various plotting functions")
1747 (description
1748 "This package provides lots of plotting, various labeling, axis and color
1749 scaling functions for R.")
1750 (license license:gpl2+)))
1751
1752 (define-public r-gridbase
1753 (package
1754 (name "r-gridbase")
1755 (version "0.4-7")
1756 (source (origin
1757 (method url-fetch)
1758 (uri (cran-uri "gridBase" version))
1759 (sha256
1760 (base32
1761 "09jzw4rzwf2y5lcz7b16mb68pn0fqigv34ff7lr6w3yi9k91i1xy"))))
1762 (build-system r-build-system)
1763 (home-page "http://cran.r-project.org/web/packages/gridBase")
1764 (synopsis "Integration of base and grid graphics")
1765 (description
1766 "This package provides an integration of base and grid graphics for R.")
1767 (license license:gpl2+)))
1768
1769 (define-public r-lattice
1770 (package
1771 (name "r-lattice")
1772 (version "0.20-33")
1773 (source (origin
1774 (method url-fetch)
1775 (uri (cran-uri "lattice" version))
1776 (sha256
1777 (base32
1778 "0car12x5vl9k180i9pc86lq3cvwqakdpqn3lgdf98k9n2h52cilg"))))
1779 (build-system r-build-system)
1780 (home-page "http://lattice.r-forge.r-project.org/")
1781 (synopsis "High-level data visualization system")
1782 (description
1783 "The lattice package provides a powerful and elegant high-level data
1784 visualization system inspired by Trellis graphics, with an emphasis on
1785 multivariate data. Lattice is sufficient for typical graphics needs, and is
1786 also flexible enough to handle most nonstandard requirements.")
1787 (license license:gpl2+)))
1788
1789 (define-public r-latticeextra
1790 (package
1791 (name "r-latticeextra")
1792 (version "0.6-28")
1793 (source
1794 (origin
1795 (method url-fetch)
1796 (uri (cran-uri "latticeExtra" version))
1797 (sha256
1798 (base32
1799 "1hkyqsa7klk5glj9y1hg3rxr5qilqw8h0017zc4c3nps7lr9a1kq"))))
1800 (properties `((upstream-name . "latticeExtra")))
1801 (build-system r-build-system)
1802 (propagated-inputs
1803 `(("r-lattice" ,r-lattice)
1804 ("r-rcolorbrewer" ,r-rcolorbrewer)))
1805 (home-page "http://latticeextra.r-forge.r-project.org/")
1806 (synopsis "Extra graphical utilities based on lattice")
1807 (description
1808 "Building on the infrastructure provided by the lattice package, this
1809 package provides several new high-level graphics functions and methods, as
1810 well as additional utilities such as panel and axis annotation functions.")
1811 (license license:gpl2+)))
1812
1813 (define-public r-rcpparmadillo
1814 (package
1815 (name "r-rcpparmadillo")
1816 (version "0.6.700.6.0")
1817 (source (origin
1818 (method url-fetch)
1819 (uri (cran-uri "RcppArmadillo" version))
1820 (sha256
1821 (base32
1822 "0x736cjg1pbvn8c6h91c88qmmz4pddvvqg88k9c9kwhn24fjrra0"))
1823 (modules '((guix build utils)))
1824 ;; Remove bundled armadillo sources
1825 (snippet
1826 '(begin
1827 (delete-file-recursively "inst/include/armadillo_bits")
1828 (delete-file "inst/include/armadillo")))))
1829 (properties `((upstream-name . "RcppArmadillo")))
1830 (build-system r-build-system)
1831 (arguments
1832 `(#:phases
1833 (modify-phases %standard-phases
1834 (add-after 'unpack 'link-against-armadillo
1835 (lambda _
1836 (substitute* "src/Makevars"
1837 (("PKG_LIBS=" prefix)
1838 (string-append prefix "-larmadillo"))))))))
1839 (propagated-inputs
1840 `(("r-rcpp" ,r-rcpp)
1841 ("armadillo" ,armadillo-for-rcpparmadillo)))
1842 (home-page "https://github.com/RcppCore/RcppArmadillo")
1843 (synopsis "Rcpp integration for the Armadillo linear algebra library")
1844 (description
1845 "Armadillo is a templated C++ linear algebra library that aims towards a
1846 good balance between speed and ease of use. Integer, floating point and
1847 complex numbers are supported, as well as a subset of trigonometric and
1848 statistics functions. Various matrix decompositions are provided through
1849 optional integration with LAPACK and ATLAS libraries. This package includes
1850 the header files from the templated Armadillo library.")
1851 ;; Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
1852 ;; bindings to Armadillo) is licensed under the GNU GPL version 2 or
1853 ;; later, as is the rest of 'Rcpp'.
1854 (license license:gpl2+)))
1855
1856 (define-public r-bitops
1857 (package
1858 (name "r-bitops")
1859 (version "1.0-6")
1860 (source (origin
1861 (method url-fetch)
1862 (uri (cran-uri "bitops" version))
1863 (sha256
1864 (base32
1865 "176nr5wpnkavn5z0yy9f7d47l37ndnn2w3gv854xav8nnybi6wwv"))))
1866 (build-system r-build-system)
1867 (home-page "http://cran.r-project.org/web/packages/bitops")
1868 (synopsis "Bitwise operations")
1869 (description
1870 "This package provides functions for bitwise operations on integer
1871 vectors.")
1872 (license license:gpl2+)))
1873
1874 (define-public r-catools
1875 (package
1876 (name "r-catools")
1877 (version "1.17.1")
1878 (source (origin
1879 (method url-fetch)
1880 (uri (cran-uri "caTools" version))
1881 (sha256
1882 (base32
1883 "1x4szsn2qmbzpyjfdaiz2q7jwhap2gky9wq0riah74q0pzz76ank"))))
1884 (properties `((upstream-name . "caTools")))
1885 (build-system r-build-system)
1886 (propagated-inputs
1887 `(("r-bitops" ,r-bitops)))
1888 (home-page "http://cran.r-project.org/web/packages/caTools")
1889 (synopsis "Various tools including functions for moving window statistics")
1890 (description
1891 "This package contains several basic utility functions including:
1892 moving (rolling, running) window statistic functions, read/write for GIF and
1893 ENVI binary files, fast calculation of AUC, LogitBoost classifier, base64
1894 encoder/decoder, round-off-error-free sum and cumsum, etc.")
1895 (license license:gpl3+)))
1896
1897 (define-public r-rmarkdown
1898 (package
1899 (name "r-rmarkdown")
1900 (version "0.9.6")
1901 (source
1902 (origin
1903 (method url-fetch)
1904 (uri (cran-uri "rmarkdown" version))
1905 (sha256
1906 (base32
1907 "09ajq5miqzz46q0i9svvbh93dbi7xbjn4702d6z3scdz272gx7l2"))))
1908 (properties `((upstream-name . "rmarkdown")))
1909 (build-system r-build-system)
1910 (propagated-inputs
1911 `(("r-catools" ,r-catools)
1912 ("r-htmltools" ,r-htmltools)
1913 ("r-knitr" ,r-knitr)
1914 ("r-yaml" ,r-yaml)
1915 ("ghc-pandoc" ,ghc-pandoc)))
1916 (home-page "http://rmarkdown.rstudio.com")
1917 (synopsis "Convert R Markdown documents into a variety of formats")
1918 (description
1919 "This package provides tools to convert R Markdown documents into a
1920 variety of formats.")
1921 (license license:gpl3+)))
1922
1923 (define-public r-gtable
1924 (package
1925 (name "r-gtable")
1926 (version "0.2.0")
1927 (source (origin
1928 (method url-fetch)
1929 (uri (cran-uri "gtable" version))
1930 (sha256
1931 (base32
1932 "0vz7073m0a2q12qzzihrfh5c2kx5jqi5l7z470fxmwqghdllh7l0"))))
1933 (properties `((upstream-name . "gtable")))
1934 (build-system r-build-system)
1935 (home-page "http://cran.r-project.org/web/packages/gtable")
1936 (synopsis "Arrange grobs in tables")
1937 (description
1938 "This package provides tools to make it easier to work with tables of
1939 grobs.")
1940 (license license:gpl2+)))
1941
1942 (define-public r-gridextra
1943 (package
1944 (name "r-gridextra")
1945 (version "2.2.1")
1946 (source (origin
1947 (method url-fetch)
1948 (uri (cran-uri "gridExtra" version))
1949 (sha256
1950 (base32
1951 "0638ihwl00j76ivaxxhxvi8z573lwy1jym3srr78mx6dbdd4bzj4"))))
1952 (properties `((upstream-name . "gridExtra")))
1953 (build-system r-build-system)
1954 (propagated-inputs
1955 `(("r-gtable" ,r-gtable)))
1956 (native-inputs
1957 `(("r-knitr" ,r-knitr))) ;for building vignettes
1958 (home-page "https://github.com/baptiste/gridextra")
1959 (synopsis "Miscellaneous functions for \"Grid\" graphics")
1960 (description
1961 "This package provides a number of user-level functions to work with
1962 @code{grid} graphics, notably to arrange multiple grid-based plots on a page,
1963 and draw tables.")
1964 (license license:gpl2+)))
1965
1966 (define-public r-rsqlite
1967 (package
1968 (name "r-rsqlite")
1969 (version "1.0.0")
1970 (source (origin
1971 (method url-fetch)
1972 (uri (cran-uri "RSQLite" version))
1973 (sha256
1974 (base32
1975 "08b1syv8z887gxiw8i09dpqh0zisfb6ihq6qqr01zipvkahzq34f"))))
1976 (properties `((upstream-name . "RSQLite")))
1977 (build-system r-build-system)
1978 (propagated-inputs
1979 `(("r-dbi" ,r-dbi)))
1980 (home-page "https://github.com/rstats-db/RSQLite")
1981 (synopsis "SQLite interface for R")
1982 (description
1983 "This package embeds the SQLite database engine in R and provides an
1984 interface compliant with the DBI package. The source for the SQLite
1985 engine (version 3.8.6) is included.")
1986 (license license:lgpl2.0+)))
1987
1988 (define-public r-rcurl
1989 (package
1990 (name "r-rcurl")
1991 (version "1.95-0.1.2")
1992 (source (origin
1993 (method url-fetch)
1994 (uri (string-append "http://www.bioconductor.org/packages/"
1995 "release/extra/src/"
1996 "contrib/RCurl_" version ".tar.gz"))
1997 (sha256
1998 (base32
1999 "0l7qi45jxlf898n0jazabnam1yyczvqfdknd00bdirhhiplpd1sc"))))
2000 (properties `((upstream-name . "RCurl")))
2001 (build-system r-build-system)
2002 (inputs
2003 `(("libcurl" ,curl)))
2004 (propagated-inputs
2005 `(("r-bitops" ,r-bitops)))
2006 (home-page "http://www.omegahat.org/RCurl")
2007 (synopsis "General network client interface for R")
2008 (description
2009 "The package allows one to compose general HTTP requests and provides
2010 convenient functions to fetch URIs, GET and POST forms, etc. and process the
2011 results returned by the Web server. This provides a great deal of control
2012 over the HTTP/FTP/... connection and the form of the request while providing a
2013 higher-level interface than is available just using R socket connections.
2014 Additionally, the underlying implementation is robust and extensive,
2015 supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict,
2016 ldap, and also supports cookies, redirects, authentication, etc.")
2017 (license license:bsd-3)))
2018
2019 (define-public r-xml
2020 (package
2021 (name "r-xml")
2022 (version "3.98-1.4")
2023 (source (origin
2024 (method url-fetch)
2025 (uri (cran-uri "XML" version))
2026 (sha256
2027 (base32
2028 "09hiy5a875v2fhsgrsfymrwccn9249wnnsr6ck2slrig65svq2lw"))))
2029 (properties
2030 `((upstream-name . "XML")))
2031 (build-system r-build-system)
2032 (inputs
2033 `(("libxml2" ,libxml2)))
2034 (propagated-inputs
2035 `(("r-rcurl" ,r-rcurl)))
2036 (home-page "http://www.omegahat.org/RSXML")
2037 (synopsis "Tools for parsing and generating XML within R")
2038 (description
2039 "Many approaches for both reading and creating XML (and HTML)
2040 documents (including DTDs), both local and accessible via HTTP or FTP. Also
2041 offers access to an XPath \"interpreter\".")
2042 (license license:bsd-2)))
2043
2044 (define-public r-xnomial
2045 (package
2046 (name "r-xnomial")
2047 (version "1.0.4")
2048 (source
2049 (origin (method url-fetch)
2050 (uri (cran-uri "XNomial" version))
2051 (sha256
2052 (base32
2053 "1mwx302576rmsjllbq2clfxilm3hkyp5bw0wmwqbn0kgv5wpy8z6"))))
2054 (properties (quasiquote ((upstream-name . "XNomial"))))
2055 (build-system r-build-system)
2056 (home-page "http://cran.r-project.org/web/packages/XNomial")
2057 (synopsis "Goodness-of-Fit test for multinomial data")
2058 (description
2059 "This package provides an exact Goodness-of-Fit test for
2060 multinomial data with fixed probabilities. It can be used to
2061 determine whether a set of counts fits a given expected ratio. To see
2062 whether a set of observed counts fits an expectation, one can examine
2063 all possible outcomes with @code{xmulti()} or a random sample of them
2064 with @code{xmonte()} and find the probability of an observation
2065 deviating from the expectation by at least as much as the observed.
2066 As a measure of deviation from the expected, one can use the
2067 log-likelihood ratio, the multinomial probability, or the classic
2068 chi-square statistic. A histogram of the test statistic can also be
2069 plotted and compared with the asymptotic curve.")
2070 (license (list license:gpl2+ license:gpl3+))))
2071
2072 (define-public r-lambda-r
2073 (package
2074 (name "r-lambda-r")
2075 (version "1.1.7")
2076 (source (origin
2077 (method url-fetch)
2078 (uri (cran-uri "lambda.r" version))
2079 (sha256
2080 (base32
2081 "1lxzrwyminc3dfb07pbn1rmj45kplxgsb17b06pzflj728knbqwa"))))
2082 (properties `((upstream-name . "lambda.r")))
2083 (build-system r-build-system)
2084 (home-page "http://cran.r-project.org/web/packages/lambda.r")
2085 (synopsis "Functional programming extension for R")
2086 (description
2087 "This package provides a language extension to efficiently write
2088 functional programs in R. Syntax extensions include multi-part function
2089 definitions, pattern matching, guard statements, built-in (optional) type
2090 safety.")
2091 (license license:lgpl3+)))
2092
2093 (define-public r-futile-options
2094 (package
2095 (name "r-futile-options")
2096 (version "1.0.0")
2097 (source (origin
2098 (method url-fetch)
2099 (uri (cran-uri "futile.options" version))
2100 (sha256
2101 (base32
2102 "1hp82h6xqq5cck67h7lpf22n3j7mg3v1mla5y5ivnzrrb7iyr17f"))))
2103 (properties
2104 `((upstream-name . "futile.options")))
2105 (build-system r-build-system)
2106 (home-page "http://cran.r-project.org/web/packages/futile.options")
2107 (synopsis "Options management framework")
2108 (description
2109 "The futile.options subsystem provides an easy user-defined options
2110 management system that is properly scoped. This means that options created
2111 via @code{futile.options} are fully self-contained and will not collide with
2112 options defined in other packages.")
2113 (license license:lgpl3+)))
2114
2115 (define-public r-futile-logger
2116 (package
2117 (name "r-futile-logger")
2118 (version "1.4.1")
2119 (source (origin
2120 (method url-fetch)
2121 (uri (cran-uri "futile.logger" version))
2122 (sha256
2123 (base32
2124 "1plld1icxrcay7llplbd4i8inpg97crpnczk58mbk26j8glqbr51"))))
2125 (properties `((upstream-name . "futile.logger")))
2126 (build-system r-build-system)
2127 (propagated-inputs
2128 `(("r-futile-options" ,r-futile-options)
2129 ("r-lambda-r" ,r-lambda-r)))
2130 (home-page "http://cran.r-project.org/web/packages/futile.logger")
2131 (synopsis "Logging utility for R")
2132 (description
2133 "This package provides a simple yet powerful logging utility. Based
2134 loosely on log4j, futile.logger takes advantage of R idioms to make logging a
2135 convenient and easy to use replacement for @code{cat} and @code{print}
2136 statements.")
2137 (license license:lgpl3+)))
2138
2139 (define-public r-snow
2140 (package
2141 (name "r-snow")
2142 (version "0.4-1")
2143 (source (origin
2144 (method url-fetch)
2145 (uri (cran-uri "snow" version))
2146 (sha256
2147 (base32
2148 "19r2yq8aqw99vwyx81p6ay4afsfqffal1wzvizk3dj882s2n4j8w"))))
2149 (build-system r-build-system)
2150 (home-page "http://cran.r-project.org/web/packages/snow")
2151 (synopsis "Support for simple parallel computing in R")
2152 (description
2153 "The snow package provides support for simple parallel computing on a
2154 network of workstations using R. A master R process calls @code{makeCluster}
2155 to start a cluster of worker processes; the master process then uses functions
2156 such as @code{clusterCall} and @code{clusterApply} to execute R code on the
2157 worker processes and collect and return the results on the master.")
2158 (license (list license:gpl2+ license:gpl3+))))
2159
2160 (define-public r-sparsem
2161 (package
2162 (name "r-sparsem")
2163 (version "1.7")
2164 (source (origin
2165 (method url-fetch)
2166 (uri (cran-uri "SparseM" version))
2167 (sha256
2168 (base32
2169 "0s9kab5khk7daqf6nfp1wm1qnhkssnnwnymisfwyk3kz4q5maqfz"))))
2170 (properties
2171 `((upstream-name . "SparseM")))
2172 (inputs
2173 `(("gfortran" ,gfortran)))
2174 (build-system r-build-system)
2175 (home-page "http://www.econ.uiuc.edu/~roger/research/sparse/sparse.html")
2176 (synopsis "Sparse linear algebra")
2177 (description
2178 "This package provides some basic linear algebra functionality for sparse
2179 matrices. It includes Cholesky decomposition and backsolving as well as
2180 standard R subsetting and Kronecker products.")
2181 (license license:gpl2+)))
2182
2183 (define-public r-iterators
2184 (package
2185 (name "r-iterators")
2186 (version "1.0.8")
2187 (source
2188 (origin
2189 (method url-fetch)
2190 (uri (cran-uri "iterators" version))
2191 (sha256
2192 (base32
2193 "1f057pabs7ss9h1n244can26qsi5n2k3salrdk0b0vkphlrs4kmf"))))
2194 (build-system r-build-system)
2195 (home-page "http://cran.r-project.org/web/packages/iterators")
2196 (synopsis "Iterator construct for R")
2197 (description
2198 "This package provides support for iterators, which allow a programmer to
2199 traverse through all the elements of a vector, list, or other collection of
2200 data.")
2201 (license license:asl2.0)))
2202
2203 (define-public r-codetools
2204 (package
2205 (name "r-codetools")
2206 (version "0.2-14")
2207 (source
2208 (origin
2209 (method url-fetch)
2210 (uri (cran-uri "codetools" version))
2211 (sha256
2212 (base32
2213 "0y9r4m2b8xgavr89sc179knzwpz54xljbc1dinpq2q07i4xn0397"))))
2214 (build-system r-build-system)
2215 (home-page "http://cran.r-project.org/web/packages/codetools")
2216 (synopsis "Code analysis tools for R")
2217 (description "This package provides code analysis tools for R to check R
2218 code for possible problems.")
2219 (license (list license:gpl2+ license:gpl3+))))
2220
2221 (define-public r-foreach
2222 (package
2223 (name "r-foreach")
2224 (version "1.4.3")
2225 (source
2226 (origin
2227 (method url-fetch)
2228 (uri (cran-uri "foreach" version))
2229 (sha256
2230 (base32
2231 "10aqsd3rxz03s1qdb6gsb1cj89mj4vmh491zfpin4skj1xvkzw0y"))))
2232 (build-system r-build-system)
2233 (propagated-inputs
2234 `(("r-codetools" ,r-codetools)
2235 ("r-iterators" ,r-iterators)))
2236 (home-page "http://cran.r-project.org/web/packages/foreach")
2237 (synopsis "Foreach looping construct for R")
2238 (description
2239 "This package provides support for the @code{foreach} looping construct.
2240 @code{foreach} is an idiom that allows for iterating over elements in a
2241 collection, without the use of an explicit loop counter. This package in
2242 particular is intended to be used for its return value, rather than for its
2243 side effects. In that sense, it is similar to the standard @code{lapply}
2244 function, but doesn't require the evaluation of a function. Using
2245 @code{foreach} without side effects also facilitates executing the loop in
2246 parallel.")
2247 (license license:asl2.0)))
2248
2249 (define-public r-doparallel
2250 (package
2251 (name "r-doparallel")
2252 (version "1.0.10")
2253 (source
2254 (origin
2255 (method url-fetch)
2256 (uri (cran-uri "doParallel" version))
2257 (sha256
2258 (base32
2259 "1mddx25l25pw9d0csnx2q203dbg5hbrhkr1f08kw0p02a1lln0kh"))))
2260 (properties `((upstream-name . "doParallel")))
2261 (build-system r-build-system)
2262 (propagated-inputs
2263 `(("r-foreach" ,r-foreach)
2264 ("r-iterators" ,r-iterators)))
2265 (home-page "http://cran.r-project.org/web/packages/doParallel")
2266 (synopsis "Foreach parallel adaptor for the 'parallel' package")
2267 (description
2268 "This package provides a parallel backend for the @code{%dopar%} function
2269 using the parallel package.")
2270 (license license:gpl2+)))
2271
2272 (define-public r-domc
2273 (package
2274 (name "r-domc")
2275 (version "1.3.4")
2276 (source
2277 (origin
2278 (method url-fetch)
2279 (uri (cran-uri "doMC" version))
2280 (sha256
2281 (base32
2282 "0y47jl6g4f83r14pj8bafdzq1phj7bxy5dwyz3k43d2rr8phk8bn"))))
2283 (properties `((upstream-name . "doMC")))
2284 (build-system r-build-system)
2285 (propagated-inputs
2286 `(("r-foreach" ,r-foreach)
2287 ("r-iterators" ,r-iterators)))
2288 (home-page "http://cran.r-project.org/web/packages/doMC")
2289 (synopsis "Foreach parallel adaptor for the 'parallel' package")
2290 (description
2291 "This package provides a parallel backend for the @code{%dopar%} function
2292 using the multicore functionality of the parallel package.")
2293 (license license:gpl2+)))
2294
2295 (define-public r-dt
2296 (package
2297 (name "r-dt")
2298 (version "0.1")
2299 (source (origin
2300 (method url-fetch)
2301 (uri (cran-uri "DT" version))
2302 (sha256
2303 (base32
2304 "0mj7iiy1gglw7kixybmb7kr1bcl5r006zcb3klkw7p6vvvzdm6qj"))))
2305 (properties
2306 `((upstream-name . "DT")))
2307 (build-system r-build-system)
2308 (propagated-inputs
2309 `(("r-htmltools" ,r-htmltools)
2310 ("r-htmlwidgets" ,r-htmlwidgets)
2311 ("r-magrittr" ,r-magrittr)))
2312 (home-page "http://rstudio.github.io/DT")
2313 (synopsis "R wrapper of the DataTables JavaScript library")
2314 (description
2315 "This package allows for data objects in R to be rendered as HTML tables
2316 using the JavaScript library 'DataTables' (typically via R Markdown or Shiny).
2317 The 'DataTables' library has been included in this R package.")
2318 ;; The DT package as a whole is distributed under GPLv3. The DT package
2319 ;; inludes other software components under different licenses:
2320 ;;
2321 ;; * Expat: jQuery, jquery.highlight.js, DataTables
2322 ;; * ASL2.0: selectize.js
2323 ;; * WTFPL: noUiSlider
2324 (license (list license:gpl3
2325 license:expat
2326 license:asl2.0
2327 (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))))
2328
2329 (define-public r-base64enc
2330 (package
2331 (name "r-base64enc")
2332 (version "0.1-3")
2333 (source (origin
2334 (method url-fetch)
2335 (uri (cran-uri "base64enc" version))
2336 (sha256
2337 (base32
2338 "13b89fhg1nx7zds82a0biz847ixphg9byf5zl2cw9kab6s56v1bd"))))
2339 (build-system r-build-system)
2340 (home-page "http://www.rforge.net/base64enc")
2341 (synopsis "Tools for Base64 encoding")
2342 (description
2343 "This package provides tools for handling Base64 encoding. It is more
2344 flexible than the orphaned \"base64\" package.")
2345 (license license:gpl2+)))
2346
2347 (define-public r-irlba
2348 (package
2349 (name "r-irlba")
2350 (version "2.0.0")
2351 (source
2352 (origin
2353 (method url-fetch)
2354 (uri (cran-uri "irlba" version))
2355 (sha256
2356 (base32
2357 "1gms3rxrm24ri4vjvnpl4v47m7bx0zk63z8y85rbhsvx230xdy0m"))))
2358 (build-system r-build-system)
2359 (home-page "http://cran.r-project.org/web/packages/irlba")
2360 (synopsis "Methods for eigendecomposition of large matrices")
2361 (description
2362 "This package provides fast and memory efficient methods for truncated
2363 singular and eigenvalue decompositions, as well as for principal component
2364 analysis of large sparse or dense matrices.")
2365 (license (list license:gpl2+ license:gpl3+))))
2366
2367 (define-public r-glmnet
2368 (package
2369 (name "r-glmnet")
2370 (version "2.0-5")
2371 (source
2372 (origin
2373 (method url-fetch)
2374 (uri (cran-uri "glmnet" version))
2375 (sha256
2376 (base32
2377 "1cbpzmbv837fvq88rgn6mgzgr9f1wqp9fg8gh2kkmngvr1957a9c"))))
2378 (build-system r-build-system)
2379 (inputs
2380 `(("gfortran" ,gfortran)))
2381 (propagated-inputs
2382 `(("r-foreach" ,r-foreach)))
2383 (home-page "http://www.jstatsoft.org/v33/i01")
2384 (synopsis "Lasso and elastic-net regularized generalized linear models")
2385 (description
2386 "The glmnet package provides efficient procedures for fitting the entire
2387 lasso or elastic-net regularization path for linear and Poisson regression, as
2388 well as logistic, multinomial, Cox, multiple-response Gaussian and grouped
2389 multinomial models. The algorithm uses cyclical coordinate descent in a
2390 path-wise fashion.")
2391 (license license:gpl2+)))
2392
2393 (define-public r-pkgmaker
2394 (package
2395 (name "r-pkgmaker")
2396 (version "0.22")
2397 (source
2398 (origin
2399 (method url-fetch)
2400 (uri (cran-uri "pkgmaker" version))
2401 (sha256
2402 (base32
2403 "0vrqnd3kg6liqvpbd969jjsdx0f0rvmmxgdbwwrp6xfmdg0pib8r"))))
2404 (build-system r-build-system)
2405 (propagated-inputs
2406 `(("r-codetools" ,r-codetools)
2407 ("r-digest" ,r-digest)
2408 ("r-registry" ,r-registry)
2409 ("r-stringr" ,r-stringr)
2410 ("r-xtable" ,r-xtable)))
2411 (home-page "https://renozao.github.io/pkgmaker")
2412 (synopsis "Package development utilities")
2413 (description
2414 "This package provides some low-level utilities to use for R package
2415 development. It currently provides managers for multiple package specific
2416 options and registries, vignette, unit test and bibtex related utilities.")
2417 (license license:gpl2+)))
2418
2419 (define-public r-registry
2420 (package
2421 (name "r-registry")
2422 (version "0.3")
2423 (source
2424 (origin
2425 (method url-fetch)
2426 (uri (cran-uri "registry" version))
2427 (sha256
2428 (base32
2429 "0c7lscfxncwwd8zp46h2xfw9gw14dypqv6m2kx85xjhjh0xw99aq"))))
2430 (build-system r-build-system)
2431 (home-page "http://cran.r-project.org/web/packages/registry")
2432 (synopsis "Infrastructure for R package registries")
2433 (description
2434 "This package provides a generic infrastructure for creating and using R
2435 package registries.")
2436 (license license:gpl2+)))
2437
2438 (define-public r-rngtools
2439 (package
2440 (name "r-rngtools")
2441 (version "1.2.4")
2442 (source
2443 (origin
2444 (method url-fetch)
2445 (uri (cran-uri "rngtools" version))
2446 (sha256
2447 (base32
2448 "1fcgfqrrb48z37xgy8sffx91p9irp39yqzxv7nqp1x2hnwsrh097"))))
2449 (build-system r-build-system)
2450 (propagated-inputs
2451 `(("r-digest" ,r-digest)
2452 ("r-pkgmaker" ,r-pkgmaker)
2453 ("r-stringr" ,r-stringr)))
2454 (home-page "https://renozao.github.io/rngtools")
2455 (synopsis "Utility functions for working with random number generators")
2456 (description
2457 "This package contains a set of functions for working with Random Number
2458 Generators (RNGs). In particular, it defines a generic S4 framework for
2459 getting/setting the current RNG, or RNG data that are embedded into objects
2460 for reproducibility. Notably, convenient default methods greatly facilitate
2461 the way current RNG settings can be changed.")
2462 (license license:gpl3+)))
2463
2464 (define-public r-nmf
2465 (package
2466 (name "r-nmf")
2467 (version "0.20.6")
2468 (source
2469 (origin
2470 (method url-fetch)
2471 (uri (cran-uri "NMF" version))
2472 (sha256
2473 (base32
2474 "0mmh9bz0zjwd8h9jplz4rq3g94npaqj8s4px51vcv47csssd9k6z"))))
2475 (properties `((upstream-name . "NMF")))
2476 (build-system r-build-system)
2477 (propagated-inputs
2478 `(("r-cluster" ,r-cluster)
2479 ("r-colorspace" ,r-colorspace)
2480 ("r-digest" ,r-digest)
2481 ("r-doparallel" ,r-doparallel)
2482 ("r-foreach" ,r-foreach)
2483 ("r-ggplot2" ,r-ggplot2)
2484 ("r-gridbase" ,r-gridbase)
2485 ("r-pkgmaker" ,r-pkgmaker)
2486 ("r-rcolorbrewer" ,r-rcolorbrewer)
2487 ("r-registry" ,r-registry)
2488 ("r-reshape2" ,r-reshape2)
2489 ("r-rngtools" ,r-rngtools)
2490 ("r-stringr" ,r-stringr)))
2491 (home-page "http://renozao.github.io/NMF")
2492 (synopsis "Algorithms and framework for nonnegative matrix factorization")
2493 (description
2494 "This package provides a framework to perform Non-negative Matrix
2495 Factorization (NMF). The package implements a set of already published
2496 algorithms and seeding methods, and provides a framework to test, develop and
2497 plug new or custom algorithms. Most of the built-in algorithms have been
2498 optimized in C++, and the main interface function provides an easy way of
2499 performing parallel computations on multicore machines.")
2500 (license license:gpl2+)))
2501
2502 (define-public r-igraph
2503 (package
2504 (name "r-igraph")
2505 (version "1.0.1")
2506 (source
2507 (origin
2508 (method url-fetch)
2509 (uri (cran-uri "igraph" version))
2510 (sha256
2511 (base32
2512 "00jnm8v3kvxpxav5klld2z2nnkcpj4sdwv4ksipddy5mp04ysr6w"))))
2513 (build-system r-build-system)
2514 (native-inputs
2515 `(("gfortran" ,gfortran)))
2516 (inputs
2517 `(("gmp" ,gmp)
2518 ("libxml2" ,libxml2)))
2519 (propagated-inputs
2520 `(("r-irlba" ,r-irlba)
2521 ("r-magrittr" ,r-magrittr)
2522 ("r-nmf" ,r-nmf)))
2523 (home-page "http://igraph.org")
2524 (synopsis "Network analysis and visualization")
2525 (description
2526 "This package provides routines for simple graphs and network analysis.
2527 It can handle large graphs very well and provides functions for generating
2528 random and regular graphs, graph visualization, centrality methods and much
2529 more.")
2530 (license license:gpl2+)))
2531
2532 (define-public r-r-methodss3
2533 (package
2534 (name "r-r-methodss3")
2535 (version "1.7.1")
2536 (source (origin
2537 (method url-fetch)
2538 (uri (cran-uri "R.methodsS3" version))
2539 (sha256
2540 (base32
2541 "11z6v2i7jl647wxi9p5z66yvfnnqv6s7fxqmz7w2gkb6j8wl1f24"))))
2542 (properties `((upstream-name . "R.methodsS3")))
2543 (build-system r-build-system)
2544 (home-page "http://cran.r-project.org/web/packages/R.methodsS3")
2545 (synopsis "S3 methods simplified")
2546 (description
2547 "This package provides methods that simplify the setup of S3 generic
2548 functions and S3 methods. Major effort has been made in making definition of
2549 methods as simple as possible with a minimum of maintenance for package
2550 developers. For example, generic functions are created automatically, if
2551 missing, and naming conflict are automatically solved, if possible. The
2552 method @code{setMethodS3()} is a good start for those who in the future may
2553 want to migrate to S4.")
2554 (license license:lgpl2.1+)))
2555
2556 (define-public r-r-oo
2557 (package
2558 (name "r-r-oo")
2559 (version "1.20.0")
2560 (source (origin
2561 (method url-fetch)
2562 (uri (cran-uri "R.oo" version))
2563 (sha256
2564 (base32
2565 "1l1x4r69mdchjyi6sq52p580fz3b3bqv6dpn1706y9n4vq47qx24"))))
2566 (properties `((upstream-name . "R.oo")))
2567 (build-system r-build-system)
2568 (propagated-inputs
2569 `(("r-r-methodss3" ,r-r-methodss3)))
2570 (home-page "https://github.com/HenrikBengtsson/R.oo")
2571 (synopsis "R object-oriented programming with or without references")
2572 (description
2573 "This package provides methods and classes for object-oriented
2574 programming in R with or without references. Large effort has been made on
2575 making definition of methods as simple as possible with a minimum of
2576 maintenance for package developers.")
2577 (license license:lgpl2.1+)))
2578
2579 (define-public r-r-utils
2580 (package
2581 (name "r-r-utils")
2582 (version "2.3.0")
2583 (source (origin
2584 (method url-fetch)
2585 (uri (cran-uri "R.utils" version))
2586 (sha256
2587 (base32
2588 "0f4z7ka1wb7bgxc5wyqihqxsnqwgyyzbglwvfwmx0gn8i0wzi647"))))
2589 (properties `((upstream-name . "R.utils")))
2590 (build-system r-build-system)
2591 (propagated-inputs
2592 `(("r-r-methodss3" ,r-r-methodss3)
2593 ("r-r-oo" ,r-r-oo)))
2594 (home-page "https://github.com/HenrikBengtsson/R.utils")
2595 (synopsis "Various programming utilities")
2596 (description
2597 "This package provides utility functions useful when programming and
2598 developing R packages.")
2599 (license license:lgpl2.1+)))
2600
2601 (define-public r-r-cache
2602 (package
2603 (name "r-r-cache")
2604 (version "0.12.0")
2605 (source (origin
2606 (method url-fetch)
2607 (uri (cran-uri "R.cache" version))
2608 (sha256
2609 (base32
2610 "006x52w9r8phw5hgqmyp0bz8z42vn8p5yibibnzi1sfa1xlw8iyx"))))
2611 (properties `((upstream-name . "R.cache")))
2612 (build-system r-build-system)
2613 (propagated-inputs
2614 `(("r-digest" ,r-digest)
2615 ("r-r-methodss3" ,r-r-methodss3)
2616 ("r-r-oo" ,r-r-oo)
2617 ("r-r-utils" ,r-r-utils)))
2618 (home-page "https://github.com/HenrikBengtsson/R.cache")
2619 (synopsis "Light-weight caching of objects and results")
2620 (description
2621 "This package provides methods for caching or memoization of objects and
2622 results. With this package, any R object can be cached in a key-value storage
2623 where the key can be an arbitrary set of R objects. The cache memory is
2624 persistent (on the file system).")
2625 (license license:lgpl2.1+)))
2626
2627 (define-public r-r-rsp
2628 (package
2629 (name "r-r-rsp")
2630 (version "0.30.0")
2631 (source (origin
2632 (method url-fetch)
2633 (uri (cran-uri "R.rsp" version))
2634 (sha256
2635 (base32
2636 "1ssykygqkxzx9qblxhavxlf2z6r5bhk0s47yw1dllfiyc8zy7jv2"))))
2637 (properties `((upstream-name . "R.rsp")))
2638 (build-system r-build-system)
2639 (propagated-inputs
2640 `(("r-r-cache" ,r-r-cache)
2641 ("r-r-methodss3" ,r-r-methodss3)
2642 ("r-r-oo" ,r-r-oo)
2643 ("r-r-utils" ,r-r-utils)))
2644 (home-page "https://github.com/HenrikBengtsson/R.rsp")
2645 (synopsis "Dynamic generation of scientific reports")
2646 (description
2647 "The RSP markup language provides a powerful markup for controlling the
2648 content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr
2649 documents (and more), e.g. @code{Today's date is <%=Sys.Date()%>}. Contrary
2650 to many other literate programming languages, with RSP it is straightforward
2651 to loop over mixtures of code and text sections, e.g. in month-by-month
2652 summaries. RSP has also several preprocessing directives for incorporating
2653 static and dynamic contents of external files (local or online) among other
2654 things. RSP is ideal for self-contained scientific reports and R package
2655 vignettes.")
2656 (license license:lgpl2.1+)))
2657
2658 (define-public r-mvtnorm
2659 (package
2660 (name "r-mvtnorm")
2661 (version "1.0-5")
2662 (source (origin
2663 (method url-fetch)
2664 (uri (cran-uri "mvtnorm" version))
2665 (sha256
2666 (base32
2667 "1pc1mi2h063gh4a40009xk5j6pf5bm4274i5kycln38dixsry3yh"))))
2668 (build-system r-build-system)
2669 (inputs
2670 `(("gfortran" ,gfortran)))
2671 (home-page "http://mvtnorm.R-forge.R-project.org")
2672 (synopsis "Package for multivariate normal and t-distributions")
2673 (description "This package can compute multivariate normal and
2674 t-probabilities, quantiles, random deviates and densities.")
2675 (license license:gpl2)))
2676
2677 (define-public r-matrixstats
2678 (package
2679 (name "r-matrixstats")
2680 (version "0.50.2")
2681 (source (origin
2682 (method url-fetch)
2683 (uri (cran-uri "matrixStats" version))
2684 (sha256
2685 (base32
2686 "0zj27xxx9cyrq16rn4g3l0krqg68p8f2qp18w1w4i767j87amlbj"))))
2687 (properties `((upstream-name . "matrixStats")))
2688 (build-system r-build-system)
2689 (native-inputs
2690 `(("r-r-rsp" ,r-r-rsp))) ;used to build vignettes
2691 (home-page "https://github.com/HenrikBengtsson/matrixStats")
2692 (synopsis "Methods applying to vectors and matrix rows and columns")
2693 (description
2694 "This package provides methods operating on rows and columns of matrices,
2695 e.g. @code{rowMedians()}, @code{rowRanks()}, and @code{rowSds()}. There are
2696 also some vector-based methods, e.g. @code{binMeans()}, @code{madDiff()} and
2697 @code{weightedMedians()}. All methods have been optimized for speed and
2698 memory usage.")
2699 (license license:artistic2.0)))
2700
2701 (define-public r-viridis
2702 (package
2703 (name "r-viridis")
2704 (version "0.3.4")
2705 (source (origin
2706 (method url-fetch)
2707 (uri (cran-uri "viridis" version))
2708 (sha256
2709 (base32
2710 "1a9hqn2pccpc51vh8ghw698ni6xzdnp8v0n8kgjh51nlz5hhc87j"))))
2711 (build-system r-build-system)
2712 (propagated-inputs
2713 `(("r-ggplot2" ,r-ggplot2)
2714 ("r-gridextra" ,r-gridextra)))
2715 (home-page "https://github.com/sjmgarnier/viridis")
2716 (synopsis "Matplotlib default color map")
2717 (description
2718 "This package is a port of the new @url{matplotlib,
2719 http://matplotlib.org/} color maps (@code{viridis}--the default--,
2720 @code{magma}, @code{plasma}, and @code{inferno}) to R. These color maps are
2721 designed in such a way that they will analytically be perfectly
2722 perceptually-uniform, both in regular form and also when converted to
2723 black-and-white. They are also designed to be perceived by readers with the
2724 most common form of color blindness.")
2725 (license license:x11)))
2726
2727 (define-public r-tidyr
2728 (package
2729 (name "r-tidyr")
2730 (version "0.4.1")
2731 (source
2732 (origin
2733 (method url-fetch)
2734 (uri (cran-uri "tidyr" version))
2735 (sha256
2736 (base32
2737 "0xp6lyr2l4ix2mrilx4qmca7wm5qmbhvi24m4nf7qsgwp54gnv2h"))))
2738 (build-system r-build-system)
2739 (propagated-inputs
2740 `(("r-dplyr" ,r-dplyr)
2741 ("r-lazyeval" ,r-lazyeval)
2742 ("r-magrittr" ,r-magrittr)
2743 ("r-rcpp" ,r-rcpp)
2744 ("r-stringi" ,r-stringi)))
2745 (home-page "https://github.com/hadley/tidyr")
2746 (synopsis "Tidy data with `spread()` and `gather()` functions")
2747 (description
2748 "tidyr is a reframing of the reshape2 package designed to accompany the
2749 tidy data framework, and to work hand-in-hand with magrittr and dplyr to build
2750 a solid pipeline for data analysis. It is designed specifically for tidying
2751 data, not the general reshaping that reshape2 does, or the general aggregation
2752 that reshape did. In particular, built-in methods only work for data frames,
2753 and tidyr provides no margins or aggregation.")
2754 (license license:expat)))
2755
2756 (define-public r-hexbin
2757 (package
2758 (name "r-hexbin")
2759 (version "1.27.1")
2760 (source
2761 (origin
2762 (method url-fetch)
2763 (uri (cran-uri "hexbin" version))
2764 (sha256
2765 (base32
2766 "0xi6fbf1fvyn2gffr052n3viibqzpr3603sgi4xaminbzja4syjh"))))
2767 (build-system r-build-system)
2768 (propagated-inputs
2769 `(("r-lattice" ,r-lattice)))
2770 (native-inputs
2771 `(("gfortran" ,gfortran)))
2772 (home-page "http://github.com/edzer/hexbin")
2773 (synopsis "Hexagonal binning routines")
2774 (description
2775 "This package provides binning and plotting functions for hexagonal bins.
2776 It uses and relies on grid graphics and formal (S4) classes and methods.")
2777 (license license:gpl2+)))
2778
2779 (define-public r-plotly
2780 (package
2781 (name "r-plotly")
2782 (version "3.6.0")
2783 (source (origin
2784 (method url-fetch)
2785 (uri (cran-uri "plotly" version))
2786 (sha256
2787 (base32
2788 "15hvqa0sf4z6l6vvr614zjszfphwpv66zpc665iyiynq0pd1jv2c"))))
2789 (build-system r-build-system)
2790 (propagated-inputs
2791 `(("r-base64enc" ,r-base64enc)
2792 ("r-digest" ,r-digest)
2793 ("r-ggplot2" ,r-ggplot2)
2794 ("r-hexbin" ,r-hexbin)
2795 ("r-htmlwidgets" ,r-htmlwidgets)
2796 ("r-httr" ,r-httr)
2797 ("r-jsonlite" ,r-jsonlite)
2798 ("r-magrittr" ,r-magrittr)
2799 ("r-plyr" ,r-plyr)
2800 ("r-scales" ,r-scales)
2801 ("r-tidyr" ,r-tidyr)
2802 ("r-viridis" ,r-viridis)))
2803 (home-page "https://plot.ly/r")
2804 (synopsis "Create interactive web graphics")
2805 (description
2806 "This package enables the translation of ggplot2 graphs to an interactive
2807 web-based version and/or the creation of custom web-based visualizations
2808 directly from R. Once uploaded to a plotly account, plotly graphs (and the
2809 data behind them) can be viewed and modified in a web browser.")
2810 (license license:x11)))
2811
2812 (define-public r-biased-urn
2813 (package
2814 (name "r-biased-urn")
2815 (version "1.07")
2816 (source
2817 (origin
2818 (method url-fetch)
2819 (uri (cran-uri "BiasedUrn" version))
2820 (sha256
2821 (base32
2822 "13i2lgfnjhlbbm2yxfc2l5hswqw6x03pwba5csjmirv8kpjw4xr3"))))
2823 (properties `((upstream-name . "BiasedUrn")))
2824 (build-system r-build-system)
2825 (home-page "http://www.agner.org/random/")
2826 (synopsis "Biased urn model distributions")
2827 (description
2828 "This package provides statistical models of biased sampling in the form
2829 of univariate and multivariate noncentral hypergeometric distributions,
2830 including Wallenius' noncentral hypergeometric distribution and Fisher's
2831 noncentral hypergeometric distribution (also called extended hypergeometric
2832 distribution).")
2833 (license license:gpl3+)))
2834
2835 (define-public r-runit
2836 (package
2837 (name "r-runit")
2838 (version "0.4.31")
2839 (source
2840 (origin
2841 (method url-fetch)
2842 (uri (cran-uri "RUnit" version))
2843 (sha256
2844 (base32
2845 "1jqr871jkll2xmk7wk5hv1z3a36hyn2ibgivw7bwk4b346940xlx"))))
2846 (properties `((upstream-name . "RUnit")))
2847 (build-system r-build-system)
2848 (home-page "http://cran.r-project.org/web/packages/RUnit")
2849 (synopsis "R unit test framework")
2850 (description
2851 "This package provides R functions implementing a standard unit testing
2852 framework, with additional code inspection and report generation tools.")
2853 (license license:gpl2+)))
2854
2855 (define-public r-zoo
2856 (package
2857 (name "r-zoo")
2858 (version "1.7-13")
2859 (source (origin
2860 (method url-fetch)
2861 (uri (cran-uri "zoo" version))
2862 (sha256
2863 (base32
2864 "0m67bnrg7r1jxvs9p7rpa430szp5qfp65r056yb8bivpc16jd98c"))))
2865 (build-system r-build-system)
2866 (propagated-inputs
2867 `(("r-lattice" ,r-lattice)))
2868 (home-page "http://zoo.R-Forge.R-project.org/")
2869 (synopsis "S3 infrastructure for regular and irregular time series")
2870 (description "This package contains an S3 class with methods for totally
2871 ordered indexed observations. It is particularly aimed at irregular time
2872 series of numeric vectors/matrices and factors.")
2873 (license license:gpl2+)))
2874
2875 (define-public r-ztable
2876 (package
2877 (name "r-ztable")
2878 (version "0.1.5")
2879 (source (origin
2880 (method url-fetch)
2881 (uri (cran-uri "ztable" version))
2882 (sha256
2883 (base32
2884 "1jfqnqy9544gfvz3bsb48v4177nwp4b4n9l2743asq8sbq305b5r"))))
2885 (build-system r-build-system)
2886 (home-page "http://cran.r-project.org/web/packages/ztable")
2887 (synopsis "Zebra-striped tables in LaTeX and HTML formats for R")
2888 (description
2889 "This package provides functions to make zebra-striped tables (tables
2890 with alternating row colors) in LaTeX and HTML formats easily from
2891 @code{data.frame}, @code{matrix}, @code{lm}, @code{aov}, @code{anova},
2892 @code{glm}, @code{coxph}, @code{nls}, @code{fitdistr}, @code{mytable} and
2893 @code{cbind.mytable} objects.")
2894 (license license:gpl2+)))