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