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