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