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