gnu: hwloc: Update to 1.11.2.
[jackhill/guix/guix.git] / gnu / packages / statistics.scm
CommitLineData
cb7e4867 1;;; GNU Guix --- Functional package management for GNU
d7786ce9 2;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
ed6094fc 3;;; Copyright © 2015 Vicente Vera Parra <vicentemvp@gmail.com>
f4cd2cea
EF
4;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
5;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
b70fa3c7 6;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
cb7e4867
RW
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages statistics)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix utils)
28 #:use-module (guix build-system gnu)
b12636e6 29 #:use-module (guix build-system r)
9bc08aa0 30 #:use-module (guix build-system python)
cb7e4867
RW
31 #:use-module (gnu packages)
32 #:use-module (gnu packages compression)
cefaa79c 33 #:use-module (gnu packages curl)
cb7e4867
RW
34 #:use-module (gnu packages gcc)
35 #:use-module (gnu packages gtk)
0b65f1a0
JD
36 #:use-module (gnu packages gettext)
37 #:use-module (gnu packages glib)
77bdb276 38 #:use-module (gnu packages haskell)
cb7e4867
RW
39 #:use-module (gnu packages icu4c)
40 #:use-module (gnu packages image)
41 #:use-module (gnu packages java)
42 #:use-module (gnu packages maths)
43 #:use-module (gnu packages pcre)
44 #:use-module (gnu packages perl)
45 #:use-module (gnu packages pkg-config)
9bc08aa0 46 #:use-module (gnu packages python)
cb7e4867 47 #:use-module (gnu packages readline)
035711f1 48 #:use-module (gnu packages ssh)
cb7e4867 49 #:use-module (gnu packages texinfo)
035711f1 50 #:use-module (gnu packages tls)
ce0614dd 51 #:use-module (gnu packages base)
6140747f 52 #:use-module (gnu packages web)
67a167fd 53 #:use-module (gnu packages xml)
9bc08aa0
RW
54 #:use-module (gnu packages xorg)
55 #:use-module (gnu packages zip)
56 #:use-module (srfi srfi-1))
cb7e4867 57
0b65f1a0
JD
58
59(define-public pspp
60 (package
61 (name "pspp")
62 (version "0.10.1")
63 (source
64 (origin
65 (method url-fetch)
66 (uri (string-append "mirror://gnu/pspp/pspp-"
67 version ".tar.gz"))
68 (sha256
69 (base32
70 "0xw61kq0hxh7f6a4yjhnqbhc0fj9r3wb3qnpq05qhdp79n30ik24"))))
71 (build-system gnu-build-system)
72 (inputs
73 `(("cairo" ,cairo)
74 ("gettext" ,gnu-gettext)
75 ("gsl" ,gsl)
76 ("libxml2" ,libxml2)
77 ("pango" ,pango)
78 ("readline" ,readline)
79 ("gtk" ,gtk+)
80 ("gtksourceview" ,gtksourceview)
81 ("zlib" ,zlib)))
82 (native-inputs
83 `(("glib" ,glib "bin") ;for glib-genmarshal
84 ("perl" ,perl)
85 ("pkg-config" ,pkg-config)))
86 (home-page "http://www.gnu.org/software/pspp/")
87 (synopsis "Statistical analysis")
88 (description
89 "GNU PSPP is a statistical analysis program. It can perform
90descriptive statistics, T-tests, linear regression and non-parametric tests.
91It features both a graphical interface as well as command-line input. PSPP
92is designed to interoperate with Gnumeric, LibreOffice and OpenOffice. Data
93can be imported from spreadsheets, text files and database sources and it can
94be output in text, PostScript, PDF or HTML.")
95 (license license:gpl3+)))
96
cb7e4867
RW
97(define-public r
98 (package
99 (name "r")
695bea98 100 (version "3.2.3")
cb7e4867
RW
101 (source (origin
102 (method url-fetch)
103 (uri (string-append "mirror://cran/src/base/R-"
104 (version-prefix version 1) "/R-"
105 version ".tar.gz"))
106 (sha256
107 (base32
695bea98 108 "1hdnv77ralzcx5k5b88jq1r8l6zqnywpq00g2qs949rqh63psfxr"))))
cb7e4867
RW
109 (build-system gnu-build-system)
110 (arguments
ff2b1c17
RW
111 `(#:make-flags
112 (list (string-append "LDFLAGS=-Wl,-rpath="
113 (assoc-ref %outputs "out")
114 "/lib/R/lib"))
115 #:phases
f4f4ced8
RW
116 (modify-phases %standard-phases
117 (add-before
118 'configure 'set-default-pager
119 ;; Set default pager to "cat", because otherwise it is "false",
120 ;; making "help()" print nothing at all.
121 (lambda _ (setenv "PAGER" "cat") #t))
122 (add-before
123 'check 'set-timezone
124 ;; Some tests require the timezone to be set.
af23b6e9
RW
125 (lambda _ (setenv "TZ" "UTC") #t))
126 (add-after 'build 'make-info
127 (lambda _ (zero? (system* "make" "info"))))
128 (add-after 'build 'install-info
129 (lambda _ (zero? (system* "make" "install-info")))))
cb7e4867 130 #:configure-flags
eb2afd00 131 '("--with-cairo"
cb7e4867
RW
132 "--with-libpng"
133 "--with-jpeglib"
134 "--with-libtiff"
135 "--with-ICU"
136 "--enable-R-shlib"
137 "--enable-BLAS-shlib"
138 "--with-system-zlib"
139 "--with-system-bzlib"
140 "--with-system-pcre"
141 "--with-system-tre"
142 "--with-system-xz")))
5e9738b7
RW
143 ;; R has some support for Java. When the JDK is available at configure
144 ;; time environment variables pointing to the JDK will be recorded under
145 ;; $R_HOME/etc and ./tools/getsp.java will be compiled which is used by "R
146 ;; CMD javareconf". "R CMD javareconf" appears to only be used to update
147 ;; the recorded environment variables in $R_HOME/etc. Refer to
148 ;; https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
149 ;; for additional information.
150
151 ;; As the JDK is a rather large input with only very limited effects on R,
152 ;; we decided to drop it.
cb7e4867
RW
153 (native-inputs
154 `(("bzip2" ,bzip2)
155 ("perl" ,perl)
156 ("pkg-config" ,pkg-config)
cb7e4867
RW
157 ("texinfo" ,texinfo) ; for building HTML manuals
158 ("which" ,which) ; for tests/Examples/base-Ex.R
159 ("xz" ,xz)))
160 (inputs
95b754a1 161 `(("cairo" ,cairo)
19afbea1 162 ("gfortran" ,gfortran)
cb7e4867 163 ("icu4c" ,icu4c)
cb7e4867
RW
164 ("libjpeg" ,libjpeg)
165 ("libpng" ,libpng)
166 ("libtiff" ,libtiff)
167 ("libxt" ,libxt)
168 ("pcre" ,pcre)
169 ("readline" ,readline)
170 ("zlib" ,zlib)))
12a9f4af
RW
171 (native-search-paths
172 (list (search-path-specification
173 (variable "R_LIBS_SITE")
174 (files (list "site-library/")))))
cb7e4867
RW
175 (home-page "http://www.r-project.org/")
176 (synopsis "Environment for statistical computing and graphics")
177 (description
178 "R is a language and environment for statistical computing and graphics.
179It provides a variety of statistical techniques, such as linear and nonlinear
180modeling, classical statistical tests, time-series analysis, classification
181and clustering. It also provides robust support for producing
182publication-quality data plots. A large amount of 3rd-party packages are
183available, greatly increasing its breadth and scope.")
184 (license license:gpl3+)))
b12636e6
RW
185
186(define-public r-colorspace
187 (package
188 (name "r-colorspace")
189 (version "1.2-6")
190 (source
191 (origin
192 (method url-fetch)
9cda3622 193 (uri (cran-uri "colorspace" version))
b12636e6
RW
194 (sha256
195 (base32 "0y8n4ljwhbdvkysdwgqzcnpv107pb3px1jip3k6svv86p72nacds"))))
196 (build-system r-build-system)
197 (home-page "http://cran.r-project.org/web/packages/colorspace")
198 (synopsis "Color space manipulation")
199 (description
200 "This package carries out a mapping between assorted color spaces
201including RGB, HSV, HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar
202CIELAB. Qualitative, sequential, and diverging color palettes based on HCL
203colors are provided.")
204 (license license:bsd-3)))
3587effb
RW
205
206(define-public r-dichromat
207 (package
208 (name "r-dichromat")
209 (version "2.0-0")
210 (source
211 (origin
212 (method url-fetch)
9cda3622 213 (uri (cran-uri "dichromat" version))
3587effb
RW
214 (sha256
215 (base32 "1l8db1nk29ccqg3mkbafvfiw0775iq4gapysf88xq2zp6spiw59i"))))
216 (build-system r-build-system)
217 (home-page "http://cran.r-project.org/web/packages/dichromat")
218 (synopsis "Color schemes for dichromats")
219 (description
220 "Dichromat collapses red-green or green-blue distinctions to simulate the
221effects of different types of color-blindness.")
222 (license license:gpl2+)))
177f38c7
RW
223
224(define-public r-digest
225 (package
226 (name "r-digest")
227 (version "0.6.8")
228 (source
229 (origin
230 (method url-fetch)
9cda3622 231 (uri (cran-uri "digest" version))
177f38c7
RW
232 (sha256
233 (base32 "0m9grqv67hhf51lz10whymhw0g0d98466ka694kya5x95hn44qih"))))
234 (build-system r-build-system)
235 (home-page "http://dirk.eddelbuettel.com/code/digest.html")
236 (synopsis "Create cryptographic hash digests of R objects")
237 (description
238 "This package contains an implementation of a function 'digest()' for the
239creation of hash digests of arbitrary R objects (using the md5, sha-1,
240sha-256, crc32, xxhash and murmurhash algorithms) permitting easy comparison
241of R language objects, as well as a function 'hmac()' to create hash-based
242message authentication code.
243
244Please note that this package is not meant to be deployed for cryptographic
245purposes for which more comprehensive (and widely tested) libraries such as
246OpenSSL should be used.")
247 (license license:gpl2+)))
112bb3c0
RW
248
249(define-public r-gtable
250 (package
251 (name "r-gtable")
252 (version "0.1.2")
253 (source
254 (origin
255 (method url-fetch)
9cda3622 256 (uri (cran-uri "gtable" version))
112bb3c0
RW
257 (sha256
258 (base32 "0k9hfj6r5y238gqh92s3cbdn34biczx3zfh79ix5xq0c5vkai2xh"))))
259 (build-system r-build-system)
260 (home-page "https://cran.r-project.org/web/packages/gtable")
261 (synopsis "R library to arrange grobs in tables")
262 (description
263 "Gtable is a collection of tools to make it easier to work with
264\"tables\" of grobs.")
265 (license license:gpl2+)))
b7eee9fc
RW
266
267(define-public r-labeling
268 (package
269 (name "r-labeling")
270 (version "0.3")
271 (source
272 (origin
273 (method url-fetch)
9cda3622 274 (uri (cran-uri "labeling" version))
b7eee9fc
RW
275 (sha256
276 (base32 "13sk7zrrrzry6ky1bp8mmnzcl9jhvkig8j4id9nny7z993mnk00d"))))
277 (build-system r-build-system)
278 (home-page "http://cran.r-project.org/web/packages/labeling")
279 (synopsis "Axis labeling algorithms")
280 (description "The labeling package provides a range of axis labeling
281algorithms.")
282 (license license:expat)))
d69c4b04
RW
283
284(define-public r-magrittr
285 (package
286 (name "r-magrittr")
287 (version "1.5")
288 (source
289 (origin
290 (method url-fetch)
9cda3622 291 (uri (cran-uri "magrittr" version))
d69c4b04
RW
292 (sha256
293 (base32 "1s1ar6rag8m277qcqmdp02gn4awn9bdj9ax0r8s32i59mm1mki05"))))
294 (build-system r-build-system)
295 (home-page "http://cran.r-project.org/web/packages/magrittr/index.html")
296 (synopsis "A forward-pipe operator for R")
297 (description
298 "Magrittr provides a mechanism for chaining commands with a new
299forward-pipe operator, %>%. This operator will forward a value, or the result
300of an expression, into the next function call/expression. There is flexible
301support for the type of right-hand side expressions. For more information,
302see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"")
303 (license license:expat)))
44373339
RW
304
305(define-public r-munsell
306 (package
307 (name "r-munsell")
308 (version "0.4.2")
309 (source
310 (origin
311 (method url-fetch)
9cda3622 312 (uri (cran-uri "munsell" version))
44373339
RW
313 (sha256
314 (base32 "1bi5yi0i80778bbzx2rm4f0glpc34kvh24pwwfhm4v32izsqgrw4"))))
315 (build-system r-build-system)
316 (propagated-inputs
317 `(("r-colorspace" ,r-colorspace)))
318 (home-page "http://cran.r-project.org/web/packages/munsell")
319 (synopsis "Munsell colour system")
320 (description
321 "The Munsell package contains Functions for exploring and using the
322Munsell colour system.")
323 (license license:expat)))
ea69e2f8
RW
324
325(define-public r-rcpp
326 (package
327 (name "r-rcpp")
328 (version "0.12.0")
329 (source
330 (origin
331 (method url-fetch)
9cda3622 332 (uri (cran-uri "Rcpp" version))
ea69e2f8
RW
333 (sha256
334 (base32 "182109z0yc1snqgd833ssl2cix6cbq83bcxmy5344b15ym820y38"))))
335 (build-system r-build-system)
336 (home-page "http://www.rcpp.org")
337 (synopsis "Seamless R and C++ Integration")
338 (description
339 "The Rcpp package provides R functions as well as C++ classes which offer
340a seamless integration of R and C++. Many R data types and objects can be
341mapped back and forth to C++ equivalents which facilitates both writing of new
342code as well as easier integration of third-party libraries. Documentation
343about Rcpp is provided by several vignettes included in this package, via the
344'Rcpp Gallery' site at <http://gallery.rcpp.org>, the paper by Eddelbuettel
345and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer); see
346'citation(\"Rcpp\")' for details on these last two.")
347 (license license:gpl2+)))
7e10056b
RW
348
349(define-public r-plyr
350 (package
351 (name "r-plyr")
352 (version "1.8.3")
353 (source
354 (origin
355 (method url-fetch)
9cda3622 356 (uri (cran-uri "plyr" version))
7e10056b
RW
357 (sha256
358 (base32 "06v4zxawpjz37rp2q2ii5q43g664z9s29j4ydn0cz3crn7lzl6pk"))))
359 (build-system r-build-system)
360 (native-inputs `(("r-rcpp" ,r-rcpp)))
361 (home-page "http://had.co.nz/plyr")
362 (synopsis "Tools for Splitting, Applying and Combining Data")
363 (description
364 "Plyr is a set of tools that solves a common set of problems: you need to
365break a big problem down into manageable pieces, operate on each piece and
366then put all the pieces back together. For example, you might want to fit a
367model to each spatial location or time point in your study, summarise data by
368panels or collapse high-dimensional arrays to simpler summary statistics.")
369 (license license:expat)))
9a4d8968
RW
370
371(define-public r-proto
372 (package
373 (name "r-proto")
374 (version "0.3-10")
375 (source
376 (origin
377 (method url-fetch)
9cda3622 378 (uri (cran-uri "proto" version))
9a4d8968
RW
379 (sha256
380 (base32 "03mvzi529y6kjcp9bkpk7zlgpcakb3iz73hca6rpjy14pyzl3nfh"))))
381 (build-system r-build-system)
382 (home-page "http://r-proto.googlecode.com")
383 (synopsis "Prototype object-based programming")
384 (description
385 "Proto is an object oriented system using object-based, also called
386prototype-based, rather than class-based object oriented ideas.")
387 (license license:gpl2+)))
a45ba127
RW
388
389(define-public r-rcolorbrewer
390 (package
391 (name "r-rcolorbrewer")
392 (version "1.1-2")
393 (source
394 (origin
395 (method url-fetch)
9cda3622 396 (uri (cran-uri "RColorBrewer" version))
a45ba127
RW
397 (sha256
398 (base32 "1pfcl8z1pnsssfaaz9dvdckyfnnc6rcq56dhislbf571hhg7isgk"))))
399 (build-system r-build-system)
400 (home-page "http://cran.r-project.org/web/packages/RColorBrewer")
401 (synopsis "ColorBrewer palettes")
402 (description
403 "This package provides color schemes for maps (and other graphics)
404designed by Cynthia Brewer as described at http://colorbrewer2.org")
405 ;; Includes code licensed under bsd-4
406 (license license:asl2.0)))
4dca98dc
RW
407
408(define-public r-stringi
409 (package
410 (name "r-stringi")
411 (version "0.5-5")
412 (source
413 (origin
414 (method url-fetch)
9cda3622 415 (uri (cran-uri "stringi" version))
4dca98dc
RW
416 (sha256
417 (base32
418 "183wrrjhpgl1wbnn9lhghyvhz7l2mc64mpcmzplckal7y9j7pmhw"))))
419 (build-system r-build-system)
420 (inputs `(("icu4c" ,icu4c)))
421 (native-inputs `(("pkg-config" ,pkg-config)))
422 (home-page "http://stringi.rexamine.com/")
423 (synopsis "Character string processing facilities")
424 (description
425 "This package allows for fast, correct, consistent, portable, as well as
426convenient character string/text processing in every locale and any native
427encoding. Owing to the use of the ICU library, the package provides R users
428with platform-independent functions known to Java, Perl, Python, PHP, and Ruby
429programmers. Among available features there are: pattern searching
430 (e.g. via regular expressions), random string generation, string collation,
431transliteration, concatenation, date-time formatting and parsing, etc.")
432 (license license:bsd-3)))
d5cd5c15
RW
433
434(define-public r-stringr
435 (package
436 (name "r-stringr")
437 (version "1.0.0")
438 (source
439 (origin
440 (method url-fetch)
9cda3622 441 (uri (cran-uri "stringr" version))
d5cd5c15
RW
442 (sha256
443 (base32 "0jnz6r9yqyf7dschr2fnn1slg4wn6b4ik5q00j4zrh43bfw7s9pq"))))
444 (build-system r-build-system)
445 (propagated-inputs
446 `(("r-magrittr" ,r-magrittr)
447 ("r-stringi" ,r-stringi)))
718a2bde 448 (home-page "https://github.com/hadley/stringr")
d5cd5c15
RW
449 (synopsis "Simple, consistent wrappers for common string operations")
450 (description
451 "Stringr is a consistent, simple and easy to use set of wrappers around
452the fantastic 'stringi' package. All function and argument names (and
453positions) are consistent, all functions deal with \"NA\"'s and zero length
454vectors in the same way, and the output from one function is easy to feed into
455the input of another.")
456 (license license:gpl2+)))
9ca731ba
RW
457
458(define-public r-reshape2
459 (package
460 (name "r-reshape2")
461 (version "1.4.1")
462 (source
463 (origin
464 (method url-fetch)
9cda3622 465 (uri (cran-uri "reshape2" version))
9ca731ba
RW
466 (sha256
467 (base32 "0hl082dyk3pk07nqprpn5dvnrkqhnf6zjnjig1ijddxhlmsrzm7v"))))
468 (build-system r-build-system)
469 (propagated-inputs
470 `(("r-plyr" ,r-plyr)
471 ("r-rcpp" ,r-rcpp)
472 ("r-stringr" ,r-stringr)))
473 (home-page "https://github.com/hadley/reshape")
474 (synopsis "Flexibly reshape data: a reboot of the \"reshape\" package")
475 (description
476 "Reshape2 is an R library to flexibly restructure and aggregate data
477using just two functions: melt and dcast (or acast).")
478 (license license:expat)))
a11ee478
RW
479
480(define-public r-scales
481 (package
482 (name "r-scales")
91781b74 483 (version "0.3.0")
a11ee478
RW
484 (source
485 (origin
486 (method url-fetch)
9cda3622 487 (uri (cran-uri "scales" version))
a11ee478 488 (sha256
91781b74 489 (base32 "1kkgpqzb0a6lnpblhcprr4qzyfk5lhicdv4639xs5cq16n7bkqgl"))))
a11ee478
RW
490 (build-system r-build-system)
491 (propagated-inputs
492 `(("r-dichromat" ,r-dichromat)
493 ("r-labeling" ,r-labeling)
494 ("r-munsell" ,r-munsell)
495 ("r-plyr" ,r-plyr)
496 ("r-rcolorbrewer" ,r-rcolorbrewer)
497 ("r-rcpp" ,r-rcpp)))
498 (home-page "https://github.com/hadley/scales")
499 (synopsis "Scale functions for visualization")
500 (description
501 "This package provides graphical scales that map data to aesthetics, and
502provides methods for automatically determining breaks and labels for axes and
503legends.")
504 (license license:expat)))
d11b808f
RW
505
506(define-public r-ggplot2
507 (package
508 (name "r-ggplot2")
b70fa3c7 509 (version "2.0.0")
d11b808f
RW
510 (source
511 (origin
512 (method url-fetch)
9cda3622 513 (uri (cran-uri "ggplot2" version))
d11b808f 514 (sha256
b70fa3c7 515 (base32 "07r5zw0ccv4sf1mdxcz9wa86p2c6j61cnnq18qdjrh3zhhcbmdp2"))))
d11b808f
RW
516 (build-system r-build-system)
517 (propagated-inputs
518 `(("r-digest" ,r-digest)
519 ("r-gtable" ,r-gtable)
520 ("r-plyr" ,r-plyr)
521 ("r-proto" ,r-proto)
522 ("r-reshape2" ,r-reshape2)
523 ("r-scales" ,r-scales)))
524 (home-page "http://ggplot2.org")
525 (synopsis "An implementation of the grammar of graphics")
526 (description
527 "Ggplot2 is an implementation of the grammar of graphics in R. It
528combines the advantages of both base and lattice graphics: conditioning and
529shared axes are handled automatically, and you can still build up a plot step
530by step from multiple data sources. It also implements a sophisticated
531multidimensional conditioning system and a consistent interface to map data to
532aesthetic attributes.")
533 (license license:gpl2+)))
ed6094fc
VVP
534
535(define-public r-assertthat
536 (package
537 (name "r-assertthat")
538 (version "0.1")
539 (source (origin
540 (method url-fetch)
9cda3622 541 (uri (cran-uri "assertthat" version))
ed6094fc
VVP
542 (sha256
543 (base32
544 "0dwsqajyglfscqilj843qfqn1ndbqpswa7b4l1d633qjk9d68qqk"))))
545 (build-system r-build-system)
546 (home-page "https://github.com/hadley/assertthat")
547 (synopsis "Easy pre and post assertions")
548 (description
549 "Assertthat is an extension to stopifnot() that makes it easy to declare
550the pre and post conditions that your code should satisfy, while also
551producing friendly error messages so that your users know what they've done
552wrong.")
553 (license license:gpl3+)))
6af48134
VVP
554
555(define-public r-lazyeval
556 (package
557 (name "r-lazyeval")
558 (version "0.1.10")
559 (source (origin
560 (method url-fetch)
9cda3622 561 (uri (cran-uri "lazyeval" version))
6af48134
VVP
562 (sha256
563 (base32
564 "02qfpn2fmy78vx4jxr7g7rhqzcm1kcivfwai7lbh0vvpawia0qwh"))))
565 (build-system r-build-system)
566 (home-page "https://github.com/hadley/lazyeval")
567 (synopsis "Lazy (non-standard) evaluation in R")
568 (description
569 "This package provides the tools necessary to do non-standard
570evaluation (NSE) in R.")
571 (license license:gpl3+)))
8ea6b30f
VVP
572
573(define-public r-dbi
574 (package
575 (name "r-dbi")
576 (version "0.3.1")
577 (source (origin
578 (method url-fetch)
9cda3622 579 (uri (cran-uri "DBI" version))
8ea6b30f
VVP
580 (sha256
581 (base32
582 "0xj5baxwnhl23rd5nskhjvranrwrc68f3xlyrklglipi41bm69hw"))))
583 (build-system r-build-system)
584 (home-page "https://github.com/rstats-db/DBI")
585 (synopsis "R database interface")
586 (description
587 "The DBI package provides a database interface (DBI) definition for
588communication between R and relational database management systems. All
589classes in this package are virtual and need to be extended by the various
590R/DBMS implementations.")
591 (license license:lgpl2.0+)))
675c9f44
VVP
592
593(define-public r-bh
594 (package
595 (name "r-bh")
596 (version "1.58.0-1")
597 (source (origin
598 (method url-fetch)
599 (uri (cran-uri "BH" version))
600 (sha256
601 (base32
602 "17rnwyw9ib2pvm60iixzkbz7ff4fslpifp1nlx4czp42hy67kqpf"))))
603 (build-system r-build-system)
604 (home-page "https://github.com/eddelbuettel/bh")
605 (synopsis "R package providing subset of Boost headers")
606 (description
607 "This package aims to provide the most useful subset of Boost libraries
608for template use among CRAN packages.")
609 (license license:boost1.0)))
256ccc92
VVP
610
611(define-public r-evaluate
612 (package
613 (name "r-evaluate")
614 (version "0.8")
615 (source (origin
616 (method url-fetch)
617 (uri (cran-uri "evaluate" version))
618 (sha256
619 (base32
620 "137gc35jlizhqnx19mxim3llrkm403abj8ghb2b7v5ls9rvd40pq"))))
621 (build-system r-build-system)
622 (propagated-inputs
623 `(("r-stringr" ,r-stringr)))
624 (home-page "https://github.com/hadley/evaluate")
625 (synopsis "Parsing and evaluation tools for R")
626 (description
627 "This package provides tools that allow you to recreate the parsing,
628evaluation and display of R code, with enough information that you can
629accurately recreate what happens at the command line. The tools can easily be
630adapted for other output formats, such as HTML or LaTeX.")
631 (license license:gpl3+)))
c5bf3abe
VVP
632
633(define-public r-formatr
634 (package
635 (name "r-formatr")
636 (version "1.2.1")
637 (source (origin
638 (method url-fetch)
639 (uri (cran-uri "formatR" version))
640 (sha256
641 (base32
642 "0f4cv2zv5wayyqx99ybfyl0p83kgjvnsv8dhcwa4s49kw6jsx1lr"))))
643 (build-system r-build-system)
644 (home-page "http://yihui.name/formatR")
645 (synopsis "Format R code automatically")
646 (description
647 "This package provides a function to format R source code. Spaces and
648indent will be added to the code automatically, and comments will be preserved
649under certain conditions, so that R code will be more human-readable and tidy.
650There is also a Shiny app as a user interface in this package.")
651 (license license:gpl3+)))
ad3f005b
VVP
652
653(define-public r-highr
654 (package
655 (name "r-highr")
656 (version "0.5.1")
657 (source (origin
658 (method url-fetch)
659 (uri (cran-uri "highr" version))
660 (sha256
661 (base32
662 "11hyawzhaw3ph5y5xphi7alx6df1d0i6wh0a2n5m4sxxhdrzswnb"))))
663 (build-system r-build-system)
664 (home-page "https://github.com/yihui/highr")
665 (synopsis "Syntax highlighting for R source code")
666 (description
667 "This package provides syntax highlighting for R source code. Currently
668it supports LaTeX and HTML output. Source code of other languages is
669supported via Andre Simon's highlight package.")
670 (license license:gpl3+)))
acbb40fa
VVP
671
672(define-public r-mime
673 (package
674 (name "r-mime")
675 (version "0.4")
676 (source (origin
677 (method url-fetch)
678 (uri (cran-uri "mime" version))
679 (sha256
680 (base32
681 "145cdcg252w2zsq67dmvmsqka60msfp7agymlxs3gl3ihgiwg46p"))))
682 (build-system r-build-system)
683 (home-page "https://github.com/yihui/mime")
684 (synopsis "R package to map filenames to MIME types")
685 (description
686 "This package guesses the MIME type from a filename extension using the
687data derived from /etc/mime.types in UNIX-type systems.")
688 (license license:gpl2)))
3f8ac353
VVP
689
690(define-public r-markdown
691 (package
692 (name "r-markdown")
693 (version "0.7.7")
694 (source (origin
695 (method url-fetch)
696 (uri (cran-uri "markdown" version))
697 (sha256
698 (base32
699 "00j1hlib3il50azs2vlcyhi0bjpx1r50mxr9w9dl5g1bwjjc71hb"))))
700 (build-system r-build-system)
701 ;; Skip check phase because the tests require the r-knitr package to be
702 ;; installed. This prevents installation failures. Knitr normally
703 ;; shouldn't be available since r-markdown is a dependency of the r-knitr
704 ;; package.
705 (arguments `(#:tests? #f))
706 (propagated-inputs
707 `(("r-mime" ,r-mime)))
708 (home-page "https://github.com/rstudio/markdown")
709 (synopsis "Markdown rendering for R")
710 (description
711 "This package provides R bindings to the Sundown Markdown rendering
712library (https://github.com/vmg/sundown). Markdown is a plain-text formatting
713syntax that can be converted to XHTML or other formats.")
714 (license license:gpl2)))
ea3a8095
VVP
715
716(define-public r-yaml
717 (package
718 (name "r-yaml")
719 (version "2.1.13")
720 (source (origin
721 (method url-fetch)
722 (uri (cran-uri "yaml" version))
723 (sha256
724 (base32
725 "18kz5mfn7qpif5pn91w4vbrc5bkycsj85vwm5wxwzjlb02i9mxi6"))))
726 (build-system r-build-system)
727 (home-page "https://cran.r-project.org/web/packages/yaml/")
728 (synopsis "Methods to convert R data to YAML and back")
729 (description
730 "This package implements the libyaml YAML 1.1 parser and
731emitter (http://pyyaml.org/wiki/LibYAML) for R.")
732 (license license:bsd-3)))
213656b9
VVP
733
734(define-public r-knitr
735 (package
736 (name "r-knitr")
737 (version "1.11")
738 (source (origin
739 (method url-fetch)
740 (uri (cran-uri "knitr" version))
741 (sha256
742 (base32
743 "1ikjla0hnpjfkdbydqhhqypc0aiizbi4nyn8c694sdk9ca4jasdd"))))
744 (build-system r-build-system)
745 (propagated-inputs
746 `(("r-evaluate" ,r-evaluate)
747 ("r-digest" ,r-digest)
748 ("r-formatr" ,r-formatr)
749 ("r-highr" ,r-highr)
750 ("r-markdown" ,r-markdown)
751 ("r-stringr" ,r-stringr)
752 ("r-yaml" ,r-yaml)))
753 (home-page "http://yihui.name/knitr/")
754 (synopsis "General-purpose package for dynamic report generation in R")
755 (description
756 "This package provides a general-purpose tool for dynamic report
757generation in R using Literate Programming techniques.")
758 ;; The code is released under any version of the GPL. As it is used by
759 ;; r-markdown which is available under GPLv2 only, we have chosen GPLv2+
760 ;; here.
761 (license license:gpl2+)))
4f0e8484
VVP
762
763(define-public r-microbenchmark
764 (package
765 (name "r-microbenchmark")
766 (version "1.4-2")
767 (source (origin
768 (method url-fetch)
769 (uri (cran-uri "microbenchmark" version))
770 (sha256
771 (base32
772 "05yxvdnkxr2ll94h6f2m5sn3gg7vrlm9nbdxgmj2g8cp8gfxpfkg"))))
773 (build-system r-build-system)
774 (propagated-inputs
775 `(("r-ggplot2" ,r-ggplot2)))
776 (home-page "https://cran.r-project.org/web/packages/microbenchmark/")
777 (synopsis "Accurate timing functions for R")
778 (description
779 "This package provides infrastructure to accurately measure and compare
780the execution time of R expressions.")
781 (license license:bsd-2)))
1cf1cbb0
VVP
782
783(define-public r-codetools
784 (package
785 (name "r-codetools")
786 (version "0.2-14")
787 (source (origin
788 (method url-fetch)
789 (uri (cran-uri "codetools" version))
790 (sha256
791 (base32
792 "0y9r4m2b8xgavr89sc179knzwpz54xljbc1dinpq2q07i4xn0397"))))
793 (build-system r-build-system)
794 (home-page "https://cran.r-project.org/web/packages/codetools/index.html")
795 (synopsis "Code analysis tools for R")
796 (description "This package provides code analysis tools for R.")
797 (license license:gpl3+)))
0661b4db
VVP
798
799(define-public r-pryr
800 (package
801 (name "r-pryr")
802 (version "0.1.2")
803 (source (origin
804 (method url-fetch)
805 (uri (cran-uri "pryr" version))
806 (sha256
807 (base32
808 "1in350a8hxwf580afavasvn3jc7x2p1b7nlwmj1scakfz74vghk5"))))
809 (build-system r-build-system)
810 (propagated-inputs
811 `(("r-stringr" ,r-stringr)
812 ("r-codetools" ,r-codetools)))
813 (native-inputs
814 `(("r-rcpp" ,r-rcpp)))
815 (home-page "https://github.com/hadley/pryr")
816 (synopsis "Tools for computing on the R language")
817 (description
818 "This package provides useful tools to pry back the covers of R and
819understand the language at a deeper level.")
820 (license license:gpl2)))
b668a95c
VVP
821
822(define-public r-memoise
823 (package
824 (name "r-memoise")
825 (version "0.2.1")
826 (source (origin
827 (method url-fetch)
828 (uri (cran-uri "memoise" version))
829 (sha256
830 (base32
831 "19wm4b3kq6xva43kga3xydnl7ybl5mq7b4y2fczgzzjz63jd75y4"))))
832 (build-system r-build-system)
833 (propagated-inputs
834 `(("r-digest" ,r-digest)))
835 (home-page "http://github.com/hadley/memoise")
836 (synopsis "Memoise functions for R")
837 (description
838 "This R package allows to cache the results of a function so that when
839you call it again with the same arguments it returns the pre-computed value.")
840 (license license:expat)))
834f7ff3
VVP
841
842(define-public r-crayon
843 (package
844 (name "r-crayon")
845 (version "1.3.1")
846 (source (origin
847 (method url-fetch)
848 (uri (cran-uri "crayon" version))
849 (sha256
850 (base32
851 "0d38fm06h272a8iqlc0d45m2rh36giwqw7mwq4z8hkp4vs975fmm"))))
852 (build-system r-build-system)
853 (propagated-inputs
854 `(("r-memoise" ,r-memoise)))
855 (home-page "https://github.com/gaborcsardi/crayon")
856 (synopsis "Colored terminal output for R")
857 (description
858 "Colored terminal output on terminals that support ANSI color and
859highlight codes. It also works in Emacs ESS. ANSI color support is
860automatically detected. Colors and highlighting can be combined and nested.
861New styles can also be created easily. This package was inspired by the
862\"chalk\" JavaScript project.")
863 (license license:expat)))
5b9789a6
VVP
864
865(define-public r-testthat
866 (package
867 (name "r-testthat")
868 (version "0.10.0")
869 (source (origin
870 (method url-fetch)
871 (uri (cran-uri "testthat" version))
872 (sha256
873 (base32
874 "0b3akwcx5mv9dmi8vssbk91hr3yrrdxd2fm6zhr31fnyz8kjx4pw"))))
875 (build-system r-build-system)
876 (propagated-inputs
877 `(("r-digest" ,r-digest)
878 ("r-crayon" ,r-crayon)))
879 (home-page "https://github.com/hadley/testthat")
880 (synopsis "Unit testing for R")
881 (description
882 "This package provides a unit testing system for R designed to be fun,
883flexible and easy to set up.")
884 (license license:expat)))
ffd4b478
VVP
885
886(define-public r-r6
887 (package
888 (name "r-r6")
889 (version "2.1.1")
890 (source (origin
891 (method url-fetch)
892 (uri (cran-uri "R6" version))
893 (sha256
894 (base32
895 "16qq35bgxgswf989yvsqkb6fv7srpf8n8dv2s2c0z9n6zgmwq66m"))))
896 (build-system r-build-system)
897 (propagated-inputs
898 `(("r-knitr" ,r-knitr)
899 ("r-microbenchmark" ,r-microbenchmark)
900 ("r-pryr" ,r-pryr)
901 ("r-testthat" ,r-testthat)
902 ("r-ggplot2" ,r-ggplot2)
903 ("r-scales" ,r-scales)))
904 (home-page "https://github.com/wch/R6/")
905 (synopsis "Classes with reference semantics in R")
906 (description
907 "The R6 package allows the creation of classes with reference semantics,
908similar to R's built-in reference classes. Compared to reference classes, R6
909classes are simpler and lighter-weight, and they are not built on S4 classes
910so they do not require the methods package. These classes allow public and
911private members, and they support inheritance, even when the classes are
912defined in different packages.")
913 (license license:expat)))
2a3a8ae7
VVP
914
915(define-public r-dplyr
916 (package
917 (name "r-dplyr")
918 (version "0.4.3")
919 (source (origin
920 (method url-fetch)
921 (uri (cran-uri "dplyr" version))
922 (sha256
923 (base32
924 "1p8rbn4p4yrx2840dapwiahf9iqa8gnvd35nyc200wfhmrxlqdlc"))))
925 (build-system r-build-system)
926 (propagated-inputs
927 `(("r-assertthat" ,r-assertthat)
928 ("r-r6" ,r-r6)
929 ("r-magrittr" ,r-magrittr)
930 ("r-lazyeval" ,r-lazyeval)
931 ("r-dbi" ,r-dbi)))
932 (native-inputs
933 `(("r-rcpp" ,r-rcpp)
934 ("r-bh" ,r-bh)))
935 (home-page "https://github.com/hadley/dplyr")
936 (synopsis "Tools for working with data frames in R")
937 (description
938 "dplyr is the next iteration of plyr. It is focussed on tools for
939working with data frames. It has three main goals: 1) identify the most
940important data manipulation tools needed for data analysis and make them easy
941to use in R; 2) provide fast performance for in-memory data by writing key
942pieces of code in C++; 3) use the same code interface to work with data no
943matter where it is stored, whether in a data frame, a data table or
944database.")
945 (license license:expat)))
91312ebe
VVP
946
947(define-public r-chron
948 (package
949 (name "r-chron")
950 (version "2.3-47")
951 (source (origin
952 (method url-fetch)
953 (uri (cran-uri "chron" version))
954 (sha256
955 (base32
956 "1xj50kk8b8mbjpszp8i0wbripb5a4b36jcscwlbyap8n4487g34s"))))
957 (build-system r-build-system)
958 (home-page "http://cran.r-project.org/web/packages/chron")
959 (synopsis "Chronological R objects which can handle dates and times")
960 (description
961 "This package provides chronological R objects which can handle dates and
962times.")
963 (license license:gpl2)))
0e4e03f8 964
62141c07 965(define-public r-data-table
0e4e03f8 966 (package
62141c07 967 (name "r-data-table")
0e4e03f8
VVP
968 (version "1.9.6")
969 (source (origin
970 (method url-fetch)
971 (uri (cran-uri "data.table" version))
972 (sha256
973 (base32
974 "0vi3zplpxqbg78z9ifjfs1kl2i8qhkqxr7l9ysp2663kq54w6x3g"))))
975 (build-system r-build-system)
976 (propagated-inputs
977 `(("r-chron" ,r-chron)))
978 (home-page "https://github.com/Rdatatable/data.table/wiki")
979 (synopsis "Enhanced version of data.frame R object")
980 (description
62141c07
RW
981 "The R package @code{data.table} is an extension of @code{data.frame}
982providing functions for fast aggregation of large data (e.g. 100GB in RAM),
983fast ordered joins, fast add/modify/delete of columns by group, column listing
984and fast file reading.")
985 (license license:gpl3+)))
9bc08aa0
RW
986
987(define-public python-patsy
988 (package
989 (name "python-patsy")
f4cd2cea 990 (version "0.4.1")
9bc08aa0
RW
991 (source (origin
992 (method url-fetch)
f4cd2cea 993 (uri (pypi-uri "patsy" version ".zip"))
9bc08aa0
RW
994 (sha256
995 (base32
f4cd2cea 996 "1m6knyq8hbqlx242y4da02j0x86j4qggs1j7q186w3jv0j0c476w"))))
9bc08aa0
RW
997 (build-system python-build-system)
998 (arguments
999 `(#:phases
1000 (modify-phases %standard-phases
1001 (replace 'check (lambda _ (zero? (system* "nosetests" "-v"))))
1002 (add-after 'unpack 'prevent-generation-of-egg-archive
1003 (lambda _
1004 (substitute* "setup.py"
1005 (("from setuptools import setup")
1006 "from distutils.core import setup"))
1007 #t)))))
1008 (propagated-inputs
1009 `(("python-numpy" ,python-numpy)
1010 ("python-scipy" ,python-scipy)
1011 ("python-six" ,python-six)))
1012 (native-inputs
1013 `(("python-nose" ,python-nose)
1014 ("unzip" ,unzip)))
1015 (home-page "https://github.com/pydata/patsy")
1016 (synopsis "Describe statistical models and build design matrices")
1017 (description
1018 "Patsy is a Python package for describing statistical models and for
1019building design matrices.")
1020 ;; The majority of the code is distributed under BSD-2. The module
1021 ;; patsy.compat contains code derived from the Python standard library,
1022 ;; and is covered by the PSFL.
5ad87e5b
EF
1023 (license (list license:bsd-2 license:psfl))
1024 (properties `((python2-variant . ,(delay python2-patsy))))))
9bc08aa0
RW
1025
1026(define-public python2-patsy
5ad87e5b 1027 (let ((patsy (package-with-python2 (strip-python2-variant python-patsy))))
9bc08aa0
RW
1028 (package (inherit patsy)
1029 (native-inputs
1030 `(("python2-setuptools" ,python2-setuptools)
5ad87e5b 1031 ,@(package-native-inputs patsy))))))
37fdba7e
RW
1032
1033(define-public python-statsmodels
1034 (package
1035 (name "python-statsmodels")
1036 (version "0.6.1")
1037 (source
1038 (origin
1039 (method url-fetch)
1040 (uri (string-append "https://pypi.python.org/packages/source/"
1041 "s/statsmodels/statsmodels-" version ".tar.gz"))
1042 (sha256
1043 (base32
1044 "0xn67sqr0cc1lmlhzm71352hrb4hw7g318p5ff5q97pc98vl8kmy"))))
1045 (build-system python-build-system)
1046 (arguments
1047 `(#:phases
1048 (modify-phases %standard-phases
1049 ;; tests must be run after installation
1050 (delete 'check)
1051 (add-after 'unpack 'set-matplotlib-backend-to-agg
1052 (lambda _
1053 ;; Set the matplotlib backend to Agg to avoid problems using the
1054 ;; GTK backend without a display.
1055 (substitute* (find-files "statsmodels/graphics/tests" "\\.py")
1056 (("import matplotlib\\.pyplot as plt" line)
1057 (string-append "import matplotlib;matplotlib.use('Agg');"
1058 line)))
1059 #t))
1060 (add-after 'install 'check
1061 (lambda _
1062 (with-directory-excursion "/tmp"
1063 (zero? (system* "nosetests"
1064 "--stop"
1065 "-v" "statsmodels"))))))))
1066 (propagated-inputs
1067 `(("python-numpy" ,python-numpy)
1068 ("python-scipy" ,python-scipy)
1069 ("python-pandas" ,python-pandas)
1070 ("python-patsy" ,python-patsy)
1071 ("python-matplotlib" ,python-matplotlib)))
1072 (native-inputs
1073 `(("python-cython" ,python-cython)
1074 ("python-nose" ,python-nose)
1075 ("python-sphinx" ,python-sphinx)))
1076 (home-page "http://statsmodels.sourceforge.net/")
1077 (synopsis "Statistical modeling and econometrics in Python")
1078 (description
1079 "Statsmodels is a Python package that provides a complement to scipy for
1080statistical computations including descriptive statistics and estimation and
1081inference for statistical models.")
1082 (license license:bsd-3)))
1083
1084(define-public python2-statsmodels
1085 (let ((stats (package-with-python2 python-statsmodels)))
1086 (package (inherit stats)
1087 (propagated-inputs
1088 `(("python2-numpy" ,python2-numpy)
1089 ("python2-scipy" ,python2-scipy)
1090 ("python2-pandas" ,python2-pandas)
1091 ("python2-patsy" ,python2-patsy)
1092 ("python2-matplotlib" ,python2-matplotlib)))
1093 (native-inputs
1094 `(("python2-setuptools" ,python2-setuptools)
1095 ,@(package-native-inputs stats))))))
67a167fd
RW
1096
1097(define-public r-xml2
1098 (package
1099 (name "r-xml2")
1100 (version "0.1.2")
1101 (source
1102 (origin
1103 (method url-fetch)
1104 (uri (cran-uri "xml2" version))
1105 (sha256
1106 (base32
1107 "0jjilz36h7vbdbkpvjnja1vgjf6d1imql3z4glqn2m2b74w5qm4c"))))
1108 (build-system r-build-system)
1109 (inputs
1110 `(("libxml2" ,libxml2)))
1111 (propagated-inputs
1112 `(("r-rcpp" ,r-rcpp)
1113 ("r-bh" ,r-bh)))
1114 (home-page "https://github.com/hadley/xml2")
1115 (synopsis "Parse XML with R")
1116 (description
1117 "This package provides a simple, consistent interface to working with XML
1118files in R. It is built on top of the libxml2 C library.")
1119 (license license:gpl2+)))
6140747f
RW
1120
1121(define-public r-rversions
1122 (package
1123 (name "r-rversions")
1124 (version "1.0.2")
1125 (source (origin
1126 (method url-fetch)
1127 (uri (cran-uri "rversions" version))
1128 (sha256
1129 (base32
1130 "0xmi461g1rf5ngb7r1sri798jn6icld1xq25wj9jii2ca8j8xv68"))))
1131 (build-system r-build-system)
1132 (propagated-inputs
1133 `(("r-curl" ,r-curl)
1134 ("r-xml2" ,r-xml2)))
1135 (home-page "https://github.com/metacran/rversions")
1136 (synopsis "Query R versions, including 'r-release' and 'r-oldrel'")
1137 (description
1138 "This package provides functions to query the main R repository to find
1139the versions that @code{r-release} and @code{r-oldrel} refer to, and also all
1140previous R versions and their release dates.")
1141 (license license:expat)))
1a77eccd
RW
1142
1143(define-public r-whisker
1144 (package
1145 (name "r-whisker")
1146 (version "0.3-2")
1147 (source (origin
1148 (method url-fetch)
1149 (uri (cran-uri "whisker" version))
1150 (sha256
1151 (base32
1152 "0z4cn115gxcl086d6bnqr8afi67b6a7xqg6ivmk3l4ng1x8kcj28"))))
1153 (build-system r-build-system)
1154 (home-page "http://github.com/edwindj/whisker")
1155 (synopsis "Logicless mustache templating for R")
1156 (description
1157 "This package provides logicless templating, with a syntax that is not
1158limited to R.")
1159 (license license:gpl3+)))
13d083af
RW
1160
1161(define-public r-brew
1162 (package
1163 (name "r-brew")
1164 (version "1.0-6")
1165 (source (origin
1166 (method url-fetch)
1167 (uri (cran-uri "brew" version))
1168 (sha256
1169 (base32
1170 "1vghazbcha8gvkwwcdagjvzx6yl8zm7kgr0i9wxr4jng06d1l3fp"))))
1171 (build-system r-build-system)
1172 (home-page "http://cran.r-project.org/web/packages/brew")
1173 (synopsis "Templating framework for report generation")
1174 (description
1175 "The brew package implements a templating framework for mixing text and R
1176code for report generation. The template syntax is similar to PHP, Ruby's erb
1177module, Java Server Pages, and Python's psp module.")
1178 (license license:gpl2+)))
167c9882
RW
1179
1180(define-public r-roxygen2
1181 (package
1182 (name "r-roxygen2")
1183 (version "5.0.0")
1184 (source (origin
1185 (method url-fetch)
1186 (uri (cran-uri "roxygen2" version))
1187 (sha256
1188 (base32
1189 "0xjdphjs7l1v71lylmqgp76cbcxzvm9z1a40jgkdwvz072nn08vr"))))
1190 (build-system r-build-system)
1191 (propagated-inputs
1192 `(("r-brew" ,r-brew)
1193 ("r-digest" ,r-digest)
1194 ("r-rcpp" ,r-rcpp)
1195 ("r-stringi" ,r-stringi)
1196 ("r-stringr" ,r-stringr)))
1197 (home-page "https://github.com/klutometis/roxygen")
1198 (synopsis "In-source documentation system for R")
1199 (description
1200 "Roxygen2 is a Doxygen-like in-source documentation system for Rd,
1201collation, and NAMESPACE files.")
1202 (license license:gpl2+)))
681e03c1
RW
1203
1204(define-public r-httr
1205 (package
1206 (name "r-httr")
1207 (version "1.0.0")
1208 (source (origin
1209 (method url-fetch)
1210 (uri (cran-uri "httr" version))
1211 (sha256
1212 (base32
1213 "1yprw8p4g8026jhravgg1hdwj1g51cpdgycyr5a58jwm4i5f79cq"))))
1214 (build-system r-build-system)
1215 (propagated-inputs
1216 `(("r-curl" ,r-curl)
1217 ("r-digest" ,r-digest)
1218 ("r-jsonlite" ,r-jsonlite)
1219 ("r-mime" ,r-mime)
1220 ("r-r6" ,r-r6)
1221 ("r-stringr" ,r-stringr)))
1222 (home-page "https://github.com/hadley/httr")
1223 (synopsis "Tools for working with URLs and HTTP")
1224 (description
1225 "The aim of httr is to provide a wrapper for RCurl customised to the
1226demands of modern web APIs. It provides useful tools for working with HTTP
1227organised by HTTP verbs (@code{GET()}, @code{POST()}, etc). Configuration
1228functions make it easy to control additional request components.")
1229 (license license:expat)))
035711f1
RW
1230
1231(define-public r-git2r
1232 (package
1233 (name "r-git2r")
1234 (version "0.11.0")
1235 (source (origin
1236 (method url-fetch)
1237 (uri (cran-uri "git2r" version))
1238 (sha256
1239 (base32
1240 "1h5ag8sm512jsn2sp4yhiqspc7hjq5y8z0kqz24sdznxa3b7rpn9"))))
1241 (build-system r-build-system)
1242 ;; This R package contains modified sources of libgit2. This modified
1243 ;; version of libgit2 is built as the package is built. Hence libgit2 is
1244 ;; not among the inputs of this package.
1245 (inputs
1246 `(("libssh2" ,libssh2)
1247 ("openssl" ,openssl)
1248 ("zlib" ,zlib)))
1249 (home-page "https://github.com/ropensci/git2r")
1250 (synopsis "Access Git repositories with R")
1251 (description
1252 "This package provides an R interface to the libgit2 library, which is a
1253pure C implementation of the Git core methods.")
1254 ;; GPLv2 only with linking exception.
1255 (license license:gpl2)))
81a4228b
RW
1256
1257(define-public r-rstudioapi
1258 (package
1259 (name "r-rstudioapi")
1260 (version "0.3.1")
1261 (source (origin
1262 (method url-fetch)
1263 (uri (cran-uri "rstudioapi" version))
1264 (sha256
1265 (base32
1266 "0q7671d924nzqsqhs8d9p7l907bcam56wjwm7vvz44xgj0saj8bs"))))
1267 (build-system r-build-system)
1268 (home-page "http://cran.r-project.org/web/packages/rstudioapi")
1269 (synopsis "Safely access the RStudio API")
1270 (description
1271 "This package provides functions to access the RStudio API and provide
1272informative error messages when it's not available.")
1273 (license license:expat)))
d6e21589
RW
1274
1275(define-public r-devtools
1276 (package
1277 (name "r-devtools")
fa9f0e6c 1278 (version "1.10.0")
d6e21589
RW
1279 (source (origin
1280 (method url-fetch)
1281 (uri (cran-uri "devtools" version))
1282 (sha256
1283 (base32
fa9f0e6c 1284 "11x51bqhjwypbxv5sfnrnxx06b92k8kzmmx7zrwk3537r072b6pa"))))
d6e21589
RW
1285 (build-system r-build-system)
1286 (propagated-inputs
1287 `(("r-curl" ,r-curl)
1288 ("r-digest" ,r-digest)
1289 ("r-evaluate" ,r-evaluate)
1290 ("r-git2r" ,r-git2r)
1291 ("r-httr" ,r-httr)
1292 ("r-jsonlite" ,r-jsonlite)
1293 ("r-memoise" ,r-memoise)
1294 ("r-roxygen2" ,r-roxygen2)
1295 ("r-rstudioapi" ,r-rstudioapi)
1296 ("r-rversions" ,r-rversions)
fa9f0e6c
RJ
1297 ("r-whisker" ,r-whisker)
1298 ("r-withr" ,r-withr)))
d6e21589
RW
1299 (home-page "https://github.com/hadley/devtools")
1300 (synopsis "Tools to make developing R packages easier")
1301 (description "The devtools package is a collection of package development
1302tools to simplify the devolpment of R packages.")
1303 (license license:gpl2+)))
03af370f 1304
a080e50c
RJ
1305(define-public r-withr
1306 (package
1307 (name "r-withr")
1308 (version "1.0.1")
1309 (source (origin
1310 (method url-fetch)
1311 (uri (cran-uri "withr" version))
1312 (sha256
1313 (base32
1314 "0zbj3rd7dc0ycknmay7y7rm1qvnh9n05jw93gjggz46j2zfmy93y"))))
1315 (build-system r-build-system)
1316 (home-page "https://github.com/jimhester/withr")
1317 (synopsis "Run code with temporarily modified global state")
1318 (description
1319 "This package provides a set of functions to run R code in an environment
1320in which global state has been temporarily modified. Many of these functions
1321were originally a part of the r-devtools package.")
1322 (license license:gpl2+)))
1323
03af370f
RW
1324(define-public r-readr
1325 (package
1326 (name "r-readr")
1327 (version "0.2.2")
1328 (source (origin
1329 (method url-fetch)
1330 (uri (cran-uri "readr" version))
1331 (sha256
1332 (base32
1333 "156422xwvskynna5kjc8h1qqnn50kxgjrihl2h2b7vm9sxxdyr2m"))))
1334 (build-system r-build-system)
1335 (propagated-inputs
1336 `(("r-curl" ,r-curl)
1337 ("r-rcpp" ,r-rcpp)
1338 ("r-bh" ,r-bh)))
1339 (home-page "https://github.com/hadley/readr")
1340 (synopsis "Read tabular data")
1341 (description
1342 "This package provides functions to read flat or tabular text files from
1343disk (or a connection).")
1344 (license license:gpl2+)))
60a9d3d0
RW
1345
1346(define-public r-plotrix
1347 (package
1348 (name "r-plotrix")
1349 (version "3.6")
1350 (source (origin
1351 (method url-fetch)
1352 (uri (cran-uri "plotrix" version))
1353 (sha256
1354 (base32
1355 "0zn6k8azh40v0lg7q9yd4sy30a26bcc0fjvndn4z7k36avlw4i25"))))
1356 (build-system r-build-system)
1357 (home-page "http://cran.r-project.org/web/packages/plotrix")
1358 (synopsis "Various plotting functions")
1359 (description
1360 "This package provides lots of plotting, various labeling, axis and color
1361scaling functions for R.")
1362 (license license:gpl2+)))
2a40f763
RW
1363
1364(define-public r-gridbase
1365 (package
1366 (name "r-gridbase")
1367 (version "0.4-7")
1368 (source (origin
1369 (method url-fetch)
1370 (uri (cran-uri "gridBase" version))
1371 (sha256
1372 (base32
1373 "09jzw4rzwf2y5lcz7b16mb68pn0fqigv34ff7lr6w3yi9k91i1xy"))))
1374 (build-system r-build-system)
1375 (home-page "http://cran.r-project.org/web/packages/gridBase")
1376 (synopsis "Integration of base and grid graphics")
1377 (description
1378 "This package provides an integration of base and grid graphics for R.")
1379 (license license:gpl2+)))
ca3476cd
RW
1380
1381(define-public r-lattice
1382 (package
1383 (name "r-lattice")
1384 (version "0.20-33")
1385 (source (origin
1386 (method url-fetch)
1387 (uri (cran-uri "lattice" version))
1388 (sha256
1389 (base32
1390 "0car12x5vl9k180i9pc86lq3cvwqakdpqn3lgdf98k9n2h52cilg"))))
1391 (build-system r-build-system)
1392 (home-page "http://lattice.r-forge.r-project.org/")
1393 (synopsis "High-level data visualization system")
1394 (description
1395 "The lattice package provides a powerful and elegant high-level data
1396visualization system inspired by Trellis graphics, with an emphasis on
1397multivariate data. Lattice is sufficient for typical graphics needs, and is
1398also flexible enough to handle most nonstandard requirements.")
1399 (license license:gpl2+)))
e22d4ca4
RW
1400
1401(define-public r-rcpparmadillo
1402 (package
1403 (name "r-rcpparmadillo")
1404 (version "0.6.200.2.0")
1405 (source (origin
1406 (method url-fetch)
1407 (uri (cran-uri "RcppArmadillo" version))
1408 (sha256
1409 (base32
1410 "137wqqga776yj6synx5awhrzgkz7mmqnvgmggh9l4k6d99vwp9gj"))
1411 (modules '((guix build utils)))
1412 ;; Remove bundled armadillo sources
1413 (snippet
1414 '(begin
1415 (delete-file-recursively "inst/include/armadillo_bits")
1416 (delete-file "inst/include/armadillo")))))
1417 (properties `((upstream-name . "RcppArmadillo")))
1418 (build-system r-build-system)
1419 (arguments
1420 `(#:phases
1421 (modify-phases %standard-phases
1422 (add-after 'unpack 'link-against-armadillo
1423 (lambda _
1424 (substitute* "src/Makevars"
1425 (("PKG_LIBS=" prefix)
1426 (string-append prefix "-larmadillo"))))))))
1427 (propagated-inputs
1428 `(("r-rcpp" ,r-rcpp)
1429 ("armadillo" ,armadillo-for-rcpparmadillo)))
1430 (home-page "https://github.com/RcppCore/RcppArmadillo")
1431 (synopsis "Rcpp integration for the Armadillo linear algebra library")
1432 (description
1433 "Armadillo is a templated C++ linear algebra library that aims towards a
1434good balance between speed and ease of use. Integer, floating point and
1435complex numbers are supported, as well as a subset of trigonometric and
1436statistics functions. Various matrix decompositions are provided through
1437optional integration with LAPACK and ATLAS libraries. This package includes
1438the header files from the templated Armadillo library.")
1439 ;; Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
1440 ;; bindings to Armadillo) is licensed under the GNU GPL version 2 or
1441 ;; later, as is the rest of 'Rcpp'.
1442 (license license:gpl2+)))
bb6d2dad
RW
1443
1444(define-public r-bitops
1445 (package
1446 (name "r-bitops")
1447 (version "1.0-6")
1448 (source (origin
1449 (method url-fetch)
1450 (uri (cran-uri "bitops" version))
1451 (sha256
1452 (base32
1453 "176nr5wpnkavn5z0yy9f7d47l37ndnn2w3gv854xav8nnybi6wwv"))))
1454 (build-system r-build-system)
1455 (home-page "http://cran.r-project.org/web/packages/bitops")
1456 (synopsis "Bitwise operations")
1457 (description
1458 "This package provides functions for bitwise operations on integer
1459vectors.")
1460 (license license:gpl2+)))
4c1f2705
RW
1461
1462(define-public r-catools
1463 (package
1464 (name "r-catools")
1465 (version "1.17.1")
1466 (source (origin
1467 (method url-fetch)
1468 (uri (cran-uri "caTools" version))
1469 (sha256
1470 (base32
1471 "1x4szsn2qmbzpyjfdaiz2q7jwhap2gky9wq0riah74q0pzz76ank"))))
1472 (properties `((upstream-name . "caTools")))
1473 (build-system r-build-system)
1474 (propagated-inputs
1475 `(("r-bitops" ,r-bitops)))
1476 (home-page "http://cran.r-project.org/web/packages/caTools")
1477 (synopsis "Various tools including functions for moving window statistics")
1478 (description
1479 "This package contains several basic utility functions including:
1480moving (rolling, running) window statistic functions, read/write for GIF and
1481ENVI binary files, fast calculation of AUC, LogitBoost classifier, base64
1482encoder/decoder, round-off-error-free sum and cumsum, etc.")
1483 (license license:gpl3+)))
77bdb276
RW
1484
1485(define-public r-rmarkdown
1486 (package
1487 (name "r-rmarkdown")
1488 (version "0.8.1")
1489 (source
1490 (origin
1491 (method url-fetch)
1492 (uri (cran-uri "rmarkdown" version))
1493 (sha256
1494 (base32
1495 "07q5g9dvac5j3vnf4sjc60mnkij1k6y7vnzjz6anf499rwdwbxza"))))
1496 (properties `((upstream-name . "rmarkdown")))
1497 (build-system r-build-system)
1498 (propagated-inputs
1499 `(("r-catools" ,r-catools)
1500 ("r-htmltools" ,r-htmltools)
1501 ("r-knitr" ,r-knitr)
1502 ("r-yaml" ,r-yaml)
1503 ("ghc-pandoc" ,ghc-pandoc)))
1504 (home-page "http://rmarkdown.rstudio.com")
1505 (synopsis "Convert R Markdown documents into a variety of formats")
1506 (description
1507 "This package provides tools to convert R Markdown documents into a
1508variety of formats.")
1509 (license license:gpl3+)))
b73751c8
RW
1510
1511(define-public r-gtable
1512 (package
1513 (name "r-gtable")
1514 (version "0.1.2")
1515 (source (origin
1516 (method url-fetch)
1517 (uri (cran-uri "gtable" version))
1518 (sha256
1519 (base32
1520 "0k9hfj6r5y238gqh92s3cbdn34biczx3zfh79ix5xq0c5vkai2xh"))))
1521 (properties `((upstream-name . "gtable")))
1522 (build-system r-build-system)
1523 (home-page "http://cran.r-project.org/web/packages/gtable")
1524 (synopsis "Arrange grobs in tables")
1525 (description
1526 "This package provides tools to make it easier to work with tables of
1527grobs.")
1528 (license license:gpl2+)))
9e47f30b
RW
1529
1530(define-public r-gridextra
1531 (package
1532 (name "r-gridextra")
1533 (version "2.0.0")
1534 (source (origin
1535 (method url-fetch)
1536 (uri (cran-uri "gridExtra" version))
1537 (sha256
1538 (base32
1539 "19yyrfd37c5hxlavb9lca9l26wjhc80rlqhgmfj9k3xhbvvpdp17"))))
1540 (properties `((upstream-name . "gridExtra")))
1541 (build-system r-build-system)
1542 (propagated-inputs
1543 `(("r-gtable" ,r-gtable)))
1544 (native-inputs
1545 `(("r-knitr" ,r-knitr))) ;for building vignettes
1546 (home-page "https://github.com/baptiste/gridextra")
1547 (synopsis "Miscellaneous functions for \"Grid\" graphics")
1548 (description
1549 "This package provides a number of user-level functions to work with
1550@code{grid} graphics, notably to arrange multiple grid-based plots on a page,
1551and draw tables.")
1552 (license license:gpl2+)))
1553
21e4d6a9
RW
1554(define-public r-rsqlite
1555 (package
1556 (name "r-rsqlite")
1557 (version "1.0.0")
1558 (source (origin
1559 (method url-fetch)
1560 (uri (cran-uri "RSQLite" version))
1561 (sha256
1562 (base32
1563 "08b1syv8z887gxiw8i09dpqh0zisfb6ihq6qqr01zipvkahzq34f"))))
1564 (properties `((upstream-name . "RSQLite")))
1565 (build-system r-build-system)
1566 (propagated-inputs
1567 `(("r-dbi" ,r-dbi)))
1568 (home-page "https://github.com/rstats-db/RSQLite")
1569 (synopsis "SQLite interface for R")
1570 (description
1571 "This package embeds the SQLite database engine in R and provides an
1572interface compliant with the DBI package. The source for the SQLite
1573engine (version 3.8.6) is included.")
1574 (license license:lgpl2.0+)))
1575
cefaa79c
RW
1576(define-public r-rcurl
1577 (package
1578 (name "r-rcurl")
1579 (version "1.95-0.1.2")
1580 (source (origin
1581 (method url-fetch)
1582 (uri (string-append "http://www.bioconductor.org/packages/"
1583 "release/extra/src/"
1584 "contrib/RCurl_" version ".tar.gz"))
1585 (sha256
1586 (base32
1587 "0l7qi45jxlf898n0jazabnam1yyczvqfdknd00bdirhhiplpd1sc"))))
1588 (properties `((upstream-name . "RCurl")))
1589 (build-system r-build-system)
1590 (inputs
1591 `(("libcurl" ,curl)))
1592 (propagated-inputs
1593 `(("r-bitops" ,r-bitops)))
1594 (home-page "http://www.omegahat.org/RCurl")
1595 (synopsis "General network client interface for R")
1596 (description
1597 "The package allows one to compose general HTTP requests and provides
1598convenient functions to fetch URIs, GET and POST forms, etc. and process the
1599results returned by the Web server. This provides a great deal of control
1600over the HTTP/FTP/... connection and the form of the request while providing a
1601higher-level interface than is available just using R socket connections.
1602Additionally, the underlying implementation is robust and extensive,
1603supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict,
1604ldap, and also supports cookies, redirects, authentication, etc.")
1605 (license license:bsd-3)))
1606
543ded36
RW
1607(define-public r-xml
1608 (package
1609 (name "r-xml")
1610 (version "3.98-1.3")
1611 (source (origin
1612 (method url-fetch)
1613 (uri (cran-uri "XML" version))
1614 (sha256
1615 (base32
1616 "0j9ayp8a35g0227a4zd8nbmvnbfnj5w687jal6qvj4lbhi3va7sy"))))
1617 (properties
1618 `((upstream-name . "XML")))
1619 (build-system r-build-system)
1620 (inputs
1621 `(("libxml2" ,libxml2)))
1622 (propagated-inputs
1623 `(("r-rcurl" ,r-rcurl)))
1624 (home-page "http://www.omegahat.org/RSXML")
1625 (synopsis "Tools for parsing and generating XML within R")
1626 (description
1627 "Many approaches for both reading and creating XML (and HTML)
1628documents (including DTDs), both local and accessible via HTTP or FTP. Also
1629offers access to an XPath \"interpreter\".")
1630 (license license:bsd-2)))
1631
ca65d387
RW
1632(define-public r-lambda-r
1633 (package
1634 (name "r-lambda-r")
1635 (version "1.1.7")
1636 (source (origin
1637 (method url-fetch)
1638 (uri (cran-uri "lambda.r" version))
1639 (sha256
1640 (base32
1641 "1lxzrwyminc3dfb07pbn1rmj45kplxgsb17b06pzflj728knbqwa"))))
1642 (properties `((upstream-name . "lambda.r")))
1643 (build-system r-build-system)
1644 (home-page "http://cran.r-project.org/web/packages/lambda.r")
1645 (synopsis "Functional programming extension for R")
1646 (description
1647 "This package provides a language extension to efficiently write
1648functional programs in R. Syntax extensions include multi-part function
1649definitions, pattern matching, guard statements, built-in (optional) type
1650safety.")
1651 (license license:lgpl3+)))
1652
b9ff33b5
RW
1653(define-public r-futile-options
1654 (package
1655 (name "r-futile-options")
1656 (version "1.0.0")
1657 (source (origin
1658 (method url-fetch)
1659 (uri (cran-uri "futile.options" version))
1660 (sha256
1661 (base32
1662 "1hp82h6xqq5cck67h7lpf22n3j7mg3v1mla5y5ivnzrrb7iyr17f"))))
1663 (properties
1664 `((upstream-name . "futile.options")))
1665 (build-system r-build-system)
1666 (home-page "http://cran.r-project.org/web/packages/futile.options")
1667 (synopsis "Options management framework")
1668 (description
1669 "The futile.options subsystem provides an easy user-defined options
1670management system that is properly scoped. This means that options created
1671via @code{futile.options} are fully self-contained and will not collide with
1672options defined in other packages.")
1673 (license license:lgpl3+)))
1674
6b82f56c
RW
1675(define-public r-futile-logger
1676 (package
1677 (name "r-futile-logger")
1678 (version "1.4.1")
1679 (source (origin
1680 (method url-fetch)
1681 (uri (cran-uri "futile.logger" version))
1682 (sha256
1683 (base32
1684 "1plld1icxrcay7llplbd4i8inpg97crpnczk58mbk26j8glqbr51"))))
1685 (properties `((upstream-name . "futile.logger")))
1686 (build-system r-build-system)
1687 (propagated-inputs
1688 `(("r-futile-options" ,r-futile-options)
1689 ("r-lambda-r" ,r-lambda-r)))
1690 (home-page "http://cran.r-project.org/web/packages/futile.logger")
1691 (synopsis "Logging utility for R")
1692 (description
1693 "This package provides a simple yet powerful logging utility. Based
1694loosely on log4j, futile.logger takes advantage of R idioms to make logging a
1695convenient and easy to use replacement for @code{cat} and @code{print}
1696statements.")
1697 (license license:lgpl3+)))
1698
bc899123
RW
1699(define-public r-snow
1700 (package
1701 (name "r-snow")
1702 (version "0.4-1")
1703 (source (origin
1704 (method url-fetch)
1705 (uri (cran-uri "snow" version))
1706 (sha256
1707 (base32
1708 "19r2yq8aqw99vwyx81p6ay4afsfqffal1wzvizk3dj882s2n4j8w"))))
1709 (build-system r-build-system)
1710 (home-page "http://cran.r-project.org/web/packages/snow")
1711 (synopsis "Support for simple parallel computing in R")
1712 (description
1713 "The snow package provides support for simple parallel computing on a
1714network of workstations using R. A master R process calls @code{makeCluster}
1715to start a cluster of worker processes; the master process then uses functions
1716such as @code{clusterCall} and @code{clusterApply} to execute R code on the
1717worker processes and collect and return the results on the master.")
1718 (license (list license:gpl2+ license:gpl3+))))
1719
d706257b
RW
1720(define-public r-sparsem
1721 (package
1722 (name "r-sparsem")
1723 (version "1.7")
1724 (source (origin
1725 (method url-fetch)
1726 (uri (cran-uri "SparseM" version))
1727 (sha256
1728 (base32
1729 "0s9kab5khk7daqf6nfp1wm1qnhkssnnwnymisfwyk3kz4q5maqfz"))))
1730 (properties
1731 `((upstream-name . "SparseM")))
d7786ce9
RW
1732 (inputs
1733 `(("gfortran" ,gfortran)))
d706257b
RW
1734 (build-system r-build-system)
1735 (home-page "http://www.econ.uiuc.edu/~roger/research/sparse/sparse.html")
1736 (synopsis "Sparse linear algebra")
1737 (description
1738 "This package provides some basic linear algebra functionality for sparse
1739matrices. It includes Cholesky decomposition and backsolving as well as
1740standard R subsetting and Kronecker products.")
1741 (license license:gpl2+)))
1742
264df1a4
RW
1743(define-public r-iterators
1744 (package
1745 (name "r-iterators")
1746 (version "1.0.8")
1747 (source
1748 (origin
1749 (method url-fetch)
1750 (uri (cran-uri "iterators" version))
1751 (sha256
1752 (base32
1753 "1f057pabs7ss9h1n244can26qsi5n2k3salrdk0b0vkphlrs4kmf"))))
1754 (build-system r-build-system)
1755 (home-page "http://cran.r-project.org/web/packages/iterators")
1756 (synopsis "Iterator construct for R")
1757 (description
1758 "This package provides support for iterators, which allow a programmer to
1759traverse through all the elements of a vector, list, or other collection of
1760data.")
1761 (license license:asl2.0)))
1762
7a6f5f03
RW
1763(define-public r-codetools
1764 (package
1765 (name "r-codetools")
1766 (version "0.2-14")
1767 (source
1768 (origin
1769 (method url-fetch)
1770 (uri (cran-uri "codetools" version))
1771 (sha256
1772 (base32
1773 "0y9r4m2b8xgavr89sc179knzwpz54xljbc1dinpq2q07i4xn0397"))))
1774 (build-system r-build-system)
1775 (home-page "http://cran.r-project.org/web/packages/codetools")
1776 (synopsis "Code analysis tools for R")
1777 (description "This package provides code analysis tools for R to check R
1778code for possible problems.")
1779 (license (list license:gpl2+ license:gpl3+))))
1780
b2cdb027
RW
1781(define-public r-foreach
1782 (package
1783 (name "r-foreach")
1784 (version "1.4.3")
1785 (source
1786 (origin
1787 (method url-fetch)
1788 (uri (cran-uri "foreach" version))
1789 (sha256
1790 (base32
1791 "10aqsd3rxz03s1qdb6gsb1cj89mj4vmh491zfpin4skj1xvkzw0y"))))
1792 (build-system r-build-system)
1793 (propagated-inputs
1794 `(("r-codetools" ,r-codetools)
1795 ("r-iterators" ,r-iterators)))
1796 (home-page "http://cran.r-project.org/web/packages/foreach")
1797 (synopsis "Foreach looping construct for R")
1798 (description
1799 "This package provides support for the @code{foreach} looping construct.
1800@code{foreach} is an idiom that allows for iterating over elements in a
1801collection, without the use of an explicit loop counter. This package in
1802particular is intended to be used for its return value, rather than for its
1803side effects. In that sense, it is similar to the standard @code{lapply}
1804function, but doesn't require the evaluation of a function. Using
1805@code{foreach} without side effects also facilitates executing the loop in
1806parallel.")
1807 (license license:asl2.0)))
1808
71cafa04
RW
1809(define-public r-doparallel
1810 (package
1811 (name "r-doparallel")
1812 (version "1.0.10")
1813 (source
1814 (origin
1815 (method url-fetch)
1816 (uri (cran-uri "doParallel" version))
1817 (sha256
1818 (base32
1819 "1mddx25l25pw9d0csnx2q203dbg5hbrhkr1f08kw0p02a1lln0kh"))))
1820 (properties `((upstream-name . "doParallel")))
1821 (build-system r-build-system)
1822 (propagated-inputs
1823 `(("r-foreach" ,r-foreach)
1824 ("r-iterators" ,r-iterators)))
1825 (home-page "http://cran.r-project.org/web/packages/doParallel")
1826 (synopsis "Foreach parallel adaptor for the 'parallel' package")
1827 (description
1828 "This package provides a parallel backend for the @code{%dopar%} function
1829using the parallel package.")
1830 (license license:gpl2+)))
1831
a8227e4a
RW
1832(define-public r-dt
1833 (package
1834 (name "r-dt")
1835 (version "0.1")
1836 (source (origin
1837 (method url-fetch)
1838 (uri (cran-uri "DT" version))
1839 (sha256
1840 (base32
1841 "0mj7iiy1gglw7kixybmb7kr1bcl5r006zcb3klkw7p6vvvzdm6qj"))))
1842 (properties
1843 `((upstream-name . "DT")))
1844 (build-system r-build-system)
1845 (propagated-inputs
1846 `(("r-htmltools" ,r-htmltools)
1847 ("r-htmlwidgets" ,r-htmlwidgets)
1848 ("r-magrittr" ,r-magrittr)))
1849 (home-page "http://rstudio.github.io/DT")
1850 (synopsis "R wrapper of the DataTables JavaScript library")
1851 (description
1852 "This package allows for data objects in R to be rendered as HTML tables
1853using the JavaScript library 'DataTables' (typically via R Markdown or Shiny).
1854The 'DataTables' library has been included in this R package.")
1855 ;; The DT package as a whole is distributed under GPLv3. The DT package
1856 ;; inludes other software components under different licenses:
1857 ;;
1858 ;; * Expat: jQuery, jquery.highlight.js, DataTables
1859 ;; * ASL2.0: selectize.js
1860 ;; * WTFPL: noUiSlider
1861 (license (list license:gpl3
1862 license:expat
1863 license:asl2.0
1864 (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))))
1865
a69a5935
RW
1866(define-public r-base64enc
1867 (package
1868 (name "r-base64enc")
1869 (version "0.1-3")
1870 (source (origin
1871 (method url-fetch)
1872 (uri (cran-uri "base64enc" version))
1873 (sha256
1874 (base32
1875 "13b89fhg1nx7zds82a0biz847ixphg9byf5zl2cw9kab6s56v1bd"))))
1876 (build-system r-build-system)
1877 (home-page "http://www.rforge.net/base64enc")
1878 (synopsis "Tools for Base64 encoding")
1879 (description
1880 "This package provides tools for handling Base64 encoding. It is more
1881flexible than the orphaned \"base64\" package.")
1882 (license license:gpl2+)))
1883
8bfe007c
RW
1884(define-public r-r-methodss3
1885 (package
1886 (name "r-r-methodss3")
1887 (version "1.7.0")
1888 (source (origin
1889 (method url-fetch)
1890 (uri (cran-uri "R.methodsS3" version))
1891 (sha256
1892 (base32
1893 "1dg4bbrwr8jcsqisjrrwxs942mrjq72zw8yvl2br4djdm0md8zz5"))))
1894 (properties `((upstream-name . "R.methodsS3")))
1895 (build-system r-build-system)
1896 (home-page "http://cran.r-project.org/web/packages/R.methodsS3")
1897 (synopsis "S3 methods simplified")
1898 (description
1899 "This package provides methods that simplify the setup of S3 generic
1900functions and S3 methods. Major effort has been made in making definition of
1901methods as simple as possible with a minimum of maintenance for package
1902developers. For example, generic functions are created automatically, if
1903missing, and naming conflict are automatically solved, if possible. The
1904method @code{setMethodS3()} is a good start for those who in the future may
1905want to migrate to S4.")
1906 (license license:lgpl2.1+)))
1907
c8c75a8d
RW
1908(define-public r-r-oo
1909 (package
1910 (name "r-r-oo")
1911 (version "1.19.0")
1912 (source (origin
1913 (method url-fetch)
1914 (uri (cran-uri "R.oo" version))
1915 (sha256
1916 (base32
1917 "15rm1qb9a212bqazhcpk7m48hcp7jq8rh4yhd9c6zfyvdqszfmsb"))))
1918 (properties `((upstream-name . "R.oo")))
1919 (build-system r-build-system)
1920 (propagated-inputs
1921 `(("r-r-methodss3" ,r-r-methodss3)))
1922 (home-page "https://github.com/HenrikBengtsson/R.oo")
1923 (synopsis "R object-oriented programming with or without references")
1924 (description
1925 "This package provides methods and classes for object-oriented
1926programming in R with or without references. Large effort has been made on
1927making definition of methods as simple as possible with a minimum of
1928maintenance for package developers.")
1929 (license license:lgpl2.1+)))
1930
9c94b53b
RW
1931(define-public r-r-utils
1932 (package
1933 (name "r-r-utils")
1934 (version "2.1.0")
1935 (source (origin
1936 (method url-fetch)
1937 (uri (cran-uri "R.utils" version))
1938 (sha256
1939 (base32
1940 "03pi6pkcsq65fv7cn4x74cj050dc8x5d4xyg930p6f7flk788xaz"))))
1941 (properties `((upstream-name . "R.utils")))
1942 (build-system r-build-system)
1943 (propagated-inputs
1944 `(("r-r-methodss3" ,r-r-methodss3)
1945 ("r-r-oo" ,r-r-oo)))
1946 (home-page "https://github.com/HenrikBengtsson/R.utils")
1947 (synopsis "Various programming utilities")
1948 (description
1949 "This package provides utility functions useful when programming and
1950developing R packages.")
1951 (license license:lgpl2.1+)))
1952
a63efbb4
RW
1953(define-public r-r-cache
1954 (package
1955 (name "r-r-cache")
1956 (version "0.12.0")
1957 (source (origin
1958 (method url-fetch)
1959 (uri (cran-uri "R.cache" version))
1960 (sha256
1961 (base32
1962 "006x52w9r8phw5hgqmyp0bz8z42vn8p5yibibnzi1sfa1xlw8iyx"))))
1963 (properties `((upstream-name . "R.cache")))
1964 (build-system r-build-system)
1965 (propagated-inputs
1966 `(("r-digest" ,r-digest)
1967 ("r-r-methodss3" ,r-r-methodss3)
1968 ("r-r-oo" ,r-r-oo)
1969 ("r-r-utils" ,r-r-utils)))
1970 (home-page "https://github.com/HenrikBengtsson/R.cache")
1971 (synopsis "Light-weight caching of objects and results")
1972 (description
1973 "This package provides methods for caching or memoization of objects and
1974results. With this package, any R object can be cached in a key-value storage
1975where the key can be an arbitrary set of R objects. The cache memory is
1976persistent (on the file system).")
1977 (license license:lgpl2.1+)))
1978
3703ffb4
RW
1979(define-public r-r-rsp
1980 (package
1981 (name "r-r-rsp")
1982 (version "0.20.0")
1983 (source (origin
1984 (method url-fetch)
1985 (uri (cran-uri "R.rsp" version))
1986 (sha256
1987 (base32
1988 "06vq9qq5hdz3hqc99q82622mab6ix7jwap20h4za6ap6gnwqs0fv"))))
1989 (properties `((upstream-name . "R.rsp")))
1990 (build-system r-build-system)
1991 (propagated-inputs
1992 `(("r-r-cache" ,r-r-cache)
1993 ("r-r-methodss3" ,r-r-methodss3)
1994 ("r-r-oo" ,r-r-oo)
1995 ("r-r-utils" ,r-r-utils)))
1996 (home-page "https://github.com/HenrikBengtsson/R.rsp")
1997 (synopsis "Dynamic generation of scientific reports")
1998 (description
1999 "The RSP markup language provides a powerful markup for controlling the
2000content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr
2001documents (and more), e.g. @code{Today's date is <%=Sys.Date()%>}. Contrary
2002to many other literate programming languages, with RSP it is straightforward
2003to loop over mixtures of code and text sections, e.g. in month-by-month
2004summaries. RSP has also several preprocessing directives for incorporating
2005static and dynamic contents of external files (local or online) among other
2006things. RSP is ideal for self-contained scientific reports and R package
2007vignettes.")
2008 (license license:lgpl2.1+)))
2009
e05c37da
RW
2010(define-public r-matrixstats
2011 (package
2012 (name "r-matrixstats")
2013 (version "0.15.0")
2014 (source (origin
2015 (method url-fetch)
2016 (uri (cran-uri "matrixStats" version))
2017 (sha256
2018 (base32
2019 "1068k85s6rlwfzlszw790c2rndydvrsw7rpck6k6z17896m8drfa"))))
2020 (properties `((upstream-name . "matrixStats")))
2021 (build-system r-build-system)
2022 (native-inputs
2023 `(("r-r-rsp" ,r-r-rsp))) ;used to build vignettes
2024 (home-page "https://github.com/HenrikBengtsson/matrixStats")
2025 (synopsis "Methods applying to vectors and matrix rows and columns")
2026 (description
2027 "This package provides methods operating on rows and columns of matrices,
2028e.g. @code{rowMedians()}, @code{rowRanks()}, and @code{rowSds()}. There are
2029also some vector-based methods, e.g. @code{binMeans()}, @code{madDiff()} and
2030@code{weightedMedians()}. All methods have been optimized for speed and
2031memory usage.")
2032 (license license:artistic2.0)))
2033
a28d646b
RW
2034(define-public r-viridis
2035 (package
2036 (name "r-viridis")
2037 (version "0.3.1")
2038 (source (origin
2039 (method url-fetch)
2040 (uri (cran-uri "viridis" version))
2041 (sha256
2042 (base32
2043 "0zz9i874s1fwhl9bcbiprlzaz7zsy1rj6c729zn3k525d63qbnj7"))))
2044 (build-system r-build-system)
2045 (propagated-inputs
2046 `(("r-ggplot2" ,r-ggplot2)
2047 ("r-gridextra" ,r-gridextra)))
2048 (home-page "https://github.com/sjmgarnier/viridis")
2049 (synopsis "Matplotlib default color map")
2050 (description
2051 "This package is a port of the new @url{matplotlib,
2052http://matplotlib.org/} color maps (@code{viridis}--the default--,
2053@code{magma}, @code{plasma}, and @code{inferno}) to R. These color maps are
2054designed in such a way that they will analytically be perfectly
2055perceptually-uniform, both in regular form and also when converted to
2056black-and-white. They are also designed to be perceived by readers with the
2057most common form of color blindness.")
2058 (license license:x11)))
2059
fbf6045e
RW
2060(define-public r-plotly
2061 (package
2062 (name "r-plotly")
2063 (version "2.0.3")
2064 (source (origin
2065 (method url-fetch)
2066 (uri (cran-uri "plotly" version))
2067 (sha256
2068 (base32
2069 "16pqycns8qf0y1j21n009qf242lv0izwyidlx40zv88izxhg1vs0"))))
2070 (build-system r-build-system)
2071 (propagated-inputs
2072 `(("r-base64enc" ,r-base64enc)
2073 ("r-digest" ,r-digest)
2074 ("r-ggplot2" ,r-ggplot2)
2075 ("r-htmlwidgets" ,r-htmlwidgets)
2076 ("r-httr" ,r-httr)
2077 ("r-jsonlite" ,r-jsonlite)
2078 ("r-magrittr" ,r-magrittr)
2079 ("r-plyr" ,r-plyr)
2080 ("r-viridis" ,r-viridis)))
2081 (home-page "https://plot.ly/r")
2082 (synopsis "Create interactive web graphics")
2083 (description
2084 "This package enables the translation of ggplot2 graphs to an interactive
2085web-based version and/or the creation of custom web-based visualizations
2086directly from R. Once uploaded to a plotly account, plotly graphs (and the
2087data behind them) can be viewed and modified in a web browser.")
2088 (license license:x11)))
2089
6499b70e
RW
2090
2091(define-public r-ztable
2092 (package
2093 (name "r-ztable")
2094 (version "0.1.5")
2095 (source (origin
2096 (method url-fetch)
2097 (uri (cran-uri "ztable" version))
2098 (sha256
2099 (base32
2100 "1jfqnqy9544gfvz3bsb48v4177nwp4b4n9l2743asq8sbq305b5r"))))
2101 (build-system r-build-system)
2102 (home-page "http://cran.r-project.org/web/packages/ztable")
2103 (synopsis "Zebra-striped tables in LaTeX and HTML formats for R")
2104 (description
2105 "This package provides functions to make zebra-striped tables (tables
2106with alternating row colors) in LaTeX and HTML formats easily from
2107@code{data.frame}, @code{matrix}, @code{lm}, @code{aov}, @code{anova},
2108@code{glm}, @code{coxph}, @code{nls}, @code{fitdistr}, @code{mytable} and
2109@code{cbind.mytable} objects.")
2110 (license license:gpl2+)))