Merge branch 'master' into staging
[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+)
109 ("gtksourceview" ,gtksourceview)
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")
decade55 163 (version "1.5.2")
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
decade55 170 (base32 "1akadsyl10rp101ccjmrxr7933c3v641k377bn74jv6cdkcm4zld"))))
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")
c1dc7858 187 (version "4.0.0")
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
c1dc7858 195 "0h1995smlyiyhx7gpg9paxsfqrcn6g9bbp5h9r47i6an3clv1gh6"))))
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")
1cf9a5cd 516 (version "0.8-79")
69fddd2d
RW
517 (source
518 (origin
519 (method url-fetch)
520 (uri (cran-uri "foreign" version))
521 (sha256
522 (base32
1cf9a5cd 523 "1d5rk4k3khjrir1b4ciridd6vdpcgzi35r7p7ra4ky7vbaabcdmg"))))
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")
14fd16ff 602 (version "3.1-147")
248f6526
RW
603 (source
604 (origin
605 (method url-fetch)
606 (uri (cran-uri "nlme" version))
607 (sha256
14fd16ff 608 (base32 "1rqc3wy3lmy0wczsvsn8yszzsxhppfwg4iznb1j6ki2qawpdij7g"))))
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")
e78c54e7 705 (version "3.1-12")
6eaa9bfb
RW
706 (source
707 (origin
708 (method url-fetch)
709 (uri (cran-uri "survival" version))
710 (sha256
711 (base32
e78c54e7 712 "07zj3gpwncw89hbiwjb6ih9axv5zwdqnbgz9yw9xzws6nrpdcbmn"))))
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")
87aa4d62 1100 (version "3.3.0")
d11b808f
RW
1101 (source
1102 (origin
1103 (method url-fetch)
9cda3622 1104 (uri (cran-uri "ggplot2" version))
d11b808f 1105 (sha256
87aa4d62 1106 (base32 "0j21am605kqqzlwhm45kaj0m2irnmy2vz0j7kzi9f0qdzrv3q3ij"))))
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
AB
1119 ("r-withr" ,r-withr)))
1120 (home-page "https://ggplot2.tidyverse.org")
d11b808f
RW
1121 (synopsis "An implementation of the grammar of graphics")
1122 (description
1123 "Ggplot2 is an implementation of the grammar of graphics in R. It
1124combines the advantages of both base and lattice graphics: conditioning and
1125shared axes are handled automatically, and you can still build up a plot step
1126by step from multiple data sources. It also implements a sophisticated
1127multidimensional conditioning system and a consistent interface to map data to
1128aesthetic attributes.")
1129 (license license:gpl2+)))
ed6094fc 1130
6de897ac
RJ
1131(define-public r-ggdendro
1132 (package
1133 (name "r-ggdendro")
1134 (version "0.1-20")
1135 (source (origin
1136 (method url-fetch)
1137 (uri (cran-uri "ggdendro" version))
1138 (sha256
1139 (base32
1140 "1zzq1hxd0d1qa5hrzwfkdw6fzscpcafbwbpkrb62dm559y8awp0j"))))
1141 (build-system r-build-system)
1142 (propagated-inputs
1143 `(("r-ggplot2" ,r-ggplot2)
1144 ("r-mass" ,r-mass)
1145 ("r-knitr" ,r-knitr)))
1146 (home-page "https://github.com/andrie/ggdendro")
1147 (synopsis "Create Dendrograms and Tree Diagrams Using ggplot2")
1148 (description "This is a set of tools for dendrograms and tree plots using
1149ggplot2. The ggplot2 philosophy is to clearly separate data from the
1150presentation. Unfortunately the plot method for dendrograms plots directly
1151to a plot device with out exposing the data. The ggdendro package resolves
1152this by making available functions that extract the dendrogram plot data.
1153The package provides implementations for tree, rpart, as well as diana and
1154agnes cluster diagrams.")
1155 (license license:gpl2+)))
1156
c5940b15
BW
1157(define-public r-gdtools
1158 (package
1159 (name "r-gdtools")
e872949f 1160 (version "0.2.2")
c5940b15
BW
1161 (source
1162 (origin
1163 (method url-fetch)
1164 (uri (cran-uri "gdtools" version))
1165 (sha256
1166 (base32
e872949f 1167 "08njzin0c6biw62j5w30r9j85vr1m2cg4hmv5d76nym860yrlqjf"))))
c5940b15
BW
1168 (build-system r-build-system)
1169 (native-inputs
0a2c188c 1170 `(("pkg-config" ,pkg-config)))
c5940b15 1171 (inputs
e3ddb563 1172 `(("cairo" ,cairo)
e5cf3722 1173 ("freetype2" ,freetype)
e3ddb563 1174 ("zlib" ,zlib)))
054a9a78 1175 (propagated-inputs
0a2c188c 1176 `(("r-rcpp" ,r-rcpp)
e5cf3722 1177 ("r-systemfonts" ,r-systemfonts)))
e9960d8c 1178 (home-page "https://cran.r-project.org/web/packages/gdtools")
c5940b15
BW
1179 (synopsis "Utilities for graphical rendering")
1180 (description
1181 "The @code{gdtools} package provides functionalities to get font metrics
1182and to generate base64 encoded string from raster matrix.")
1183 (license license:gpl3)))
1184
3aebedcc
BW
1185(define-public r-svglite
1186 (package
1187 (name "r-svglite")
8bf717ed 1188 (version "1.2.3")
3aebedcc
BW
1189 (source
1190 (origin
1191 (method url-fetch)
1192 (uri (cran-uri "svglite" version))
1193 (sha256
1194 (base32
8bf717ed 1195 "1zivykbi1pxdxhrkc1if1ihdn5p27j0nai2q0abca1dwry3wg2yl"))))
3aebedcc 1196 (build-system r-build-system)
3aebedcc
BW
1197 (propagated-inputs
1198 `(("r-bh" ,r-bh)
ee7e2ebf
RW
1199 ("r-gdtools" ,r-gdtools)
1200 ("r-rcpp" ,r-rcpp)))
3aebedcc
BW
1201 (home-page "https://github.com/hadley/svglite")
1202 (synopsis "SVG graphics device")
1203 (description
1204 "@code{svglite} is a graphics device that produces clean
1205@dfn{SVG} (Scalable Vector Graphics) output, suitable for use on the web, or
1206hand editing. Compared to the built-in @code{svg()}, @code{svglite} is
1207considerably faster, produces smaller files, and leaves text as is.")
1208 (license license:gpl2+)))
1209
ed6094fc
VVP
1210(define-public r-assertthat
1211 (package
1212 (name "r-assertthat")
0a3ba396 1213 (version "0.2.1")
ed6094fc
VVP
1214 (source (origin
1215 (method url-fetch)
9cda3622 1216 (uri (cran-uri "assertthat" version))
ed6094fc
VVP
1217 (sha256
1218 (base32
0a3ba396 1219 "17wy5bdfzg73sg2clisg1k3zyn1adkj59x56m5nwia2k8z67zkw5"))))
ed6094fc
VVP
1220 (build-system r-build-system)
1221 (home-page "https://github.com/hadley/assertthat")
1222 (synopsis "Easy pre and post assertions")
1223 (description
1224 "Assertthat is an extension to stopifnot() that makes it easy to declare
1225the pre and post conditions that your code should satisfy, while also
1226producing friendly error messages so that your users know what they've done
1227wrong.")
1228 (license license:gpl3+)))
6af48134
VVP
1229
1230(define-public r-lazyeval
1231 (package
1232 (name "r-lazyeval")
1f2862b1 1233 (version "0.2.2")
6af48134
VVP
1234 (source (origin
1235 (method url-fetch)
9cda3622 1236 (uri (cran-uri "lazyeval" version))
6af48134
VVP
1237 (sha256
1238 (base32
1f2862b1 1239 "1m10i059csrcqkcn59a8wspn784alxsq3symzhn24mhhl894346n"))))
6af48134
VVP
1240 (build-system r-build-system)
1241 (home-page "https://github.com/hadley/lazyeval")
1242 (synopsis "Lazy (non-standard) evaluation in R")
1243 (description
1244 "This package provides the tools necessary to do non-standard
1245evaluation (NSE) in R.")
1246 (license license:gpl3+)))
8ea6b30f
VVP
1247
1248(define-public r-dbi
1249 (package
1250 (name "r-dbi")
6c2887e6 1251 (version "1.1.0")
8ea6b30f
VVP
1252 (source (origin
1253 (method url-fetch)
9cda3622 1254 (uri (cran-uri "DBI" version))
8ea6b30f
VVP
1255 (sha256
1256 (base32
6c2887e6 1257 "1r03j9rdcxb9bhxk40dkmy10ikz4yzsxhy3f9k9ix3x577xbfvd9"))))
8ea6b30f
VVP
1258 (build-system r-build-system)
1259 (home-page "https://github.com/rstats-db/DBI")
1260 (synopsis "R database interface")
1261 (description
1262 "The DBI package provides a database interface (DBI) definition for
1263communication between R and relational database management systems. All
1264classes in this package are virtual and need to be extended by the various
1265R/DBMS implementations.")
1266 (license license:lgpl2.0+)))
675c9f44
VVP
1267
1268(define-public r-bh
1269 (package
1270 (name "r-bh")
97e20ade 1271 (version "1.72.0-3")
675c9f44
VVP
1272 (source (origin
1273 (method url-fetch)
1274 (uri (cran-uri "BH" version))
1275 (sha256
1276 (base32
97e20ade 1277 "1ay8vb6i730lipg8b8g3893vqglhw2kqpc29lwdrxdkb66iw33l8"))))
675c9f44
VVP
1278 (build-system r-build-system)
1279 (home-page "https://github.com/eddelbuettel/bh")
1280 (synopsis "R package providing subset of Boost headers")
1281 (description
1282 "This package aims to provide the most useful subset of Boost libraries
1283for template use among CRAN packages.")
1284 (license license:boost1.0)))
256ccc92
VVP
1285
1286(define-public r-evaluate
1287 (package
1288 (name "r-evaluate")
923c6ac1 1289 (version "0.14")
256ccc92
VVP
1290 (source (origin
1291 (method url-fetch)
1292 (uri (cran-uri "evaluate" version))
1293 (sha256
1294 (base32
923c6ac1 1295 "0a2y7j534gbgixkwj9r1z76l2vssw4g1hznzbpclc076wkdqpj58"))))
256ccc92 1296 (build-system r-build-system)
256ccc92
VVP
1297 (home-page "https://github.com/hadley/evaluate")
1298 (synopsis "Parsing and evaluation tools for R")
1299 (description
1300 "This package provides tools that allow you to recreate the parsing,
1301evaluation and display of R code, with enough information that you can
1302accurately recreate what happens at the command line. The tools can easily be
1303adapted for other output formats, such as HTML or LaTeX.")
1304 (license license:gpl3+)))
c5bf3abe
VVP
1305
1306(define-public r-formatr
1307 (package
1308 (name "r-formatr")
24868ae7 1309 (version "1.7")
c5bf3abe
VVP
1310 (source (origin
1311 (method url-fetch)
1312 (uri (cran-uri "formatR" version))
1313 (sha256
1314 (base32
24868ae7 1315 "1nsxbrx31k3y6yql30qkrvdfyznlia2qfvwv95mfiy7m7wdn4rm3"))))
c5bf3abe 1316 (build-system r-build-system)
7219193a 1317 (home-page "https://yihui.org/formatr/")
c5bf3abe
VVP
1318 (synopsis "Format R code automatically")
1319 (description
1320 "This package provides a function to format R source code. Spaces and
1321indent will be added to the code automatically, and comments will be preserved
1322under certain conditions, so that R code will be more human-readable and tidy.
1323There is also a Shiny app as a user interface in this package.")
1324 (license license:gpl3+)))
ad3f005b
VVP
1325
1326(define-public r-highr
1327 (package
1328 (name "r-highr")
b6c5b0ac 1329 (version "0.8")
ad3f005b
VVP
1330 (source (origin
1331 (method url-fetch)
1332 (uri (cran-uri "highr" version))
1333 (sha256
1334 (base32
b6c5b0ac 1335 "0my6idnhmmgs4q1vs40y2lh56yij2p59mpwvm53wjs2zk6x1zl2b"))))
ad3f005b
VVP
1336 (build-system r-build-system)
1337 (home-page "https://github.com/yihui/highr")
1338 (synopsis "Syntax highlighting for R source code")
1339 (description
1340 "This package provides syntax highlighting for R source code. Currently
1341it supports LaTeX and HTML output. Source code of other languages is
1342supported via Andre Simon's highlight package.")
1343 (license license:gpl3+)))
acbb40fa
VVP
1344
1345(define-public r-mime
1346 (package
1347 (name "r-mime")
ebbed19b 1348 (version "0.9")
acbb40fa
VVP
1349 (source (origin
1350 (method url-fetch)
1351 (uri (cran-uri "mime" version))
1352 (sha256
1353 (base32
ebbed19b 1354 "107sqarmyhxlch5nrg796i5z03p9mshskisiq2fm628ajk99gkrc"))))
acbb40fa
VVP
1355 (build-system r-build-system)
1356 (home-page "https://github.com/yihui/mime")
1357 (synopsis "R package to map filenames to MIME types")
1358 (description
1359 "This package guesses the MIME type from a filename extension using the
1360data derived from /etc/mime.types in UNIX-type systems.")
1361 (license license:gpl2)))
3f8ac353
VVP
1362
1363(define-public r-markdown
1364 (package
1365 (name "r-markdown")
9649072c 1366 (version "1.1")
3f8ac353
VVP
1367 (source (origin
1368 (method url-fetch)
1369 (uri (cran-uri "markdown" version))
1370 (sha256
1371 (base32
9649072c 1372 "06zwbrp14bri3470anadd7dvgmw06xf8df6v2pk64wx3f9sd934d"))))
3f8ac353
VVP
1373 (build-system r-build-system)
1374 ;; Skip check phase because the tests require the r-knitr package to be
1375 ;; installed. This prevents installation failures. Knitr normally
1376 ;; shouldn't be available since r-markdown is a dependency of the r-knitr
1377 ;; package.
1378 (arguments `(#:tests? #f))
1379 (propagated-inputs
9649072c
RW
1380 `(("r-mime" ,r-mime)
1381 ("r-xfun" ,r-xfun)))
3f8ac353
VVP
1382 (home-page "https://github.com/rstudio/markdown")
1383 (synopsis "Markdown rendering for R")
1384 (description
1385 "This package provides R bindings to the Sundown Markdown rendering
1386library (https://github.com/vmg/sundown). Markdown is a plain-text formatting
1387syntax that can be converted to XHTML or other formats.")
1388 (license license:gpl2)))
ea3a8095
VVP
1389
1390(define-public r-yaml
1391 (package
1392 (name "r-yaml")
67c6d5d0 1393 (version "2.2.1")
ea3a8095
VVP
1394 (source (origin
1395 (method url-fetch)
1396 (uri (cran-uri "yaml" version))
1397 (sha256
1398 (base32
67c6d5d0 1399 "10r7g26x73am45niigm3k466030nymnr3v3fjljafzrr5aybf58i"))))
ea3a8095
VVP
1400 (build-system r-build-system)
1401 (home-page "https://cran.r-project.org/web/packages/yaml/")
1402 (synopsis "Methods to convert R data to YAML and back")
1403 (description
1404 "This package implements the libyaml YAML 1.1 parser and
1405emitter (http://pyyaml.org/wiki/LibYAML) for R.")
1406 (license license:bsd-3)))
213656b9
VVP
1407
1408(define-public r-knitr
1409 (package
1410 (name "r-knitr")
738f3e0b 1411 (version "1.28")
213656b9
VVP
1412 (source (origin
1413 (method url-fetch)
1414 (uri (cran-uri "knitr" version))
1415 (sha256
1416 (base32
738f3e0b 1417 "0ai382fmpz25qrhdgchs3vph2cdvyd73xyryg4jby5fp67d03vh5"))))
213656b9
VVP
1418 (build-system r-build-system)
1419 (propagated-inputs
1420 `(("r-evaluate" ,r-evaluate)
213656b9
VVP
1421 ("r-highr" ,r-highr)
1422 ("r-markdown" ,r-markdown)
1423 ("r-stringr" ,r-stringr)
495866a9 1424 ("r-xfun" ,r-xfun)
213656b9 1425 ("r-yaml" ,r-yaml)))
3a18b1cc 1426 (home-page "https://yihui.org/knitr/")
213656b9
VVP
1427 (synopsis "General-purpose package for dynamic report generation in R")
1428 (description
1429 "This package provides a general-purpose tool for dynamic report
1430generation in R using Literate Programming techniques.")
1431 ;; The code is released under any version of the GPL. As it is used by
1432 ;; r-markdown which is available under GPLv2 only, we have chosen GPLv2+
1433 ;; here.
1434 (license license:gpl2+)))
4f0e8484 1435
4ce3c287
RW
1436(define-public r-knitrbootstrap
1437 (package
1438 (name "r-knitrbootstrap")
624283a1 1439 (version "1.0.2")
4ce3c287
RW
1440 (source
1441 (origin
1442 (method url-fetch)
1443 (uri (cran-uri "knitrBootstrap" version))
1444 (sha256
1445 (base32
624283a1 1446 "1aj60j7f0gcs120fdrnfbnb7vk7lfn1phil0mghg6a5zldz4cqs3"))))
4ce3c287
RW
1447 (properties `((upstream-name . "knitrBootstrap")))
1448 (build-system r-build-system)
1449 (propagated-inputs
1450 `(("r-knitr" ,r-knitr)
624283a1
RW
1451 ("r-rmarkdown" ,r-rmarkdown)
1452 ("r-markdown" ,r-markdown)))
4ce3c287
RW
1453 (home-page "https://github.com/jimhester/knitrBootstrap")
1454 (synopsis "Knitr bootstrap framework")
1455 (description
1456 "This package provides a framework to create Bootstrap 3 HTML reports
1457from knitr Rmarkdown.")
1458 (license license:expat)))
1459
4f0e8484
VVP
1460(define-public r-microbenchmark
1461 (package
1462 (name "r-microbenchmark")
a2b40398 1463 (version "1.4-7")
4f0e8484
VVP
1464 (source (origin
1465 (method url-fetch)
1466 (uri (cran-uri "microbenchmark" version))
1467 (sha256
1468 (base32
a2b40398 1469 "1xl4m4yl4h2zcjiz8wsa7f3sh55qg2xr3sgpvz18rlix6b3173r6"))))
4f0e8484 1470 (build-system r-build-system)
4f0e8484
VVP
1471 (home-page "https://cran.r-project.org/web/packages/microbenchmark/")
1472 (synopsis "Accurate timing functions for R")
1473 (description
1474 "This package provides infrastructure to accurately measure and compare
1475the execution time of R expressions.")
1476 (license license:bsd-2)))
1cf1cbb0 1477
0661b4db
VVP
1478(define-public r-pryr
1479 (package
1480 (name "r-pryr")
1e898bba 1481 (version "0.1.4")
0661b4db
VVP
1482 (source (origin
1483 (method url-fetch)
1484 (uri (cran-uri "pryr" version))
1485 (sha256
1486 (base32
1e898bba 1487 "06vj5xl9x37kbd3l5bw7sbgfdnp37spvrjrn976rxi04clqk966k"))))
0661b4db
VVP
1488 (build-system r-build-system)
1489 (propagated-inputs
1490 `(("r-stringr" ,r-stringr)
1491 ("r-codetools" ,r-codetools)))
1492 (native-inputs
1493 `(("r-rcpp" ,r-rcpp)))
1494 (home-page "https://github.com/hadley/pryr")
1495 (synopsis "Tools for computing on the R language")
1496 (description
1497 "This package provides useful tools to pry back the covers of R and
1498understand the language at a deeper level.")
1499 (license license:gpl2)))
b668a95c
VVP
1500
1501(define-public r-memoise
1502 (package
1503 (name "r-memoise")
050d41ca 1504 (version "1.1.0")
b668a95c
VVP
1505 (source (origin
1506 (method url-fetch)
1507 (uri (cran-uri "memoise" version))
1508 (sha256
1509 (base32
050d41ca 1510 "034qfc2xlh30x1q2vya239w34a3ir3y2fwnx2agbgbi6592zjxmj"))))
b668a95c
VVP
1511 (build-system r-build-system)
1512 (propagated-inputs
1513 `(("r-digest" ,r-digest)))
7bf837fd 1514 (home-page "https://github.com/hadley/memoise")
b668a95c
VVP
1515 (synopsis "Memoise functions for R")
1516 (description
e0a0a6df 1517 "This R package caches the results of a function so that when
b668a95c
VVP
1518you call it again with the same arguments it returns the pre-computed value.")
1519 (license license:expat)))
834f7ff3
VVP
1520
1521(define-public r-crayon
1522 (package
1523 (name "r-crayon")
b0c8cba4 1524 (version "1.3.4")
834f7ff3
VVP
1525 (source (origin
1526 (method url-fetch)
1527 (uri (cran-uri "crayon" version))
1528 (sha256
1529 (base32
b0c8cba4 1530 "0s7s6vc3ww8pzanpjisym4jjvwcc5pi2qg8srx7jqlz9j3wrnvpw"))))
834f7ff3
VVP
1531 (build-system r-build-system)
1532 (propagated-inputs
1533 `(("r-memoise" ,r-memoise)))
1534 (home-page "https://github.com/gaborcsardi/crayon")
1535 (synopsis "Colored terminal output for R")
1536 (description
1537 "Colored terminal output on terminals that support ANSI color and
1538highlight codes. It also works in Emacs ESS. ANSI color support is
1539automatically detected. Colors and highlighting can be combined and nested.
1540New styles can also be created easily. This package was inspired by the
1541\"chalk\" JavaScript project.")
1542 (license license:expat)))
5b9789a6 1543
35b2001a
RW
1544(define-public r-praise
1545 (package
1546 (name "r-praise")
1547 (version "1.0.0")
1548 (source
1549 (origin
1550 (method url-fetch)
1551 (uri (cran-uri "praise" version))
1552 (sha256
1553 (base32
1554 "1gfyypnvmih97p2r0php9qa39grzqpsdbq5g0fdsbpq5zms5w0sw"))))
1555 (build-system r-build-system)
1556 (home-page "https://github.com/gaborcsardi/praise")
1557 (synopsis "Functions to praise users")
1558 (description
1559 "This package provides template functions to assist in building friendly
1560R packages that praise their users.")
1561 (license license:expat)))
1562
5b9789a6
VVP
1563(define-public r-testthat
1564 (package
1565 (name "r-testthat")
3f809fe8 1566 (version "2.3.2")
5b9789a6
VVP
1567 (source (origin
1568 (method url-fetch)
1569 (uri (cran-uri "testthat" version))
1570 (sha256
1571 (base32
3f809fe8 1572 "0v70v2fs0f2ir962z9csbjlj8snrq9mbjfyhhb9dhz3zy26qs9hs"))))
5b9789a6
VVP
1573 (build-system r-build-system)
1574 (propagated-inputs
aead9e1b 1575 `(("r-cli" ,r-cli)
99eca2b1 1576 ("r-crayon" ,r-crayon)
aead9e1b 1577 ("r-digest" ,r-digest)
3d2c2a55 1578 ("r-ellipsis" ,r-ellipsis)
eae8e56a 1579 ("r-evaluate" ,r-evaluate)
99eca2b1 1580 ("r-magrittr" ,r-magrittr)
3d2c2a55 1581 ("r-pkgload" ,r-pkgload)
99eca2b1 1582 ("r-praise" ,r-praise)
aead9e1b
RW
1583 ("r-r6" ,r-r6)
1584 ("r-rlang" ,r-rlang)
1585 ("r-withr" ,r-withr)))
5b9789a6
VVP
1586 (home-page "https://github.com/hadley/testthat")
1587 (synopsis "Unit testing for R")
1588 (description
1589 "This package provides a unit testing system for R designed to be fun,
1590flexible and easy to set up.")
1591 (license license:expat)))
ffd4b478
VVP
1592
1593(define-public r-r6
1594 (package
1595 (name "r-r6")
30301c09 1596 (version "2.4.1")
ffd4b478
VVP
1597 (source (origin
1598 (method url-fetch)
1599 (uri (cran-uri "R6" version))
1600 (sha256
1601 (base32
30301c09 1602 "0gma5z41mx02ka9h96xdyf3p6i1rx0izczrzj26c4mbnh9jgvc16"))))
ffd4b478 1603 (build-system r-build-system)
ffd4b478
VVP
1604 (home-page "https://github.com/wch/R6/")
1605 (synopsis "Classes with reference semantics in R")
1606 (description
1607 "The R6 package allows the creation of classes with reference semantics,
1608similar to R's built-in reference classes. Compared to reference classes, R6
1609classes are simpler and lighter-weight, and they are not built on S4 classes
1610so they do not require the methods package. These classes allow public and
1611private members, and they support inheritance, even when the classes are
1612defined in different packages.")
1613 (license license:expat)))
2a3a8ae7 1614
2f06dc04
RJ
1615(define-public r-rlang
1616 (package
1617 (name "r-rlang")
8093f42e 1618 (version "0.4.6")
2f06dc04
RJ
1619 (source (origin
1620 (method url-fetch)
1621 (uri (cran-uri "rlang" version))
1622 (sha256
1623 (base32
8093f42e 1624 "1jik4lywg4688dfi5fh8jbnmsxvq3382ii0nsw5armjzfq3v309s"))))
2f06dc04
RJ
1625 (build-system r-build-system)
1626 (home-page "http://rlang.tidyverse.org")
1627 (synopsis "Functions for base types, core R and Tidyverse features")
1628 (description "This package provides a toolbox for working with base types,
1629core R features like the condition system, and core @code{Tidyverse} features
1630like tidy evaluation.")
1631 (license license:gpl3)))
1632
a589acfb
RW
1633(define-public r-tibble
1634 (package
1635 (name "r-tibble")
666d9796 1636 (version "3.0.1")
a589acfb
RW
1637 (source
1638 (origin
1639 (method url-fetch)
1640 (uri (cran-uri "tibble" version))
1641 (sha256
1642 (base32
666d9796 1643 "17m7xvn423snq9dmr0bhx42j5rbc53w1viizxx4bvq37nz7m4i8m"))))
a589acfb
RW
1644 (build-system r-build-system)
1645 (propagated-inputs
f12ed366 1646 `(("r-cli" ,r-cli)
59b62f19 1647 ("r-crayon" ,r-crayon)
53477d97 1648 ("r-ellipsis" ,r-ellipsis)
f12ed366 1649 ("r-fansi" ,r-fansi)
53477d97
RW
1650 ("r-lifecycle" ,r-lifecycle)
1651 ("r-magrittr" ,r-magrittr)
f12ed366
RW
1652 ("r-pkgconfig" ,r-pkgconfig)
1653 ("r-pillar" ,r-pillar)
53477d97
RW
1654 ("r-rlang" ,r-rlang)
1655 ("r-vctrs" ,r-vctrs)))
1656 (native-inputs
1657 `(("r-knitr" ,r-knitr)))
a589acfb
RW
1658 (home-page "https://github.com/hadley/tibble")
1659 (synopsis "Simple data frames")
1660 (description
1661 "This package provides a @code{tbl_df} class that offers better checking
1662and printing capabilities than traditional data frames.")
1663 (license license:expat)))
1664
2a3a8ae7
VVP
1665(define-public r-dplyr
1666 (package
1667 (name "r-dplyr")
1c9e3e9f 1668 (version "0.8.5")
2a3a8ae7
VVP
1669 (source (origin
1670 (method url-fetch)
1671 (uri (cran-uri "dplyr" version))
1672 (sha256
1673 (base32
1c9e3e9f 1674 "0602b4a9nffxx67q57csqp87nkrv33nn9wlaw1458yys9fzx6l2p"))))
2a3a8ae7
VVP
1675 (build-system r-build-system)
1676 (propagated-inputs
1677 `(("r-assertthat" ,r-assertthat)
ed494a0a 1678 ("r-bh" ,r-bh)
9970c25e 1679 ("r-ellipsis" ,r-ellipsis)
a40b2c21 1680 ("r-glue" ,r-glue)
ed494a0a 1681 ("r-magrittr" ,r-magrittr)
a40b2c21 1682 ("r-pkgconfig" ,r-pkgconfig)
ed494a0a
RW
1683 ("r-plogr" ,r-plogr)
1684 ("r-r6" ,r-r6)
1685 ("r-rcpp" ,r-rcpp)
1686 ("r-rlang" ,r-rlang)
512f22f9
TGR
1687 ("r-tibble" ,r-tibble)
1688 ("r-tidyselect" ,r-tidyselect)))
1c9e3e9f
RW
1689 (native-inputs
1690 `(("r-knitr" ,r-knitr)))
2a3a8ae7
VVP
1691 (home-page "https://github.com/hadley/dplyr")
1692 (synopsis "Tools for working with data frames in R")
1693 (description
1694 "dplyr is the next iteration of plyr. It is focussed on tools for
1695working with data frames. It has three main goals: 1) identify the most
1696important data manipulation tools needed for data analysis and make them easy
1697to use in R; 2) provide fast performance for in-memory data by writing key
1698pieces of code in C++; 3) use the same code interface to work with data no
1699matter where it is stored, whether in a data frame, a data table or
1700database.")
1701 (license license:expat)))
91312ebe 1702
caa4e796
RW
1703(define-public r-dbplyr
1704 (package
1705 (name "r-dbplyr")
568d1d7b 1706 (version "1.4.3")
caa4e796
RW
1707 (source
1708 (origin
1709 (method url-fetch)
1710 (uri (cran-uri "dbplyr" version))
1711 (sha256
1712 (base32
568d1d7b 1713 "1si8sahr1kwq1xgjzi9klkahad07pyrsngy75y1f74f64907pb39"))))
caa4e796
RW
1714 (build-system r-build-system)
1715 (propagated-inputs
1716 `(("r-assertthat" ,r-assertthat)
1717 ("r-dbi" ,r-dbi)
1718 ("r-dplyr" ,r-dplyr)
1719 ("r-glue" ,r-glue)
568d1d7b 1720 ("r-lifecycle" ,r-lifecycle)
caa4e796
RW
1721 ("r-purrr" ,r-purrr)
1722 ("r-r6" ,r-r6)
1723 ("r-rlang" ,r-rlang)
172b63e4
RW
1724 ("r-tibble" ,r-tibble)
1725 ("r-tidyselect" ,r-tidyselect)))
568d1d7b
RW
1726 (native-inputs
1727 `(("r-knitr" ,r-knitr)))
caa4e796
RW
1728 (home-page "https://github.com/tidyverse/dbplyr")
1729 (synopsis "Dplyr back end for databases")
1730 (description
1731 "This package provides a dplyr back end for databases that allows you to
1732work with remote database tables as if they are in-memory data frames. Basic
1733features works with any database that has a @code{DBI} back end; more advanced
1734features require SQL translation to be provided by the package author.")
1735 (license license:expat)))
1736
b4d6f408
RW
1737(define-public r-acepack
1738 (package
1739 (name "r-acepack")
572e1a0c 1740 (version "1.4.1")
b4d6f408
RW
1741 (source
1742 (origin
1743 (method url-fetch)
1744 (uri (cran-uri "acepack" version))
1745 (sha256
1746 (base32
572e1a0c 1747 "1f98rpfjmhd92rdc3j004plyfpjailz6j0ycysbac0kgj83haxc2"))))
b4d6f408
RW
1748 (build-system r-build-system)
1749 (inputs
1750 `(("gfortran" ,gfortran)))
e9960d8c 1751 (home-page "https://cran.r-project.org/web/packages/acepack")
b4d6f408
RW
1752 (synopsis "Functions for regression transformations")
1753 (description
1754 "This package provides ACE and AVAS methods for choosing regression
1755transformations.")
1756 (license license:expat)))
1757
b1acb445
RW
1758(define-public r-formula
1759 (package
1760 (name "r-formula")
54d557e2 1761 (version "1.2-3")
b1acb445
RW
1762 (source
1763 (origin
1764 (method url-fetch)
1765 (uri (cran-uri "Formula" version))
1766 (sha256
1767 (base32
54d557e2 1768 "0wiqh8rr9d5ciy80wj8f5fnmiiw0ywanvvnhkwd622dx42dk848l"))))
b1acb445
RW
1769 (properties `((upstream-name . "Formula")))
1770 (build-system r-build-system)
e9960d8c 1771 (home-page "https://cran.r-project.org/web/packages/Formula")
b1acb445
RW
1772 (synopsis "Extended model formulas")
1773 (description
1774 "This package provides a new class @code{Formula}, which extends the base
1775class @code{formula}. It supports extended formulas with multiple parts of
1776regressors on the right-hand side and/or multiple responses on the left-hand
1777side.")
1778 (license (list license:gpl2+ license:gpl3+))))
1779
97ee973d
RW
1780(define-public r-locfit
1781 (package
1782 (name "r-locfit")
37732212 1783 (version "1.5-9.4")
97ee973d
RW
1784 (source
1785 (origin
1786 (method url-fetch)
1787 (uri (cran-uri "locfit" version))
1788 (sha256
1789 (base32
37732212 1790 "1vcw16qww4v4547w0gfvhqg60l051bsdlxa6zfcgcj9xbxf6dlyr"))))
97ee973d 1791 (build-system r-build-system)
aeb64f3c
RW
1792 (propagated-inputs
1793 `(("r-lattice" ,r-lattice)))
e9960d8c 1794 (home-page "https://cran.r-project.org/web/packages/locfit")
97ee973d
RW
1795 (synopsis "Local regression, likelihood and density estimation")
1796 (description
1797 "This package provides functions used for local regression, likelihood
1798and density estimation.")
1799 (license (list license:gpl2+ license:gpl3+))))
1800
91312ebe
VVP
1801(define-public r-chron
1802 (package
1803 (name "r-chron")
26e41929 1804 (version "2.3-55")
91312ebe
VVP
1805 (source (origin
1806 (method url-fetch)
1807 (uri (cran-uri "chron" version))
1808 (sha256
1809 (base32
26e41929 1810 "09gbs7c1ynlg0kl1m6nkbn75ysk16g13r17snnaws64qwywiywqg"))))
91312ebe 1811 (build-system r-build-system)
e9960d8c 1812 (home-page "https://cran.r-project.org/web/packages/chron")
91312ebe
VVP
1813 (synopsis "Chronological R objects which can handle dates and times")
1814 (description
1815 "This package provides chronological R objects which can handle dates and
1816times.")
1817 (license license:gpl2)))
0e4e03f8 1818
62141c07 1819(define-public r-data-table
0e4e03f8 1820 (package
62141c07 1821 (name "r-data-table")
b762a6c9 1822 (version "1.12.8")
0e4e03f8
VVP
1823 (source (origin
1824 (method url-fetch)
1825 (uri (cran-uri "data.table" version))
1826 (sha256
1827 (base32
b762a6c9 1828 "1p7rf4v3ysflpgcmy9krkwmcy7z22wb08xm443649waz6lx5z9yk"))))
0e4e03f8 1829 (build-system r-build-system)
5a54baf6
TGR
1830 (inputs
1831 `(("zlib" ,zlib)))
3d7fc2d4
RW
1832 (native-inputs
1833 `(("pkg-config" ,pkg-config)))
0e4e03f8
VVP
1834 (home-page "https://github.com/Rdatatable/data.table/wiki")
1835 (synopsis "Enhanced version of data.frame R object")
1836 (description
62141c07
RW
1837 "The R package @code{data.table} is an extension of @code{data.frame}
1838providing functions for fast aggregation of large data (e.g. 100GB in RAM),
1839fast ordered joins, fast add/modify/delete of columns by group, column listing
1840and fast file reading.")
1841 (license license:gpl3+)))
9bc08aa0 1842
a73f4cd1
RW
1843(define-public r-xtable
1844 (package
1845 (name "r-xtable")
190dc09e 1846 (version "1.8-4")
a73f4cd1
RW
1847 (source
1848 (origin
1849 (method url-fetch)
1850 (uri (cran-uri "xtable" version))
1851 (sha256
1852 (base32
190dc09e 1853 "077xfm0gphvhsay75amd9v90zk57kjgrrlgih04fyrbqqblc1gjs"))))
a73f4cd1
RW
1854 (build-system r-build-system)
1855 (native-inputs
7f38b31e 1856 `(("r-knitr" ,r-knitr))) ; for vignettes
a73f4cd1
RW
1857 (home-page "http://xtable.r-forge.r-project.org/")
1858 (synopsis "Export R tables to LaTeX or HTML")
1859 (description
1860 "This package provides tools to export R data as LaTeX and HTML tables.")
1861 (license license:gpl2+)))
1862
9bc08aa0
RW
1863(define-public python-patsy
1864 (package
1865 (name "python-patsy")
aa8f64b2 1866 (version "0.5.1")
9bc08aa0
RW
1867 (source (origin
1868 (method url-fetch)
aa8f64b2 1869 (uri (pypi-uri "patsy" version))
9bc08aa0
RW
1870 (sha256
1871 (base32
aa8f64b2 1872 "149rbrdzwns0ay88caf1zsm1r53v1q5np1mrb36na50y432cw5gi"))))
9bc08aa0
RW
1873 (build-system python-build-system)
1874 (arguments
1875 `(#:phases
1876 (modify-phases %standard-phases
9cbd819a
TGR
1877 (replace 'check
1878 (lambda _ (invoke "nosetests" "-v"))))))
9bc08aa0
RW
1879 (propagated-inputs
1880 `(("python-numpy" ,python-numpy)
1881 ("python-scipy" ,python-scipy)
1882 ("python-six" ,python-six)))
1883 (native-inputs
aa8f64b2 1884 `(("python-nose" ,python-nose)))
9bc08aa0
RW
1885 (home-page "https://github.com/pydata/patsy")
1886 (synopsis "Describe statistical models and build design matrices")
1887 (description
1888 "Patsy is a Python package for describing statistical models and for
1889building design matrices.")
1890 ;; The majority of the code is distributed under BSD-2. The module
1891 ;; patsy.compat contains code derived from the Python standard library,
1892 ;; and is covered by the PSFL.
5c31f4aa 1893 (license (list license:bsd-2 license:psfl))))
9bc08aa0
RW
1894
1895(define-public python2-patsy
5c31f4aa 1896 (package-with-python2 python-patsy))
37fdba7e
RW
1897
1898(define-public python-statsmodels
1899 (package
1900 (name "python-statsmodels")
b6574660 1901 (version "0.11.1")
37fdba7e
RW
1902 (source
1903 (origin
1904 (method url-fetch)
6cb74776 1905 (uri (pypi-uri "statsmodels" version))
37fdba7e
RW
1906 (sha256
1907 (base32
b6574660 1908 "1w6mf8b86vizi2895j11szqryr2v1ckjig3wp9fv94aslfh3zpjv"))))
37fdba7e
RW
1909 (build-system python-build-system)
1910 (arguments
4eeed444
RW
1911 `(;; The test suite is very large and rather brittle. Tests often fail
1912 ;; because of minor changes in dependencies that upstream hasn't fixed
1913 ;; in a new release.
1914 #:tests? #f
1915 #:phases
37fdba7e 1916 (modify-phases %standard-phases
37fdba7e
RW
1917 (add-after 'unpack 'set-matplotlib-backend-to-agg
1918 (lambda _
1919 ;; Set the matplotlib backend to Agg to avoid problems using the
1920 ;; GTK backend without a display.
6cb74776
MB
1921 (substitute* (append (find-files "statsmodels/graphics/tests" "\\.py")
1922 '("statsmodels/tsa/vector_ar/tests/test_var.py"
1923 "statsmodels/duration/tests/test_survfunc.py"))
37fdba7e
RW
1924 (("import matplotlib\\.pyplot as plt" line)
1925 (string-append "import matplotlib;matplotlib.use('Agg');"
1926 line)))
cee3d713 1927 #t)))))
37fdba7e
RW
1928 (propagated-inputs
1929 `(("python-numpy" ,python-numpy)
1930 ("python-scipy" ,python-scipy)
1931 ("python-pandas" ,python-pandas)
1932 ("python-patsy" ,python-patsy)
1933 ("python-matplotlib" ,python-matplotlib)))
1934 (native-inputs
1935 `(("python-cython" ,python-cython)
1936 ("python-nose" ,python-nose)
1937 ("python-sphinx" ,python-sphinx)))
1938 (home-page "http://statsmodels.sourceforge.net/")
1939 (synopsis "Statistical modeling and econometrics in Python")
1940 (description
1941 "Statsmodels is a Python package that provides a complement to scipy for
1942statistical computations including descriptive statistics and estimation and
1943inference for statistical models.")
1944 (license license:bsd-3)))
1945
1946(define-public python2-statsmodels
1947 (let ((stats (package-with-python2 python-statsmodels)))
1948 (package (inherit stats)
1949 (propagated-inputs
8b52167e
RW
1950 `(("python2-pytz" ,python2-pytz)
1951 ("python2-numpy" ,python2-numpy)
37fdba7e
RW
1952 ("python2-scipy" ,python2-scipy)
1953 ("python2-pandas" ,python2-pandas)
1954 ("python2-patsy" ,python2-patsy)
00e10c6e 1955 ("python2-matplotlib" ,python2-matplotlib))))))
67a167fd 1956
82047474
RJ
1957(define-public r-coda
1958 (package
1959 (name "r-coda")
8d932e71 1960 (version "0.19-3")
82047474
RJ
1961 (source (origin
1962 (method url-fetch)
1963 (uri (cran-uri "coda" version))
1964 (sha256
1965 (base32
8d932e71 1966 "1mn50bshky968gn4nf6vnkaa768fnvm1xmhkms7szwdw9341zpyk"))))
82047474 1967 (build-system r-build-system)
aeb64f3c
RW
1968 (propagated-inputs
1969 `(("r-lattice" ,r-lattice)))
e9960d8c 1970 (home-page "https://cran.r-project.org/web/packages/coda")
82047474
RJ
1971 (synopsis "This is a package for Output Analysis and Diagnostics for MCMC")
1972 (description "This package provides functions for summarizing and plotting
1973the output from Markov Chain Monte Carlo (MCMC) simulations, as well as
1974diagnostic tests of convergence to the equilibrium distribution of the Markov
1975chain.")
1976 (license license:gpl2+)))
1977
fdd0f7b2
RW
1978(define-public r-ade4
1979 (package
1980 (name "r-ade4")
98319975 1981 (version "1.7-15")
fdd0f7b2
RW
1982 (source
1983 (origin
1984 (method url-fetch)
1985 (uri (cran-uri "ade4" version))
1986 (sha256
1987 (base32
98319975 1988 "1xpxznlqm8wb4d5z2dcrl0wi3jjciq2hr5rcx2b5aaipiiyzm1ij"))))
fdd0f7b2 1989 (build-system r-build-system)
f9f1291b 1990 (propagated-inputs
98319975
RW
1991 `(("r-mass" ,r-mass)
1992 ("r-pixmap" ,r-pixmap)
1993 ("r-sp" ,r-sp)))
fdd0f7b2
RW
1994 (home-page "http://pbil.univ-lyon1.fr/ADE-4")
1995 (synopsis "Multivariate data analysis and graphical display")
1996 (description
1997 "The ade4 package contains data analysis functions to analyze ecological
1998and environmental data in the framework of Euclidean exploratory methods.")
1999 (license license:gpl2+)))
2000
67a167fd
RW
2001(define-public r-xml2
2002 (package
2003 (name "r-xml2")
7ef5f77b 2004 (version "1.3.2")
67a167fd
RW
2005 (source
2006 (origin
2007 (method url-fetch)
2008 (uri (cran-uri "xml2" version))
2009 (sha256
2010 (base32
7ef5f77b 2011 "1kx400v62xkd5xal7rzz7jcarz94ac8g1sh4i2dqr78qwgkzj8nz"))))
67a167fd
RW
2012 (build-system r-build-system)
2013 (inputs
78e03a76
RW
2014 `(("libxml2" ,libxml2)
2015 ("zlib" ,zlib)))
2016 (native-inputs
09583a0f
RW
2017 `(("pkg-config" ,pkg-config)
2018 ("r-knitr" ,r-knitr)))
67a167fd
RW
2019 (home-page "https://github.com/hadley/xml2")
2020 (synopsis "Parse XML with R")
2021 (description
2022 "This package provides a simple, consistent interface to working with XML
2023files in R. It is built on top of the libxml2 C library.")
2024 (license license:gpl2+)))
6140747f 2025
9003957e
RW
2026(define-public r-multitaper
2027 (package
2028 (name "r-multitaper")
fde66e30 2029 (version "1.0-14")
9003957e
RW
2030 (source
2031 (origin
2032 (method url-fetch)
2033 (uri (cran-uri "multitaper" version))
2034 (sha256
2035 (base32
fde66e30 2036 "04wd9bbhyx7697pfy0fpj02v1csr48hkpqj62h9p8a6w84ji4k68"))))
9003957e
RW
2037 (build-system r-build-system)
2038 (native-inputs
2039 `(("gfortran" ,gfortran)))
7bf837fd 2040 (home-page "https://github.com/wesleyburr/multitaper/")
9003957e
RW
2041 (synopsis "Multitaper spectral analysis tools")
2042 (description
2043 "This package implements multitaper spectral estimation
2044techniques using prolate spheroidal sequences (Slepians) and sine
2045tapers for time series analysis. It includes an adaptive weighted
2046multitaper spectral estimate, a coherence estimate, Thomson's Harmonic
2047F-test, and complex demodulation. The Slepians sequences are
2048generated efficiently using a tridiagonal matrix solution, and
2049jackknifed confidence intervals are available for most estimates.")
2050 (license license:gpl2+)))
2051
6140747f
RW
2052(define-public r-rversions
2053 (package
2054 (name "r-rversions")
e21b668e 2055 (version "2.0.1")
6140747f
RW
2056 (source (origin
2057 (method url-fetch)
2058 (uri (cran-uri "rversions" version))
2059 (sha256
2060 (base32
e21b668e 2061 "1ic6sxnyya24d5xsxjg3fba73fhya9fhs0kaf66yha6nwxj1zv2i"))))
6140747f
RW
2062 (build-system r-build-system)
2063 (propagated-inputs
2064 `(("r-curl" ,r-curl)
2065 ("r-xml2" ,r-xml2)))
2066 (home-page "https://github.com/metacran/rversions")
2067 (synopsis "Query R versions, including 'r-release' and 'r-oldrel'")
2068 (description
2069 "This package provides functions to query the main R repository to find
2070the versions that @code{r-release} and @code{r-oldrel} refer to, and also all
2071previous R versions and their release dates.")
2072 (license license:expat)))
1a77eccd
RW
2073
2074(define-public r-whisker
2075 (package
2076 (name "r-whisker")
b21620bb 2077 (version "0.4")
1a77eccd
RW
2078 (source (origin
2079 (method url-fetch)
2080 (uri (cran-uri "whisker" version))
2081 (sha256
2082 (base32
b21620bb 2083 "1a7vz0dk95xfjvi38wbpw8vmf5qn3g8p490msz2rw0piwidmk1ks"))))
1a77eccd 2084 (build-system r-build-system)
7bf837fd 2085 (home-page "https://github.com/edwindj/whisker")
1a77eccd
RW
2086 (synopsis "Logicless mustache templating for R")
2087 (description
2088 "This package provides logicless templating, with a syntax that is not
2089limited to R.")
2090 (license license:gpl3+)))
13d083af 2091
0d90462f
RW
2092(define-public r-backports
2093 (package
2094 (name "r-backports")
f3310342 2095 (version "1.1.6")
0d90462f
RW
2096 (source
2097 (origin
2098 (method url-fetch)
2099 (uri (cran-uri "backports" version))
2100 (sha256
2101 (base32
f3310342 2102 "170rphqq28j0pcr28g6dxv3isp436ajhyzkpri31pn0lfm3szs6h"))))
0d90462f 2103 (build-system r-build-system)
e9960d8c 2104 (home-page "https://cran.r-project.org/web/packages/backports")
0d90462f
RW
2105 (synopsis "Reimplementations of functions introduced since R 3.0.0")
2106 (description
2107 "Provides implementations of functions which have been introduced in R
2108since version 3.0.0. The backports are conditionally exported which results
2109in R resolving the function names to the version shipped with R (if available)
2110and uses the implemented backports as fallback. This way package developers
2111can make use of the new functions without worrying about the minimum required
2112R version.")
2113 (license license:gpl2+)))
2114
929d4aae
RW
2115(define-public r-checkmate
2116 (package
2117 (name "r-checkmate")
eea33597 2118 (version "2.0.0")
929d4aae
RW
2119 (source
2120 (origin
2121 (method url-fetch)
2122 (uri (cran-uri "checkmate" version))
2123 (sha256
2124 (base32
eea33597 2125 "193gkifr9spp0x0rwnjq1spdhjkfkh4mv27iklskcj604075phhd"))))
929d4aae
RW
2126 (build-system r-build-system)
2127 (propagated-inputs
2128 `(("r-backports" ,r-backports)))
2129 (home-page "https://github.com/mllg/checkmate")
2130 (synopsis "Fast and versatile argument checks")
2131 (description
2132 "This package provides tests and assertions to perform frequent argument
2133checks. A substantial part of the package was written in C to minimize any
2134worries about execution time overhead.")
2135 (license license:bsd-3)))
2136
cd26ec3b
RW
2137(define-public r-bbmisc
2138 (package
2139 (name "r-bbmisc")
ac5e8102 2140 (version "1.11")
cd26ec3b
RW
2141 (source
2142 (origin
2143 (method url-fetch)
2144 (uri (cran-uri "BBmisc" version))
2145 (sha256
2146 (base32
ac5e8102 2147 "1lh1n4bvxzivb5rbz69mvd8xdgr3gr2bnqd68a39sd1530l8r90y"))))
cd26ec3b
RW
2148 (properties `((upstream-name . "BBmisc")))
2149 (build-system r-build-system)
2150 (propagated-inputs
2151 `(("r-checkmate" ,r-checkmate)))
2152 (home-page "https://github.com/berndbischl/BBmisc")
2153 (synopsis "Miscellaneous functions for R package development")
2154 (description
2155 "This package provides miscellaneous helper functions for the development
2156of R packages.")
2157 (license license:bsd-3)))
2158
dc4fb16d
RW
2159(define-public r-fail
2160 (package
2161 (name "r-fail")
2162 (version "1.3")
2163 (source
2164 (origin
2165 (method url-fetch)
2166 (uri (cran-uri "fail" version))
2167 (sha256
2168 (base32
2169 "0vfm6kmpmgsamda5p0sl771kbnsscan31l2chzssyw93kwmams7d"))))
2170 (build-system r-build-system)
2171 (propagated-inputs
2172 `(("r-bbmisc" ,r-bbmisc)
2173 ("r-checkmate" ,r-checkmate)))
2174 (home-page "https://github.com/mllg/fail")
2175 (synopsis "File abstraction interface layer (FAIL)")
2176 (description
2177 "This package provides a more comfortable interface to work with R data
2178or source files in a key-value fashion.")
2179 (license license:bsd-3)))
2180
9e330278
RW
2181(define-public r-batchjobs
2182 (package
2183 (name "r-batchjobs")
7762b582 2184 (version "1.8")
9e330278
RW
2185 (source
2186 (origin
2187 (method url-fetch)
2188 (uri (cran-uri "BatchJobs" version))
2189 (sha256
2190 (base32
7762b582 2191 "1zz4sspj596pijxlz321g0jy2rg9ki83j6fihbwisjwr66p2vk1m"))))
9e330278
RW
2192 (properties `((upstream-name . "BatchJobs")))
2193 (build-system r-build-system)
2194 (propagated-inputs
e35cac95
RW
2195 `(("r-backports" ,r-backports)
2196 ("r-bbmisc" ,r-bbmisc)
9e330278
RW
2197 ("r-brew" ,r-brew)
2198 ("r-checkmate" ,r-checkmate)
e35cac95 2199 ("r-data-table" ,r-data-table)
9e330278
RW
2200 ("r-dbi" ,r-dbi)
2201 ("r-digest" ,r-digest)
9e330278
RW
2202 ("r-rsqlite" ,r-rsqlite)
2203 ("r-sendmailr" ,r-sendmailr)
e35cac95 2204 ("r-stringi" ,r-stringi)))
9e330278
RW
2205 (home-page "https://github.com/tudo-r/BatchJobs")
2206 (synopsis "Batch computing with R")
2207 (description
2208 "This package provides @code{Map}, @code{Reduce} and @code{Filter}
2209variants to generate jobs on batch computing systems like PBS/Torque, LSF,
2210SLURM and Sun Grid Engine. Multicore and SSH systems are also supported.")
2211 (license license:bsd-2)))
2212
13d083af
RW
2213(define-public r-brew
2214 (package
2215 (name "r-brew")
2216 (version "1.0-6")
2217 (source (origin
2218 (method url-fetch)
2219 (uri (cran-uri "brew" version))
2220 (sha256
2221 (base32
2222 "1vghazbcha8gvkwwcdagjvzx6yl8zm7kgr0i9wxr4jng06d1l3fp"))))
2223 (build-system r-build-system)
e9960d8c 2224 (home-page "https://cran.r-project.org/web/packages/brew")
13d083af
RW
2225 (synopsis "Templating framework for report generation")
2226 (description
2227 "The brew package implements a templating framework for mixing text and R
2228code for report generation. The template syntax is similar to PHP, Ruby's erb
2229module, Java Server Pages, and Python's psp module.")
2230 (license license:gpl2+)))
167c9882 2231
1cbb07a8
RW
2232(define-public r-desc
2233 (package
2234 (name "r-desc")
b2aeb2a5 2235 (version "1.2.0")
1cbb07a8
RW
2236 (source
2237 (origin
2238 (method url-fetch)
2239 (uri (cran-uri "desc" version))
2240 (sha256
2241 (base32
b2aeb2a5 2242 "1s6s13fk6sxwcj8wzkwxl9vr33153xx11p5wi9avqx3rzkabavz6"))))
1cbb07a8
RW
2243 (build-system r-build-system)
2244 (propagated-inputs
2245 `(("r-assertthat" ,r-assertthat)
2246 ("r-crayon" ,r-crayon)
2247 ("r-r6" ,r-r6)
2248 ("r-rprojroot" ,r-rprojroot)))
2249 (home-page "https://github.com/r-pkgs/desc")
2250 (synopsis "Manipulate DESCRIPTION Files")
2251 (description
2252 "This package provides tools to read, write, create, and manipulate
2253DESCRIPTION files. It is intended for packages that create or manipulate
2254other packages.")
2255 (license license:expat)))
2256
bf6dcf59
RW
2257(define-public r-commonmark
2258 (package
2259 (name "r-commonmark")
02c89c58 2260 (version "1.7")
bf6dcf59
RW
2261 (source
2262 (origin
2263 (method url-fetch)
2264 (uri (cran-uri "commonmark" version))
2265 (sha256
2266 (base32
02c89c58 2267 "024iz1qp2kv6iz6y69ir0jk3qhjps86rhkzlcmhqsxx97rx7cjni"))))
bf6dcf59 2268 (build-system r-build-system)
e9960d8c 2269 (home-page "https://cran.r-project.org/web/packages/commonmark")
bf6dcf59
RW
2270 (synopsis "CommonMark and Github Markdown Rendering in R")
2271 (description
2272 "The CommonMark specification defines a rationalized version of markdown
36a4366d
EF
2273syntax. This package uses the @code{cmark} reference implementation for
2274converting markdown text into various formats including HTML, LaTeX and groff
2275man. In addition, it exposes the markdown parse tree in XML format. The latest
bf6dcf59
RW
2276version of this package also adds support for Github extensions including
2277tables, autolinks and strikethrough text.")
2278 (license license:bsd-2)))
2279
167c9882
RW
2280(define-public r-roxygen2
2281 (package
2282 (name "r-roxygen2")
66f1fead 2283 (version "7.1.0")
167c9882
RW
2284 (source (origin
2285 (method url-fetch)
2286 (uri (cran-uri "roxygen2" version))
2287 (sha256
2288 (base32
66f1fead 2289 "00s1wzx5960k8pzgpz4kikjf4k061hyhnd278y65q6n0wzv3d6vy"))))
167c9882
RW
2290 (build-system r-build-system)
2291 (propagated-inputs
2292 `(("r-brew" ,r-brew)
1db29375
RW
2293 ("r-commonmark" ,r-commonmark)
2294 ("r-desc" ,r-desc)
167c9882 2295 ("r-digest" ,r-digest)
66f1fead 2296 ("r-knitr" ,r-knitr)
2848c52c
RW
2297 ("r-pkgload" ,r-pkgload)
2298 ("r-purrr" ,r-purrr)
1db29375 2299 ("r-r6" ,r-r6)
167c9882 2300 ("r-rcpp" ,r-rcpp)
2295a17e 2301 ("r-rlang" ,r-rlang)
167c9882 2302 ("r-stringi" ,r-stringi)
1db29375
RW
2303 ("r-stringr" ,r-stringr)
2304 ("r-xml2" ,r-xml2)))
167c9882
RW
2305 (home-page "https://github.com/klutometis/roxygen")
2306 (synopsis "In-source documentation system for R")
2307 (description
2308 "Roxygen2 is a Doxygen-like in-source documentation system for Rd,
2309collation, and NAMESPACE files.")
2310 (license license:gpl2+)))
681e03c1 2311
c26c0628
RW
2312(define-public r-openssl
2313 (package
2314 (name "r-openssl")
3511aff9 2315 (version "1.4.1")
c26c0628
RW
2316 (source
2317 (origin
2318 (method url-fetch)
2319 (uri (cran-uri "openssl" version))
2320 (sha256
2321 (base32
3511aff9 2322 "1ihz2qi33lhngl19xdanq0pbmfaacy63794mg8ll7z2lab3yryzp"))))
c26c0628
RW
2323 (build-system r-build-system)
2324 (inputs
0dc3b4d4 2325 `(("libressl" ,libressl)))
6d1db050
RW
2326 (native-inputs
2327 `(("pkg-config" ,pkg-config)))
2328 (propagated-inputs
2329 `(("r-askpass" ,r-askpass)))
c26c0628
RW
2330 (home-page "https://github.com/jeroenooms/openssl")
2331 (synopsis "Toolkit for encryption, signatures and certificates")
2332 (description
2333 "This package provides R bindings to OpenSSL libssl and libcrypto, plus
2334custom SSH pubkey parsers. It supports RSA, DSA and NIST curves P-256, P-384
2335and P-521. Cryptographic signatures can either be created and verified
2336manually or via x509 certificates. AES block cipher is used in CBC mode for
2337symmetric encryption; RSA for asymmetric (public key) encryption. High-level
2338envelope functions combine RSA and AES for encrypting arbitrary sized data.
2339Other utilities include key generators, hash functions (md5, sha1, sha256,
2340etc), base64 encoder, a secure random number generator, and @code{bignum} math
2341methods for manually performing crypto calculations on large multibyte
2342integers.")
2343 (license license:expat)))
2344
681e03c1
RW
2345(define-public r-httr
2346 (package
2347 (name "r-httr")
9236b2c1 2348 (version "1.4.1")
681e03c1
RW
2349 (source (origin
2350 (method url-fetch)
2351 (uri (cran-uri "httr" version))
2352 (sha256
2353 (base32
9236b2c1 2354 "0mp1il13q6n49n2hv1p2p8x6avjan6dr5az19ql4hb78pc3pwp37"))))
681e03c1
RW
2355 (build-system r-build-system)
2356 (propagated-inputs
2357 `(("r-curl" ,r-curl)
681e03c1 2358 ("r-jsonlite" ,r-jsonlite)
59bf9f4e 2359 ("r-openssl" ,r-openssl)
681e03c1 2360 ("r-mime" ,r-mime)
7d60652e 2361 ("r-r6" ,r-r6)))
681e03c1
RW
2362 (home-page "https://github.com/hadley/httr")
2363 (synopsis "Tools for working with URLs and HTTP")
2364 (description
2365 "The aim of httr is to provide a wrapper for RCurl customised to the
2366demands of modern web APIs. It provides useful tools for working with HTTP
2367organised by HTTP verbs (@code{GET()}, @code{POST()}, etc). Configuration
2368functions make it easy to control additional request components.")
2369 (license license:expat)))
035711f1
RW
2370
2371(define-public r-git2r
2372 (package
2373 (name "r-git2r")
ecb5c35c 2374 (version "0.27.1")
035711f1
RW
2375 (source (origin
2376 (method url-fetch)
2377 (uri (cran-uri "git2r" version))
2378 (sha256
2379 (base32
ecb5c35c 2380 "1h1vfzym6hi1fqs9p5z5v0f4xldggr425frw8k6dsidah3qhg4h9"))))
035711f1 2381 (build-system r-build-system)
035711f1 2382 (inputs
1df87085 2383 `(("libgit2" ,libgit2)
035711f1 2384 ("zlib" ,zlib)))
19cb93be
RW
2385 (native-inputs
2386 `(("pkg-config" ,pkg-config)))
035711f1
RW
2387 (home-page "https://github.com/ropensci/git2r")
2388 (synopsis "Access Git repositories with R")
2389 (description
2390 "This package provides an R interface to the libgit2 library, which is a
2391pure C implementation of the Git core methods.")
2392 ;; GPLv2 only with linking exception.
2393 (license license:gpl2)))
81a4228b
RW
2394
2395(define-public r-rstudioapi
2396 (package
2397 (name "r-rstudioapi")
f5afee10 2398 (version "0.11")
81a4228b
RW
2399 (source (origin
2400 (method url-fetch)
2401 (uri (cran-uri "rstudioapi" version))
2402 (sha256
2403 (base32
f5afee10 2404 "0srh0m4mw4k6s7spwb84l4cx4xnn04cp5cjxi0fwza7bwavpzq0k"))))
81a4228b 2405 (build-system r-build-system)
e9960d8c 2406 (home-page "https://cran.r-project.org/web/packages/rstudioapi")
81a4228b
RW
2407 (synopsis "Safely access the RStudio API")
2408 (description
2409 "This package provides functions to access the RStudio API and provide
2410informative error messages when it's not available.")
2411 (license license:expat)))
d6e21589
RW
2412
2413(define-public r-devtools
2414 (package
2415 (name "r-devtools")
5269899a 2416 (version "2.3.0")
d6e21589
RW
2417 (source (origin
2418 (method url-fetch)
2419 (uri (cran-uri "devtools" version))
2420 (sha256
2421 (base32
5269899a 2422 "1l6w765q180bg5mmdq5k2ymf6apz7ldhnknzf6ynfp1kf70pbhsg"))))
d6e21589
RW
2423 (build-system r-build-system)
2424 (propagated-inputs
c5bd8a7c
RW
2425 `(("r-callr" ,r-callr)
2426 ("r-cli" ,r-cli)
2b705168
RW
2427 ("r-covr" ,r-covr)
2428 ("r-crayon" ,r-crayon)
2429 ("r-desc" ,r-desc)
c5bd8a7c 2430 ("r-digest" ,r-digest)
2b705168
RW
2431 ("r-dt" ,r-dt)
2432 ("r-ellipsis" ,r-ellipsis)
2433 ("r-glue" ,r-glue)
d6e21589
RW
2434 ("r-git2r" ,r-git2r)
2435 ("r-httr" ,r-httr)
2436 ("r-jsonlite" ,r-jsonlite)
2437 ("r-memoise" ,r-memoise)
c5bd8a7c
RW
2438 ("r-pkgbuild" ,r-pkgbuild)
2439 ("r-pkgload" ,r-pkgload)
2440 ("r-rcmdcheck" ,r-rcmdcheck)
2441 ("r-remotes" ,r-remotes)
2b953e01
RW
2442 ("r-rlang" ,r-rlang)
2443 ("r-roxygen2" ,r-roxygen2)
d6e21589 2444 ("r-rstudioapi" ,r-rstudioapi)
2b705168 2445 ("r-rversions" ,r-rversions)
c5bd8a7c 2446 ("r-sessioninfo" ,r-sessioninfo)
78896ba2 2447 ("r-testthat" ,r-testthat)
c5bd8a7c 2448 ("r-usethis" ,r-usethis)
fa9f0e6c 2449 ("r-withr" ,r-withr)))
5269899a
RW
2450 (native-inputs
2451 `(("r-knitr" ,r-knitr)))
d6e21589
RW
2452 (home-page "https://github.com/hadley/devtools")
2453 (synopsis "Tools to make developing R packages easier")
2454 (description "The devtools package is a collection of package development
2455tools to simplify the devolpment of R packages.")
2456 (license license:gpl2+)))
03af370f 2457
a080e50c
RJ
2458(define-public r-withr
2459 (package
2460 (name "r-withr")
67aced63 2461 (version "2.2.0")
a080e50c
RJ
2462 (source (origin
2463 (method url-fetch)
2464 (uri (cran-uri "withr" version))
2465 (sha256
2466 (base32
67aced63 2467 "10mmfffjbnb2zq5x0kqhhb4z6va4micc6pjzvlfji34gyhffa8ac"))))
a080e50c 2468 (build-system r-build-system)
67aced63
RW
2469 (native-inputs
2470 `(("r-knitr" ,r-knitr)))
a080e50c
RJ
2471 (home-page "https://github.com/jimhester/withr")
2472 (synopsis "Run code with temporarily modified global state")
2473 (description
2474 "This package provides a set of functions to run R code in an environment
2475in which global state has been temporarily modified. Many of these functions
2476were originally a part of the r-devtools package.")
2477 (license license:gpl2+)))
2478
b90314b4
RW
2479(define-public r-hms
2480 (package
2481 (name "r-hms")
0d9fed2f 2482 (version "0.5.3")
b90314b4
RW
2483 (source
2484 (origin
2485 (method url-fetch)
2486 (uri (cran-uri "hms" version))
2487 (sha256
2488 (base32
0d9fed2f 2489 "1baki0qw5ijgiflvsdvqj3apg4yanf12vx14kwbqdzk5rz46fasf"))))
b90314b4 2490 (build-system r-build-system)
09c0107f
RW
2491 (propagated-inputs
2492 `(("r-rlang" ,r-rlang)
9b02d1c8
RW
2493 ("r-pkgconfig" ,r-pkgconfig)
2494 ("r-vctrs" ,r-vctrs)))
b90314b4
RW
2495 (home-page "https://github.com/rstats-db/hms")
2496 (synopsis "Pretty time of day")
2497 (description
2498 "This package implements an S3 class for storing and formatting
2499time-of-day values, based on the @code{difftime} class.")
2500 (license license:gpl3+)))
2501
03af370f
RW
2502(define-public r-readr
2503 (package
2504 (name "r-readr")
ef915303 2505 (version "1.3.1")
03af370f
RW
2506 (source (origin
2507 (method url-fetch)
2508 (uri (cran-uri "readr" version))
2509 (sha256
2510 (base32
ef915303 2511 "1wz496rw0ah433p755n3xac8gh7yzid4xgdjzd1a7wmpkgilvy9k"))))
03af370f
RW
2512 (build-system r-build-system)
2513 (propagated-inputs
ef915303
RW
2514 `(("r-clipr" ,r-clipr)
2515 ("r-crayon" ,r-crayon)
2516 ("r-rcpp" ,r-rcpp)
8c6e2b84
RW
2517 ("r-hms" ,r-hms)
2518 ("r-tibble" ,r-tibble)
2519 ("r-r6" ,r-r6)
03af370f
RW
2520 ("r-bh" ,r-bh)))
2521 (home-page "https://github.com/hadley/readr")
2522 (synopsis "Read tabular data")
2523 (description
2524 "This package provides functions to read flat or tabular text files from
2525disk (or a connection).")
2526 (license license:gpl2+)))
60a9d3d0
RW
2527
2528(define-public r-plotrix
2529 (package
2530 (name "r-plotrix")
0e300393 2531 (version "3.7-8")
60a9d3d0
RW
2532 (source (origin
2533 (method url-fetch)
2534 (uri (cran-uri "plotrix" version))
2535 (sha256
2536 (base32
0e300393 2537 "104llmr6dvlcnfpmd8zbdlv63k79djc4qqgadjavj4v4cmz1zkcc"))))
60a9d3d0 2538 (build-system r-build-system)
e9960d8c 2539 (home-page "https://cran.r-project.org/web/packages/plotrix")
60a9d3d0
RW
2540 (synopsis "Various plotting functions")
2541 (description
2542 "This package provides lots of plotting, various labeling, axis and color
2543scaling functions for R.")
2544 (license license:gpl2+)))
2a40f763
RW
2545
2546(define-public r-gridbase
2547 (package
2548 (name "r-gridbase")
2549 (version "0.4-7")
2550 (source (origin
2551 (method url-fetch)
2552 (uri (cran-uri "gridBase" version))
2553 (sha256
2554 (base32
2555 "09jzw4rzwf2y5lcz7b16mb68pn0fqigv34ff7lr6w3yi9k91i1xy"))))
2556 (build-system r-build-system)
e9960d8c 2557 (home-page "https://cran.r-project.org/web/packages/gridBase")
2a40f763
RW
2558 (synopsis "Integration of base and grid graphics")
2559 (description
2560 "This package provides an integration of base and grid graphics for R.")
2561 (license license:gpl2+)))
ca3476cd 2562
b20abbcd
RW
2563(define-public r-latticeextra
2564 (package
2565 (name "r-latticeextra")
ccf3cafa 2566 (version "0.6-29")
b20abbcd
RW
2567 (source
2568 (origin
2569 (method url-fetch)
2570 (uri (cran-uri "latticeExtra" version))
2571 (sha256
2572 (base32
ccf3cafa 2573 "04fzwcqs594rk5qp98yilh3kdh3sw4xf8wld5rp94ggpaqfw7bbc"))))
b20abbcd
RW
2574 (properties `((upstream-name . "latticeExtra")))
2575 (build-system r-build-system)
2576 (propagated-inputs
ccf3cafa
RW
2577 `(("r-jpeg" ,r-jpeg)
2578 ("r-lattice" ,r-lattice)
2579 ("r-png" ,r-png)
b20abbcd
RW
2580 ("r-rcolorbrewer" ,r-rcolorbrewer)))
2581 (home-page "http://latticeextra.r-forge.r-project.org/")
2582 (synopsis "Extra graphical utilities based on lattice")
2583 (description
2584 "Building on the infrastructure provided by the lattice package, this
2585package provides several new high-level graphics functions and methods, as
2586well as additional utilities such as panel and axis annotation functions.")
2587 (license license:gpl2+)))
2588
e22d4ca4
RW
2589(define-public r-rcpparmadillo
2590 (package
2591 (name "r-rcpparmadillo")
0ffd9701 2592 (version "0.9.870.2.0")
e22d4ca4
RW
2593 (source (origin
2594 (method url-fetch)
2595 (uri (cran-uri "RcppArmadillo" version))
2596 (sha256
2597 (base32
0ffd9701 2598 "1r7iajxvbyvslsy16rqacc95azmjciw9lvcq31xl97fl09kmsq5v"))))
e22d4ca4
RW
2599 (properties `((upstream-name . "RcppArmadillo")))
2600 (build-system r-build-system)
e22d4ca4 2601 (propagated-inputs
0685fe3c 2602 `(("r-rcpp" ,r-rcpp)))
e22d4ca4
RW
2603 (home-page "https://github.com/RcppCore/RcppArmadillo")
2604 (synopsis "Rcpp integration for the Armadillo linear algebra library")
2605 (description
2606 "Armadillo is a templated C++ linear algebra library that aims towards a
2607good balance between speed and ease of use. Integer, floating point and
2608complex numbers are supported, as well as a subset of trigonometric and
2609statistics functions. Various matrix decompositions are provided through
2610optional integration with LAPACK and ATLAS libraries. This package includes
2611the header files from the templated Armadillo library.")
2612 ;; Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
2613 ;; bindings to Armadillo) is licensed under the GNU GPL version 2 or
2614 ;; later, as is the rest of 'Rcpp'.
2615 (license license:gpl2+)))
bb6d2dad
RW
2616
2617(define-public r-bitops
2618 (package
2619 (name "r-bitops")
2620 (version "1.0-6")
2621 (source (origin
2622 (method url-fetch)
2623 (uri (cran-uri "bitops" version))
2624 (sha256
2625 (base32
2626 "176nr5wpnkavn5z0yy9f7d47l37ndnn2w3gv854xav8nnybi6wwv"))))
2627 (build-system r-build-system)
e9960d8c 2628 (home-page "https://cran.r-project.org/web/packages/bitops")
bb6d2dad
RW
2629 (synopsis "Bitwise operations")
2630 (description
2631 "This package provides functions for bitwise operations on integer
2632vectors.")
2633 (license license:gpl2+)))
4c1f2705
RW
2634
2635(define-public r-catools
2636 (package
2637 (name "r-catools")
8d9e8522 2638 (version "1.18.0")
4c1f2705
RW
2639 (source (origin
2640 (method url-fetch)
2641 (uri (cran-uri "caTools" version))
2642 (sha256
2643 (base32
8d9e8522 2644 "0y1kgyiy322yhb0phzwvf2zgjz9awp13lhzhk9v1ddg88656jhq3"))))
4c1f2705
RW
2645 (properties `((upstream-name . "caTools")))
2646 (build-system r-build-system)
2647 (propagated-inputs
2648 `(("r-bitops" ,r-bitops)))
e9960d8c 2649 (home-page "https://cran.r-project.org/web/packages/caTools")
4c1f2705
RW
2650 (synopsis "Various tools including functions for moving window statistics")
2651 (description
2652 "This package contains several basic utility functions including:
2653moving (rolling, running) window statistic functions, read/write for GIF and
2654ENVI binary files, fast calculation of AUC, LogitBoost classifier, base64
2655encoder/decoder, round-off-error-free sum and cumsum, etc.")
2656 (license license:gpl3+)))
77bdb276 2657
046e27e3
RW
2658(define-public r-rprojroot
2659 (package
2660 (name "r-rprojroot")
1324f85b 2661 (version "1.3-2")
046e27e3
RW
2662 (source
2663 (origin
2664 (method url-fetch)
2665 (uri (cran-uri "rprojroot" version))
2666 (sha256
2667 (base32
1324f85b 2668 "12r3fdxmi2pmwn6ic3rhg0b20ll5z420m0d8fziv1n21961namnz"))))
046e27e3
RW
2669 (build-system r-build-system)
2670 (propagated-inputs
2671 `(("r-backports" ,r-backports)))
2672 (home-page "https://github.com/krlmlr/rprojroot")
2673 (synopsis "Finding files in project subdirectories")
2674 (description
2675 "This package helps accessing files relative to a project root. It
2676provides helpers for robust, reliable and flexible paths to files below a
2677project root. The root of a project is defined as a directory that matches a
2678certain criterion, e.g., it contains a certain regular file.")
2679 (license license:gpl3)))
2680
77bdb276
RW
2681(define-public r-rmarkdown
2682 (package
2683 (name "r-rmarkdown")
af837b99 2684 (version "2.1")
77bdb276
RW
2685 (source
2686 (origin
2687 (method url-fetch)
2688 (uri (cran-uri "rmarkdown" version))
2689 (sha256
af837b99 2690 (base32 "0pa5xs0vzwn9vsgysjqbks9v5lbqphxh5agciskllibc40hhwigg"))))
77bdb276
RW
2691 (properties `((upstream-name . "rmarkdown")))
2692 (build-system r-build-system)
2693 (propagated-inputs
0382d377 2694 `(("r-base64enc" ,r-base64enc)
8e1369f1 2695 ("r-evaluate" ,r-evaluate)
77bdb276 2696 ("r-htmltools" ,r-htmltools)
87a7c55e 2697 ("r-jsonlite" ,r-jsonlite)
77bdb276 2698 ("r-knitr" ,r-knitr)
0382d377 2699 ("r-mime" ,r-mime)
0382d377 2700 ("r-stringr" ,r-stringr)
6221de18 2701 ("r-tinytex" ,r-tinytex)
3fca3fa1 2702 ("r-xfun" ,r-xfun)
77bdb276 2703 ("r-yaml" ,r-yaml)
78f2c08c 2704 ("ghc-pandoc" ,ghc-pandoc)))
3757f5cb 2705 (home-page "https://rmarkdown.rstudio.com")
77bdb276
RW
2706 (synopsis "Convert R Markdown documents into a variety of formats")
2707 (description
2708 "This package provides tools to convert R Markdown documents into a
2709variety of formats.")
2710 (license license:gpl3+)))
b73751c8
RW
2711
2712(define-public r-gtable
2713 (package
2714 (name "r-gtable")
733b3c59 2715 (version "0.3.0")
b73751c8
RW
2716 (source (origin
2717 (method url-fetch)
2718 (uri (cran-uri "gtable" version))
2719 (sha256
2720 (base32
733b3c59 2721 "1lyncxf2dqdjgw1071cn9c8zwzkz6sldnd5cgmicf70bc726qf7x"))))
b73751c8
RW
2722 (properties `((upstream-name . "gtable")))
2723 (build-system r-build-system)
9c53993f
TGR
2724 (home-page "https://cran.r-project.org/web/packages/gtable")
2725 (synopsis "R library to arrange grobs in tables")
b73751c8 2726 (description
9c53993f
TGR
2727 "Gtable is a collection of tools to make it easier to work with
2728\"tables\" of grobs.")
b73751c8 2729 (license license:gpl2+)))
9e47f30b
RW
2730
2731(define-public r-gridextra
2732 (package
2733 (name "r-gridextra")
9f14fffe 2734 (version "2.3")
9e47f30b
RW
2735 (source (origin
2736 (method url-fetch)
2737 (uri (cran-uri "gridExtra" version))
2738 (sha256
2739 (base32
9f14fffe 2740 "0fwfk3cdwxxim7nd55pn7m31bcaqj48y06j7an2k1v1pybk0rdl1"))))
9e47f30b
RW
2741 (properties `((upstream-name . "gridExtra")))
2742 (build-system r-build-system)
2743 (propagated-inputs
2744 `(("r-gtable" ,r-gtable)))
2745 (native-inputs
2746 `(("r-knitr" ,r-knitr))) ;for building vignettes
2747 (home-page "https://github.com/baptiste/gridextra")
2748 (synopsis "Miscellaneous functions for \"Grid\" graphics")
2749 (description
2750 "This package provides a number of user-level functions to work with
2751@code{grid} graphics, notably to arrange multiple grid-based plots on a page,
2752and draw tables.")
2753 (license license:gpl2+)))
2754
aa184803
RJ
2755(define-public r-pkgconfig
2756 (package
2757 (name "r-pkgconfig")
51997203 2758 (version "2.0.3")
aa184803
RJ
2759 (source (origin
2760 (method url-fetch)
2761 (uri (cran-uri "pkgconfig" version))
2762 (sha256
2763 (base32
51997203 2764 "0l1qph8zyi2sic3k2qcd7vlfl7rzfh1q7z7zvjkl5f7y1x2fy3rk"))))
aa184803
RJ
2765 (build-system r-build-system)
2766 (home-page "https://github.com/gaborcsardi/pkgconfig")
2767 (synopsis "Private configuration for R packages")
2768 (description "This package provides the functionality to set configuration
2769options on a per-package basis. Options set by a given package only apply to
2770that package, other packages are unaffected.")
2771 (license license:expat)))
2772
796237a9
RJ
2773(define-public r-blob
2774 (package
2775 (name "r-blob")
1cc17e37 2776 (version "1.2.1")
796237a9
RJ
2777 (source (origin
2778 (method url-fetch)
2779 (uri (cran-uri "blob" version))
2780 (sha256
2781 (base32
1cc17e37 2782 "1slb5mvxfyi92i8ifx2qa31hp57inilwhq1g9lzvgha6jrxbqm7g"))))
796237a9
RJ
2783 (build-system r-build-system)
2784 (propagated-inputs
1cc17e37 2785 `(("r-rlang" ,r-rlang)
2de0f885 2786 ("r-vctrs" ,r-vctrs)))
796237a9
RJ
2787 (home-page "https://github.com/hadley/blob")
2788 (synopsis "Simple S3 Class for representing vectors of binary data")
2789 (description "Raw vectors in R are useful for storing a single binary
2790object. What if you want to put a vector of them in a data frame? The blob
2791package provides the blob object, a list of raw vectors, suitable for use as
2792a column in data frame.")
2793 (license license:gpl3+)))
2794
21e4d6a9
RW
2795(define-public r-rsqlite
2796 (package
2797 (name "r-rsqlite")
b210274a 2798 (version "2.2.0")
21e4d6a9
RW
2799 (source (origin
2800 (method url-fetch)
2801 (uri (cran-uri "RSQLite" version))
2802 (sha256
2803 (base32
b210274a 2804 "1m38sj8rwbf3p2lhqabcp7c7djk7s9ng37cz39yxk706v9pi4380"))))
21e4d6a9
RW
2805 (properties `((upstream-name . "RSQLite")))
2806 (build-system r-build-system)
2807 (propagated-inputs
35bb2ff8
RW
2808 `(("r-dbi" ,r-dbi)
2809 ("r-bh" ,r-bh)
2810 ("r-memoise" ,r-memoise)
2811 ("r-plogr" ,r-plogr)
8060a617
RJ
2812 ("r-rcpp" ,r-rcpp)
2813 ("r-bit64" ,r-bit64)
2814 ("r-blob" ,r-blob)
2815 ("r-pkgconfig" ,r-pkgconfig)))
21e4d6a9
RW
2816 (home-page "https://github.com/rstats-db/RSQLite")
2817 (synopsis "SQLite interface for R")
2818 (description
2819 "This package embeds the SQLite database engine in R and provides an
2820interface compliant with the DBI package. The source for the SQLite
8060a617 2821engine (version 3.8.8.2) is included.")
21e4d6a9
RW
2822 (license license:lgpl2.0+)))
2823
cefaa79c
RW
2824(define-public r-rcurl
2825 (package
2826 (name "r-rcurl")
2827 (version "1.95-0.1.2")
2828 (source (origin
2829 (method url-fetch)
5713bbf1 2830 (uri (string-append "https://www.bioconductor.org/packages/"
cefaa79c
RW
2831 "release/extra/src/"
2832 "contrib/RCurl_" version ".tar.gz"))
2833 (sha256
2834 (base32
2835 "0l7qi45jxlf898n0jazabnam1yyczvqfdknd00bdirhhiplpd1sc"))))
2836 (properties `((upstream-name . "RCurl")))
2837 (build-system r-build-system)
8d3dda02
RW
2838 (arguments
2839 `(#:phases
2840 (modify-phases %standard-phases
2841 (add-after 'unpack 'respect-CURL_CA_BUNDLE
2842 (lambda _
2843 (substitute* "R/options.S"
2844 (("\\.els = rev\\(merge\\(list\\(\\.\\.\\.\\), \\.opts\\)\\)" m)
2845 (string-append "\
2846certs = Sys.getenv(\"CURL_CA_BUNDLE\")
2847if (certs != \"\") { .opts = merge.list(.opts, list(cainfo=certs)) }
2848" m)))
2849 #t)))))
cefaa79c
RW
2850 (inputs
2851 `(("libcurl" ,curl)))
2852 (propagated-inputs
2853 `(("r-bitops" ,r-bitops)))
2854 (home-page "http://www.omegahat.org/RCurl")
2855 (synopsis "General network client interface for R")
2856 (description
2857 "The package allows one to compose general HTTP requests and provides
2858convenient functions to fetch URIs, GET and POST forms, etc. and process the
2859results returned by the Web server. This provides a great deal of control
2860over the HTTP/FTP/... connection and the form of the request while providing a
2861higher-level interface than is available just using R socket connections.
2862Additionally, the underlying implementation is robust and extensive,
2863supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict,
2864ldap, and also supports cookies, redirects, authentication, etc.")
2865 (license license:bsd-3)))
2866
543ded36
RW
2867(define-public r-xml
2868 (package
2869 (name "r-xml")
b4a374ec 2870 (version "3.99-0.3")
543ded36
RW
2871 (source (origin
2872 (method url-fetch)
2873 (uri (cran-uri "XML" version))
2874 (sha256
2875 (base32
b4a374ec 2876 "0lzpqwajs5xaqdna50vl24qkp9xvh00zypjjzy6kgdzk11isgdw1"))))
543ded36
RW
2877 (properties
2878 `((upstream-name . "XML")))
2879 (build-system r-build-system)
2880 (inputs
e5e56cc9
RW
2881 `(("libxml2" ,libxml2)
2882 ("zlib" ,zlib)))
2883 (native-inputs
2884 `(("pkg-config" ,pkg-config)))
543ded36
RW
2885 (home-page "http://www.omegahat.org/RSXML")
2886 (synopsis "Tools for parsing and generating XML within R")
2887 (description
2888 "Many approaches for both reading and creating XML (and HTML)
2889documents (including DTDs), both local and accessible via HTTP or FTP. Also
2890offers access to an XPath \"interpreter\".")
2891 (license license:bsd-2)))
2892
b74f64a9
RW
2893(define-public r-xnomial
2894 (package
2895 (name "r-xnomial")
2896 (version "1.0.4")
2897 (source
2898 (origin (method url-fetch)
2899 (uri (cran-uri "XNomial" version))
2900 (sha256
2901 (base32
2902 "1mwx302576rmsjllbq2clfxilm3hkyp5bw0wmwqbn0kgv5wpy8z6"))))
2903 (properties (quasiquote ((upstream-name . "XNomial"))))
2904 (build-system r-build-system)
e9960d8c 2905 (home-page "https://cran.r-project.org/web/packages/XNomial")
b74f64a9
RW
2906 (synopsis "Goodness-of-Fit test for multinomial data")
2907 (description
2908 "This package provides an exact Goodness-of-Fit test for
2909multinomial data with fixed probabilities. It can be used to
2910determine whether a set of counts fits a given expected ratio. To see
2911whether a set of observed counts fits an expectation, one can examine
2912all possible outcomes with @code{xmulti()} or a random sample of them
2913with @code{xmonte()} and find the probability of an observation
2914deviating from the expectation by at least as much as the observed.
2915As a measure of deviation from the expected, one can use the
2916log-likelihood ratio, the multinomial probability, or the classic
2917chi-square statistic. A histogram of the test statistic can also be
2918plotted and compared with the asymptotic curve.")
2919 (license (list license:gpl2+ license:gpl3+))))
2920
ca65d387
RW
2921(define-public r-lambda-r
2922 (package
2923 (name "r-lambda-r")
a416d680 2924 (version "1.2.4")
ca65d387
RW
2925 (source (origin
2926 (method url-fetch)
2927 (uri (cran-uri "lambda.r" version))
2928 (sha256
2929 (base32
a416d680 2930 "1mh1g0gsd58gng0hb29vww2yqb2jfs07kba5kxnnqck5j3izwlnj"))))
ca65d387
RW
2931 (properties `((upstream-name . "lambda.r")))
2932 (build-system r-build-system)
6ab97ed5
RW
2933 (propagated-inputs
2934 `(("r-formatr" ,r-formatr)))
e9960d8c 2935 (home-page "https://cran.r-project.org/web/packages/lambda.r")
ca65d387
RW
2936 (synopsis "Functional programming extension for R")
2937 (description
2938 "This package provides a language extension to efficiently write
2939functional programs in R. Syntax extensions include multi-part function
2940definitions, pattern matching, guard statements, built-in (optional) type
2941safety.")
2942 (license license:lgpl3+)))
2943
b9ff33b5
RW
2944(define-public r-futile-options
2945 (package
2946 (name "r-futile-options")
30d76d44 2947 (version "1.0.1")
b9ff33b5
RW
2948 (source (origin
2949 (method url-fetch)
2950 (uri (cran-uri "futile.options" version))
2951 (sha256
2952 (base32
30d76d44 2953 "0w15agpi88y3qkv6fl72zy2pzyplzgvnj41a4ixhg64mw1sck73s"))))
b9ff33b5
RW
2954 (properties
2955 `((upstream-name . "futile.options")))
2956 (build-system r-build-system)
e9960d8c 2957 (home-page "https://cran.r-project.org/web/packages/futile.options")
b9ff33b5
RW
2958 (synopsis "Options management framework")
2959 (description
2960 "The futile.options subsystem provides an easy user-defined options
2961management system that is properly scoped. This means that options created
2962via @code{futile.options} are fully self-contained and will not collide with
2963options defined in other packages.")
2964 (license license:lgpl3+)))
2965
6b82f56c
RW
2966(define-public r-futile-logger
2967 (package
2968 (name "r-futile-logger")
27f10d3d 2969 (version "1.4.3")
6b82f56c
RW
2970 (source (origin
2971 (method url-fetch)
2972 (uri (cran-uri "futile.logger" version))
2973 (sha256
2974 (base32
27f10d3d 2975 "1r3nayk0z9n1svbf8640vw90dal5q07nkn0gv4bnva3pbzb352sy"))))
6b82f56c
RW
2976 (properties `((upstream-name . "futile.logger")))
2977 (build-system r-build-system)
2978 (propagated-inputs
2979 `(("r-futile-options" ,r-futile-options)
2980 ("r-lambda-r" ,r-lambda-r)))
e9960d8c 2981 (home-page "https://cran.r-project.org/web/packages/futile.logger")
6b82f56c
RW
2982 (synopsis "Logging utility for R")
2983 (description
2984 "This package provides a simple yet powerful logging utility. Based
2985loosely on log4j, futile.logger takes advantage of R idioms to make logging a
2986convenient and easy to use replacement for @code{cat} and @code{print}
2987statements.")
2988 (license license:lgpl3+)))
2989
3e4c0c66
RW
2990(define-public r-segmented
2991 (package
2992 (name "r-segmented")
804e0682 2993 (version "1.1-0")
3e4c0c66
RW
2994 (source
2995 (origin
2996 (method url-fetch)
2997 (uri (cran-uri "segmented" version))
2998 (sha256
2999 (base32
804e0682 3000 "06cxdrqgnpk5fvbam5i7qa4n71wry0yvlj0jpwbxf267mvpx10fh"))))
3e4c0c66 3001 (build-system r-build-system)
e9960d8c 3002 (home-page "https://cran.r-project.org/web/packages/segmented")
3e4c0c66
RW
3003 (synopsis "Regression models with breakpoints estimation")
3004 (description
3005 "Given a regression model, segmented updates the model by adding one or
3006more segmented (i.e., piecewise-linear) relationships. Several variables with
3007multiple breakpoints are allowed.")
3008 (license (list license:gpl2+ license:gpl3+))))
3009
bc899123
RW
3010(define-public r-snow
3011 (package
3012 (name "r-snow")
3ea7aefd 3013 (version "0.4-3")
bc899123
RW
3014 (source (origin
3015 (method url-fetch)
3016 (uri (cran-uri "snow" version))
3017 (sha256
3018 (base32
3ea7aefd 3019 "1n3n8pva9s34fvlw32yng0x416lmbv7q1fsd0ywa4kikmxym64l5"))))
bc899123 3020 (build-system r-build-system)
e9960d8c 3021 (home-page "https://cran.r-project.org/web/packages/snow")
bc899123
RW
3022 (synopsis "Support for simple parallel computing in R")
3023 (description
3024 "The snow package provides support for simple parallel computing on a
3025network of workstations using R. A master R process calls @code{makeCluster}
3026to start a cluster of worker processes; the master process then uses functions
3027such as @code{clusterCall} and @code{clusterApply} to execute R code on the
3028worker processes and collect and return the results on the master.")
3029 (license (list license:gpl2+ license:gpl3+))))
3030
d706257b
RW
3031(define-public r-sparsem
3032 (package
3033 (name "r-sparsem")
468fb90f 3034 (version "1.78")
d706257b
RW
3035 (source (origin
3036 (method url-fetch)
3037 (uri (cran-uri "SparseM" version))
3038 (sha256
3039 (base32
468fb90f 3040 "0cmlm0lps3daalvp5jzjnjfys388hgkyc8yw0g5r2351h749xdyn"))))
d706257b
RW
3041 (properties
3042 `((upstream-name . "SparseM")))
468fb90f 3043 (native-inputs
d7786ce9 3044 `(("gfortran" ,gfortran)))
d706257b
RW
3045 (build-system r-build-system)
3046 (home-page "http://www.econ.uiuc.edu/~roger/research/sparse/sparse.html")
3047 (synopsis "Sparse linear algebra")
3048 (description
3049 "This package provides some basic linear algebra functionality for sparse
3050matrices. It includes Cholesky decomposition and backsolving as well as
3051standard R subsetting and Kronecker products.")
3052 (license license:gpl2+)))
3053
264df1a4
RW
3054(define-public r-iterators
3055 (package
3056 (name "r-iterators")
b41d03dd 3057 (version "1.0.12")
264df1a4
RW
3058 (source
3059 (origin
3060 (method url-fetch)
3061 (uri (cran-uri "iterators" version))
3062 (sha256
3063 (base32
b41d03dd 3064 "0jwzxaa3jm1xzgfv5pn0xqkk7rhm0xwvgn85w7xaw8xx1vb33gwn"))))
264df1a4 3065 (build-system r-build-system)
e9960d8c 3066 (home-page "https://cran.r-project.org/web/packages/iterators")
264df1a4
RW
3067 (synopsis "Iterator construct for R")
3068 (description
3069 "This package provides support for iterators, which allow a programmer to
3070traverse through all the elements of a vector, list, or other collection of
3071data.")
3072 (license license:asl2.0)))
3073
b2cdb027
RW
3074(define-public r-foreach
3075 (package
3076 (name "r-foreach")
383895dd 3077 (version "1.5.0")
b2cdb027
RW
3078 (source
3079 (origin
3080 (method url-fetch)
3081 (uri (cran-uri "foreach" version))
3082 (sha256
3083 (base32
383895dd 3084 "0584nv49x8d8m1cak5drb54sxs3y594gd521kjsdwk4c849sgy8s"))))
b2cdb027
RW
3085 (build-system r-build-system)
3086 (propagated-inputs
3087 `(("r-codetools" ,r-codetools)
3088 ("r-iterators" ,r-iterators)))
383895dd
RW
3089 (native-inputs
3090 `(("r-knitr" ,r-knitr)))
e9960d8c 3091 (home-page "https://cran.r-project.org/web/packages/foreach")
b2cdb027
RW
3092 (synopsis "Foreach looping construct for R")
3093 (description
3094 "This package provides support for the @code{foreach} looping construct.
3095@code{foreach} is an idiom that allows for iterating over elements in a
3096collection, without the use of an explicit loop counter. This package in
3097particular is intended to be used for its return value, rather than for its
3098side effects. In that sense, it is similar to the standard @code{lapply}
3099function, but doesn't require the evaluation of a function. Using
3100@code{foreach} without side effects also facilitates executing the loop in
3101parallel.")
3102 (license license:asl2.0)))
3103
71cafa04
RW
3104(define-public r-doparallel
3105 (package
3106 (name "r-doparallel")
86295981 3107 (version "1.0.15")
71cafa04
RW
3108 (source
3109 (origin
3110 (method url-fetch)
3111 (uri (cran-uri "doParallel" version))
3112 (sha256
3113 (base32
86295981 3114 "0vnqbha3gig3awbfvsfx3ni5jir398md1n7xmsb8jihnjsk7xbbi"))))
71cafa04
RW
3115 (properties `((upstream-name . "doParallel")))
3116 (build-system r-build-system)
3117 (propagated-inputs
3118 `(("r-foreach" ,r-foreach)
3119 ("r-iterators" ,r-iterators)))
e9960d8c 3120 (home-page "https://cran.r-project.org/web/packages/doParallel")
71cafa04
RW
3121 (synopsis "Foreach parallel adaptor for the 'parallel' package")
3122 (description
3123 "This package provides a parallel backend for the @code{%dopar%} function
3124using the parallel package.")
3125 (license license:gpl2+)))
3126
66cf0f05
RW
3127(define-public r-domc
3128 (package
3129 (name "r-domc")
8d84a0ad 3130 (version "1.3.6")
66cf0f05
RW
3131 (source
3132 (origin
3133 (method url-fetch)
3134 (uri (cran-uri "doMC" version))
3135 (sha256
3136 (base32
8d84a0ad 3137 "1cn9gxavhvjswip8pwvkpi7q6wpzdllcsdjabga8akf55nggqxr9"))))
66cf0f05
RW
3138 (properties `((upstream-name . "doMC")))
3139 (build-system r-build-system)
3140 (propagated-inputs
3141 `(("r-foreach" ,r-foreach)
3142 ("r-iterators" ,r-iterators)))
e9960d8c 3143 (home-page "https://cran.r-project.org/web/packages/doMC")
66cf0f05
RW
3144 (synopsis "Foreach parallel adaptor for the 'parallel' package")
3145 (description
3146 "This package provides a parallel backend for the @code{%dopar%} function
3147using the multicore functionality of the parallel package.")
3148 (license license:gpl2+)))
3149
a8227e4a
RW
3150(define-public r-dt
3151 (package
3152 (name "r-dt")
d16a4d1f 3153 (version "0.13")
a8227e4a
RW
3154 (source (origin
3155 (method url-fetch)
3156 (uri (cran-uri "DT" version))
3157 (sha256
3158 (base32
d16a4d1f 3159 "1db35mi4m4q3kha4vhvh693bv04y7h9pdawhsx8f234qjvz7783r"))))
a8227e4a
RW
3160 (properties
3161 `((upstream-name . "DT")))
3162 (build-system r-build-system)
3163 (propagated-inputs
a63117c8
RW
3164 `(("r-crosstalk" ,r-crosstalk)
3165 ("r-htmltools" ,r-htmltools)
a8227e4a 3166 ("r-htmlwidgets" ,r-htmlwidgets)
fdc0688c 3167 ("r-jsonlite" ,r-jsonlite)
466397c3
RW
3168 ("r-magrittr" ,r-magrittr)
3169 ("r-promises" ,r-promises)))
d16a4d1f
RW
3170 (native-inputs
3171 `(("r-knitr" ,r-knitr)))
88c6a181 3172 (home-page "https://rstudio.github.io/DT")
a8227e4a
RW
3173 (synopsis "R wrapper of the DataTables JavaScript library")
3174 (description
3175 "This package allows for data objects in R to be rendered as HTML tables
36a4366d
EF
3176using the JavaScript library @code{DataTables} (typically via R Markdown or
3177Shiny). The @code{DataTables} library has been included in this R package.")
a8227e4a
RW
3178 ;; The DT package as a whole is distributed under GPLv3. The DT package
3179 ;; inludes other software components under different licenses:
3180 ;;
3181 ;; * Expat: jQuery, jquery.highlight.js, DataTables
3182 ;; * ASL2.0: selectize.js
3183 ;; * WTFPL: noUiSlider
3184 (license (list license:gpl3
3185 license:expat
3186 license:asl2.0
113309e0 3187 license:wtfpl2))))
a8227e4a 3188
a69a5935
RW
3189(define-public r-base64enc
3190 (package
3191 (name "r-base64enc")
3192 (version "0.1-3")
3193 (source (origin
3194 (method url-fetch)
3195 (uri (cran-uri "base64enc" version))
3196 (sha256
3197 (base32
3198 "13b89fhg1nx7zds82a0biz847ixphg9byf5zl2cw9kab6s56v1bd"))))
3199 (build-system r-build-system)
ac5bd7f0 3200 (home-page "https://www.rforge.net/base64enc")
a69a5935
RW
3201 (synopsis "Tools for Base64 encoding")
3202 (description
3203 "This package provides tools for handling Base64 encoding. It is more
3204flexible than the orphaned \"base64\" package.")
3205 (license license:gpl2+)))
3206
dada39aa
RW
3207(define-public r-irlba
3208 (package
3209 (name "r-irlba")
6be62a5a 3210 (version "2.3.3")
dada39aa
RW
3211 (source
3212 (origin
3213 (method url-fetch)
3214 (uri (cran-uri "irlba" version))
3215 (sha256
3216 (base32
6be62a5a 3217 "1h7mzrqdjc41814cf6c93sbyl7nxwvsf3x8apl9rhmydgdlk7qkf"))))
dada39aa 3218 (build-system r-build-system)
aeb64f3c
RW
3219 (propagated-inputs
3220 `(("r-matrix" ,r-matrix)))
e9960d8c 3221 (home-page "https://cran.r-project.org/web/packages/irlba")
dada39aa
RW
3222 (synopsis "Methods for eigendecomposition of large matrices")
3223 (description
3224 "This package provides fast and memory efficient methods for truncated
3225singular and eigenvalue decompositions, as well as for principal component
3226analysis of large sparse or dense matrices.")
3227 (license (list license:gpl2+ license:gpl3+))))
3228
c7f04517
BW
3229(define-public r-glmnet
3230 (package
3231 (name "r-glmnet")
155d48f6 3232 (version "3.0-2")
c7f04517
BW
3233 (source
3234 (origin
3235 (method url-fetch)
3236 (uri (cran-uri "glmnet" version))
3237 (sha256
155d48f6 3238 (base32 "0b3nnfzp8dxcdkvxr0yvy6d58yk3xg4kz1wqa42bxqppbakmd2gl"))))
c7f04517 3239 (build-system r-build-system)
f046f43b 3240 (native-inputs
aeb64f3c 3241 `(("gfortran" ,gfortran)))
c7f04517 3242 (propagated-inputs
aeb64f3c 3243 `(("r-foreach" ,r-foreach)
f046f43b
RW
3244 ("r-matrix" ,r-matrix)
3245 ("r-shape" ,r-shape)))
f6b4425a 3246 (home-page "https://www.jstatsoft.org/article/view/v033i01")
c7f04517
BW
3247 (synopsis "Lasso and elastic-net regularized generalized linear models")
3248 (description
3249 "The glmnet package provides efficient procedures for fitting the entire
3250lasso or elastic-net regularization path for linear and Poisson regression, as
3251well as logistic, multinomial, Cox, multiple-response Gaussian and grouped
3252multinomial models. The algorithm uses cyclical coordinate descent in a
3253path-wise fashion.")
3254 (license license:gpl2+)))
3255
3a6607f0
RW
3256(define-public r-pkgmaker
3257 (package
3258 (name "r-pkgmaker")
670cbe2c 3259 (version "0.31.1")
3a6607f0
RW
3260 (source
3261 (origin
3262 (method url-fetch)
3263 (uri (cran-uri "pkgmaker" version))
3264 (sha256
3265 (base32
670cbe2c 3266 "0r0ga20dy25v9y5gjbds4y6kaa5a7qknh503qdkzllcpzbibh0hp"))))
3a6607f0
RW
3267 (build-system r-build-system)
3268 (propagated-inputs
0d3d1934
RW
3269 `(("r-assertthat" ,r-assertthat)
3270 ("r-bibtex" ,r-bibtex)
3a605165 3271 ("r-codetools" ,r-codetools)
3a6607f0 3272 ("r-digest" ,r-digest)
3a605165 3273 ("r-magrittr" ,r-magrittr)
3a6607f0 3274 ("r-registry" ,r-registry)
3a605165 3275 ("r-stringi" ,r-stringi)
3a6607f0 3276 ("r-stringr" ,r-stringr)
3a605165 3277 ("r-withr" ,r-withr)
3a6607f0
RW
3278 ("r-xtable" ,r-xtable)))
3279 (home-page "https://renozao.github.io/pkgmaker")
3280 (synopsis "Package development utilities")
3281 (description
3282 "This package provides some low-level utilities to use for R package
3283development. It currently provides managers for multiple package specific
3284options and registries, vignette, unit test and bibtex related utilities.")
3285 (license license:gpl2+)))
3286
2d0f7d80
RW
3287 (define-public r-registry
3288 (package
3289 (name "r-registry")
b22a2040 3290 (version "0.5-1")
2d0f7d80
RW
3291 (source
3292 (origin
3293 (method url-fetch)
3294 (uri (cran-uri "registry" version))
3295 (sha256
3296 (base32
b22a2040 3297 "1k3j6dx350awamr0dwwgkhfs46vsnj4nf08iw5byq0x7n3nkdsnz"))))
2d0f7d80 3298 (build-system r-build-system)
e9960d8c 3299 (home-page "https://cran.r-project.org/web/packages/registry")
2d0f7d80
RW
3300 (synopsis "Infrastructure for R package registries")
3301 (description
3302 "This package provides a generic infrastructure for creating and using R
3303package registries.")
3304 (license license:gpl2+)))
3305
790034bd
RW
3306(define-public r-rngtools
3307 (package
3308 (name "r-rngtools")
68146b96 3309 (version "1.5")
790034bd
RW
3310 (source
3311 (origin
3312 (method url-fetch)
3313 (uri (cran-uri "rngtools" version))
3314 (sha256
3315 (base32
68146b96 3316 "0xgmg3qb6insc157as47mcm9sdjdpy9jirh7w06bxb7pfcxqfx42"))))
790034bd
RW
3317 (build-system r-build-system)
3318 (propagated-inputs
68146b96 3319 `(("r-digest" ,r-digest)))
790034bd
RW
3320 (home-page "https://renozao.github.io/rngtools")
3321 (synopsis "Utility functions for working with random number generators")
3322 (description
3323 "This package contains a set of functions for working with Random Number
3324Generators (RNGs). In particular, it defines a generic S4 framework for
3325getting/setting the current RNG, or RNG data that are embedded into objects
3326for reproducibility. Notably, convenient default methods greatly facilitate
3327the way current RNG settings can be changed.")
3328 (license license:gpl3+)))
3329
c72c1249
RW
3330(define-public r-rtsne
3331 (package
3332 (name "r-rtsne")
23dd886a 3333 (version "0.15")
c72c1249
RW
3334 (source
3335 (origin
3336 (method url-fetch)
3337 (uri (cran-uri "Rtsne" version))
3338 (sha256
3339 (base32
23dd886a 3340 "0v17vxizrs1msay24xl2bckfajr2c82wpqj07lyssbrq197nwdsn"))))
c72c1249
RW
3341 (properties `((upstream-name . "Rtsne")))
3342 (build-system r-build-system)
3343 (propagated-inputs
3344 `(("r-rcpp" ,r-rcpp)))
3345 (home-page "https://github.com/jkrijthe/Rtsne")
3346 (synopsis "T-distributed stochastic neighbor embedding")
3347 (description
3348 "This package provides an R wrapper around the fast T-distributed
3349Stochastic Neighbor Embedding using a Barnes-Hut implementation.")
3350 ;; The declared license for this package is BSD-3, but it also includes
3351 ;; code licensed under BSD-4.
3352 (license (list license:bsd-3 license:bsd-4))))
3353
c533589c
RW
3354(define-public r-e1071
3355 (package
3356 (name "r-e1071")
18a5575e 3357 (version "1.7-3")
c533589c
RW
3358 (source
3359 (origin
3360 (method url-fetch)
3361 (uri (cran-uri "e1071" version))
3362 (sha256
3363 (base32
18a5575e 3364 "0pf2pjb590z0jikgv1037xcp7dq06mg3dzmyffjw6gk7dd9blbdv"))))
c533589c 3365 (build-system r-build-system)
aeb64f3c
RW
3366 (propagated-inputs
3367 `(("r-class" ,r-class)))
e9960d8c 3368 (home-page "https://cran.r-project.org/web/packages/e1071")
c533589c
RW
3369 (synopsis "Miscellaneous functions for probability theory")
3370 (description
3371 "This package provides functions for latent class analysis, short time
3372Fourier transform, fuzzy clustering, support vector machines, shortest path
3373computation, bagged clustering, naive Bayes classifier, and more.")
3374 (license license:gpl2+)))
3375
c6105d69
RJ
3376(define-public r-bigmemory-sri
3377 (package
3378 (name "r-bigmemory-sri")
3379 (version "0.1.3")
3380 (source
3381 (origin
3382 (method url-fetch)
3383 (uri (cran-uri "bigmemory.sri" version))
3384 (sha256
3385 (base32 "0mg14ilwdkd64q2ri9jdwnk7mp55dqim7xfifrs65sdsv1934h2m"))))
3386 (properties
3387 `((upstream-name . "bigmemory.sri")))
3388 (build-system r-build-system)
e9960d8c 3389 (home-page "https://cran.r-project.org/web/packages/bigmemory.sri")
c6105d69
RJ
3390 (synopsis "Shared resource interface for the bigmemory package")
3391 (description "This package provides a shared resource interface for the
3392bigmemory and synchronicity packages.")
3393 ;; Users can choose either LGPLv3 or ASL2.0.
3394 (license (list license:lgpl3 license:asl2.0))))
4a838652
RJ
3395
3396(define-public r-synchronicity
3397 (package
3398 (name "r-synchronicity")
6d83cd1f 3399 (version "1.3.5")
4a838652
RJ
3400 (source
3401 (origin
3402 (method url-fetch)
3403 (uri (cran-uri "synchronicity" version))
3404 (sha256
3405 (base32
6d83cd1f 3406 "1kgsk64aifjm3mfj102y3va7x1abypq2zi0cqbnjhl8fqyzp69hx"))))
4a838652
RJ
3407 (build-system r-build-system)
3408 (propagated-inputs
3409 `(("r-bh" ,r-bh)
3410 ("r-bigmemory-sri" ,r-bigmemory-sri)
a566b3f9
RW
3411 ("r-rcpp" ,r-rcpp)
3412 ("r-uuid" ,r-uuid)))
4a838652
RJ
3413 (home-page "http://www.bigmemory.org")
3414 (synopsis "Boost mutex functionality in R")
3415 (description "This package provides support for synchronization
3416via mutexes and may eventually support interprocess communication and
3417message passing.")
3418 ;; Users can choose either LGPLv3 or ASL2.0.
3419 (license (list license:lgpl3 license:asl2.0))))
59523c4c
RJ
3420
3421(define-public r-bigmemory
3422 (package
3423 (name "r-bigmemory")
96211e3f 3424 (version "4.5.36")
59523c4c
RJ
3425 (source
3426 (origin
3427 (method url-fetch)
3428 (uri (cran-uri "bigmemory" version))
3429 (sha256
3430 (base32
96211e3f 3431 "03pg8mxdc7q0249visjmc8bc3xmwxsfg3i2n6higicj4cfz7zihq"))))
59523c4c
RJ
3432 (build-system r-build-system)
3433 (propagated-inputs
3434 `(("r-bh" ,r-bh)
3435 ("r-rcpp" ,r-rcpp)
f1b90a2b 3436 ("r-bigmemory-sri" ,r-bigmemory-sri)))
59523c4c
RJ
3437 (home-page "http://www.bigmemory.org")
3438 (synopsis "Manage large matrices with shared memory or memory-mapped files")
3439 (description "This package provides methods to create, store, access, and
3440manipulate large matrices. Matrices are allocated to shared memory and may use
3441memory-mapped files.")
3442 ;; Users can choose either LGPLv3 or ASL2.0.
3443 (license (list license:lgpl3 license:asl2.0))))
c6105d69 3444
8bfe007c
RW
3445(define-public r-r-methodss3
3446 (package
3447 (name "r-r-methodss3")
460ff75a 3448 (version "1.8.0")
8bfe007c
RW
3449 (source (origin
3450 (method url-fetch)
3451 (uri (cran-uri "R.methodsS3" version))
3452 (sha256
3453 (base32
460ff75a 3454 "19c5870v7b59fs6xk58bh3rfkmhfralmgsax86zzpdmz47pga1g0"))))
8bfe007c
RW
3455 (properties `((upstream-name . "R.methodsS3")))
3456 (build-system r-build-system)
e9960d8c 3457 (home-page "https://cran.r-project.org/web/packages/R.methodsS3")
8bfe007c
RW
3458 (synopsis "S3 methods simplified")
3459 (description
3460 "This package provides methods that simplify the setup of S3 generic
3461functions and S3 methods. Major effort has been made in making definition of
3462methods as simple as possible with a minimum of maintenance for package
3463developers. For example, generic functions are created automatically, if
3464missing, and naming conflict are automatically solved, if possible. The
3465method @code{setMethodS3()} is a good start for those who in the future may
3466want to migrate to S4.")
3467 (license license:lgpl2.1+)))
3468
c8c75a8d
RW
3469(define-public r-r-oo
3470 (package
3471 (name "r-r-oo")
d458b2a9 3472 (version "1.23.0")
c8c75a8d
RW
3473 (source (origin
3474 (method url-fetch)
3475 (uri (cran-uri "R.oo" version))
3476 (sha256
3477 (base32
d458b2a9 3478 "189fb7mmyzwg6nn8rza8iip7fbyws7i2vkmzy672x9mhvgilq4pm"))))
c8c75a8d
RW
3479 (properties `((upstream-name . "R.oo")))
3480 (build-system r-build-system)
3481 (propagated-inputs
3482 `(("r-r-methodss3" ,r-r-methodss3)))
3483 (home-page "https://github.com/HenrikBengtsson/R.oo")
3484 (synopsis "R object-oriented programming with or without references")
3485 (description
3486 "This package provides methods and classes for object-oriented
3487programming in R with or without references. Large effort has been made on
3488making definition of methods as simple as possible with a minimum of
3489maintenance for package developers.")
3490 (license license:lgpl2.1+)))
3491
9c94b53b
RW
3492(define-public r-r-utils
3493 (package
3494 (name "r-r-utils")
2d057c63 3495 (version "2.9.2")
9c94b53b
RW
3496 (source (origin
3497 (method url-fetch)
3498 (uri (cran-uri "R.utils" version))
3499 (sha256
3500 (base32
2d057c63 3501 "1krj1ny7y43lpm2q8c7swxfdc3ngy2j8knzv71f8bfsgh673nsxc"))))
9c94b53b
RW
3502 (properties `((upstream-name . "R.utils")))
3503 (build-system r-build-system)
3504 (propagated-inputs
3505 `(("r-r-methodss3" ,r-r-methodss3)
3506 ("r-r-oo" ,r-r-oo)))
3507 (home-page "https://github.com/HenrikBengtsson/R.utils")
3508 (synopsis "Various programming utilities")
3509 (description
3510 "This package provides utility functions useful when programming and
3511developing R packages.")
3512 (license license:lgpl2.1+)))
3513
a63efbb4
RW
3514(define-public r-r-cache
3515 (package
3516 (name "r-r-cache")
494acc7e 3517 (version "0.14.0")
a63efbb4
RW
3518 (source (origin
3519 (method url-fetch)
3520 (uri (cran-uri "R.cache" version))
3521 (sha256
3522 (base32
494acc7e 3523 "1n8n5ihkryrbxv630dwhz4r048nyv676qd3i9f5z5fa04hvlxbqq"))))
a63efbb4
RW
3524 (properties `((upstream-name . "R.cache")))
3525 (build-system r-build-system)
3526 (propagated-inputs
3527 `(("r-digest" ,r-digest)
3528 ("r-r-methodss3" ,r-r-methodss3)
3529 ("r-r-oo" ,r-r-oo)
3530 ("r-r-utils" ,r-r-utils)))
3531 (home-page "https://github.com/HenrikBengtsson/R.cache")
3532 (synopsis "Light-weight caching of objects and results")
3533 (description
3534 "This package provides methods for caching or memoization of objects and
3535results. With this package, any R object can be cached in a key-value storage
3536where the key can be an arbitrary set of R objects. The cache memory is
3537persistent (on the file system).")
3538 (license license:lgpl2.1+)))
3539
3703ffb4
RW
3540(define-public r-r-rsp
3541 (package
3542 (name "r-r-rsp")
30083789 3543 (version "0.43.2")
3703ffb4
RW
3544 (source (origin
3545 (method url-fetch)
3546 (uri (cran-uri "R.rsp" version))
3547 (sha256
3548 (base32
30083789 3549 "128zqyvbq9hm9gy86jzhj609lkfw57vr24mdxgh46ncmx66ag4gj"))))
3703ffb4
RW
3550 (properties `((upstream-name . "R.rsp")))
3551 (build-system r-build-system)
3552 (propagated-inputs
f7d7dd41
RW
3553 `(("r-digest" ,r-digest)
3554 ("r-r-cache" ,r-r-cache)
3703ffb4
RW
3555 ("r-r-methodss3" ,r-r-methodss3)
3556 ("r-r-oo" ,r-r-oo)
3557 ("r-r-utils" ,r-r-utils)))
3558 (home-page "https://github.com/HenrikBengtsson/R.rsp")
3559 (synopsis "Dynamic generation of scientific reports")
3560 (description
3561 "The RSP markup language provides a powerful markup for controlling the
3562content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr
3563documents (and more), e.g. @code{Today's date is <%=Sys.Date()%>}. Contrary
3564to many other literate programming languages, with RSP it is straightforward
3565to loop over mixtures of code and text sections, e.g. in month-by-month
3566summaries. RSP has also several preprocessing directives for incorporating
3567static and dynamic contents of external files (local or online) among other
3568things. RSP is ideal for self-contained scientific reports and R package
3569vignettes.")
3570 (license license:lgpl2.1+)))
3571
b5f13fdb
RJ
3572(define-public r-mvtnorm
3573 (package
3574 (name "r-mvtnorm")
8bcbb67c 3575 (version "1.1-0")
b5f13fdb
RJ
3576 (source (origin
3577 (method url-fetch)
3578 (uri (cran-uri "mvtnorm" version))
3579 (sha256
3580 (base32
8bcbb67c 3581 "0pfb6qk4yb6xaya8i1wvx6dnc3jj4s2g94sq2kzv4p8zn4pf24l1"))))
b5f13fdb 3582 (build-system r-build-system)
e05b5da8 3583 (native-inputs
b5f13fdb
RJ
3584 `(("gfortran" ,gfortran)))
3585 (home-page "http://mvtnorm.R-forge.R-project.org")
3586 (synopsis "Package for multivariate normal and t-distributions")
3587 (description "This package can compute multivariate normal and
3588t-probabilities, quantiles, random deviates and densities.")
3589 (license license:gpl2)))
3590
e05c37da
RW
3591(define-public r-matrixstats
3592 (package
3593 (name "r-matrixstats")
f3a64b99 3594 (version "0.56.0")
e05c37da
RW
3595 (source (origin
3596 (method url-fetch)
3597 (uri (cran-uri "matrixStats" version))
3598 (sha256
3599 (base32
f3a64b99 3600 "09qgfv9x32x6ncgf19iy7yjp26fwy6p5wm8spc2xzfc0qhylmqrr"))))
e05c37da
RW
3601 (properties `((upstream-name . "matrixStats")))
3602 (build-system r-build-system)
3603 (native-inputs
3604 `(("r-r-rsp" ,r-r-rsp))) ;used to build vignettes
3605 (home-page "https://github.com/HenrikBengtsson/matrixStats")
3606 (synopsis "Methods applying to vectors and matrix rows and columns")
3607 (description
3608 "This package provides methods operating on rows and columns of matrices,
3609e.g. @code{rowMedians()}, @code{rowRanks()}, and @code{rowSds()}. There are
3610also some vector-based methods, e.g. @code{binMeans()}, @code{madDiff()} and
3611@code{weightedMedians()}. All methods have been optimized for speed and
3612memory usage.")
3613 (license license:artistic2.0)))
3614
a28d646b
RW
3615(define-public r-viridis
3616 (package
3617 (name "r-viridis")
0cb4fb81 3618 (version "0.5.1")
a28d646b
RW
3619 (source (origin
3620 (method url-fetch)
3621 (uri (cran-uri "viridis" version))
3622 (sha256
3623 (base32
0cb4fb81 3624 "060rf1jn29dq53y3nhb0hykvcap6rqsk04rq544ypiiqb18ngwnx"))))
a28d646b
RW
3625 (build-system r-build-system)
3626 (propagated-inputs
3627 `(("r-ggplot2" ,r-ggplot2)
7a8efc81
RW
3628 ("r-gridextra" ,r-gridextra)
3629 ("r-viridislite" ,r-viridislite)))
56bf00b9
RW
3630 (native-inputs
3631 `(("r-knitr" ,r-knitr))) ; for vignettes
a28d646b
RW
3632 (home-page "https://github.com/sjmgarnier/viridis")
3633 (synopsis "Matplotlib default color map")
3634 (description
3635 "This package is a port of the new @url{matplotlib,
3636http://matplotlib.org/} color maps (@code{viridis}--the default--,
3637@code{magma}, @code{plasma}, and @code{inferno}) to R. These color maps are
3638designed in such a way that they will analytically be perfectly
3639perceptually-uniform, both in regular form and also when converted to
3640black-and-white. They are also designed to be perceived by readers with the
3641most common form of color blindness.")
3642 (license license:x11)))
3643
c6ab73e8
RW
3644(define-public r-viridislite
3645 (package
3646 (name "r-viridislite")
be8db0a0 3647 (version "0.3.0")
c6ab73e8
RW
3648 (source
3649 (origin
3650 (method url-fetch)
3651 (uri (cran-uri "viridisLite" version))
3652 (sha256
3653 (base32
be8db0a0 3654 "1by2l05f0yabwvv64lhnv7bbhx0w683s3wr9j2xda920ghpa23kq"))))
c6ab73e8
RW
3655 (properties `((upstream-name . "viridisLite")))
3656 (build-system r-build-system)
3657 (home-page "https://github.com/sjmgarnier/viridisLite")
3658 (synopsis "Default color maps from matplotlib")
3659 (description
36a4366d
EF
3660 "This package is a port of the new @code{matplotlib} color maps
3661(@code{viridis}, @code{magma}, @code{plasma} and @code{inferno}) to R.
3662matplotlib is a popular plotting library for Python. These color maps are
3663designed in such a way that they will analytically be perfectly
3664perceptually-uniform, both in regular form and also when converted to
3665black-and-white. They are also designed to be perceived by readers with the
3666most common form of color blindness. This is the @code{lite} version of the
3667more complete @code{viridis} package.")
c6ab73e8
RW
3668 (license license:expat)))
3669
c4a4ef39
RW
3670(define-public r-tidyselect
3671 (package
3672 (name "r-tidyselect")
6b5f5705 3673 (version "1.1.0")
c4a4ef39
RW
3674 (source
3675 (origin
3676 (method url-fetch)
3677 (uri (cran-uri "tidyselect" version))
3678 (sha256
3679 (base32
6b5f5705 3680 "14rqx4dq574hilmdwrr34wyjg8rlw4rvndpsqd9plgxm3wwfsdg6"))))
c4a4ef39
RW
3681 (build-system r-build-system)
3682 (propagated-inputs
d6d08891
RW
3683 `(("r-ellipsis" ,r-ellipsis)
3684 ("r-glue" ,r-glue)
c4a4ef39 3685 ("r-purrr" ,r-purrr)
d6d08891
RW
3686 ("r-rlang" ,r-rlang)
3687 ("r-vctrs" ,r-vctrs)))
6b5f5705
RW
3688 (native-inputs
3689 `(("r-knitr" ,r-knitr)))
e9960d8c 3690 (home-page "https://cran.r-project.org/web/packages/tidyselect")
c4a4ef39
RW
3691 (synopsis "Select from a set of strings")
3692 (description
3693 "This package provides a backend for the selecting functions of the
3694tidyverse. It makes it easy to implement select-like functions in your own
3695packages in a way that is consistent with other tidyverse interfaces for
3696selection.")
3697 (license license:gpl3)))
3698
94b7e9b7
RW
3699(define-public r-tidyr
3700 (package
3701 (name "r-tidyr")
19d0bd5e 3702 (version "1.0.3")
94b7e9b7
RW
3703 (source
3704 (origin
3705 (method url-fetch)
3706 (uri (cran-uri "tidyr" version))
3707 (sha256
3708 (base32
19d0bd5e 3709 "18ypk63nifp5jj5d9880m49zdv7n4a18gac59wj5z5xk6qr7vfal"))))
94b7e9b7
RW
3710 (build-system r-build-system)
3711 (propagated-inputs
3712 `(("r-dplyr" ,r-dplyr)
981dcc3b 3713 ("r-ellipsis" ,r-ellipsis)
94b7e9b7 3714 ("r-magrittr" ,r-magrittr)
89b620e7 3715 ("r-glue" ,r-glue)
981dcc3b 3716 ("r-lifecycle" ,r-lifecycle)
89b620e7
RW
3717 ("r-purrr" ,r-purrr)
3718 ("r-rlang" ,r-rlang)
3719 ("r-tidyselect" ,r-tidyselect)
94b7e9b7 3720 ("r-rcpp" ,r-rcpp)
d51f05f7 3721 ("r-stringi" ,r-stringi)
981dcc3b
RW
3722 ("r-tibble" ,r-tibble)
3723 ("r-vctrs" ,r-vctrs)))
19d0bd5e
RW
3724 (native-inputs
3725 `(("r-knitr" ,r-knitr)))
94b7e9b7
RW
3726 (home-page "https://github.com/hadley/tidyr")
3727 (synopsis "Tidy data with `spread()` and `gather()` functions")
3728 (description
3729 "tidyr is a reframing of the reshape2 package designed to accompany the
3730tidy data framework, and to work hand-in-hand with magrittr and dplyr to build
3731a solid pipeline for data analysis. It is designed specifically for tidying
3732data, not the general reshaping that reshape2 does, or the general aggregation
3733that reshape did. In particular, built-in methods only work for data frames,
3734and tidyr provides no margins or aggregation.")
3735 (license license:expat)))
3736
bae79538
RW
3737(define-public r-hexbin
3738 (package
3739 (name "r-hexbin")
c06d6ebd 3740 (version "1.28.1")
bae79538
RW
3741 (source
3742 (origin
3743 (method url-fetch)
e30b878e 3744 (uri (cran-uri "hexbin" version))
bae79538
RW
3745 (sha256
3746 (base32
c06d6ebd 3747 "1ry6jm3lqz3mj0s5rzbs6mpkz2hxpnvbw8c1vwc4pj7b173r5l22"))))
bae79538
RW
3748 (build-system r-build-system)
3749 (propagated-inputs
3750 `(("r-lattice" ,r-lattice)))
3751 (native-inputs
c06d6ebd
RW
3752 `(("gfortran" ,gfortran)
3753 ("r-knitr" ,r-knitr))) ; for vignettes
7bf837fd 3754 (home-page "https://github.com/edzer/hexbin")
bae79538
RW
3755 (synopsis "Hexagonal binning routines")
3756 (description
3757 "This package provides binning and plotting functions for hexagonal bins.
3758It uses and relies on grid graphics and formal (S4) classes and methods.")
3759 (license license:gpl2+)))
a3c6445b
RW
3760
3761(define-public r-purrr
3762 (package
3763 (name "r-purrr")
d29cd83b 3764 (version "0.3.4")
a3c6445b
RW
3765 (source
3766 (origin
3767 (method url-fetch)
3768 (uri (cran-uri "purrr" version))
3769 (sha256
3770 (base32
d29cd83b 3771 "1cj091rsjdj2xz16qhynyw72gh5cyhznifcfbrbygndfr4xwksr3"))))
a3c6445b
RW
3772 (build-system r-build-system)
3773 (propagated-inputs
19fdd77c 3774 `(("r-magrittr" ,r-magrittr)
2267e4d3 3775 ("r-rlang" ,r-rlang)))
d29cd83b
RW
3776 (native-inputs
3777 `(("r-knitr" ,r-knitr)))
a3c6445b
RW
3778 (home-page "https://github.com/hadley/purrr")
3779 (synopsis "Functional programming tools")
3780 (description
3781 "This package completes R's functional programming tools with missing
3782features present in other programming languages.")
3783 (license license:gpl3+)))
bae79538 3784
fbf6045e
RW
3785(define-public r-plotly
3786 (package
3787 (name "r-plotly")
28e1e573 3788 (version "4.9.2.1")
fbf6045e
RW
3789 (source (origin
3790 (method url-fetch)
3791 (uri (cran-uri "plotly" version))
3792 (sha256
3793 (base32
28e1e573 3794 "1f0x83a2s7200iqi6gpngijks06fcvcbm6701d5r5rxpb8rawppl"))))
fbf6045e
RW
3795 (build-system r-build-system)
3796 (propagated-inputs
3797 `(("r-base64enc" ,r-base64enc)
f9b37606 3798 ("r-crosstalk" ,r-crosstalk)
fbf6045e 3799 ("r-digest" ,r-digest)
f9b37606 3800 ("r-data-table" ,r-data-table)
88cf917b 3801 ("r-dplyr" ,r-dplyr)
fbf6045e 3802 ("r-ggplot2" ,r-ggplot2)
2c81794e 3803 ("r-hexbin" ,r-hexbin)
f9b37606 3804 ("r-htmltools" ,r-htmltools)
fbf6045e
RW
3805 ("r-htmlwidgets" ,r-htmlwidgets)
3806 ("r-httr" ,r-httr)
3807 ("r-jsonlite" ,r-jsonlite)
88cf917b 3808 ("r-lazyeval" ,r-lazyeval)
fbf6045e 3809 ("r-magrittr" ,r-magrittr)
88cb7aa9 3810 ("r-promises" ,r-promises)
88cf917b 3811 ("r-purrr" ,r-purrr)
f9b37606 3812 ("r-rcolorbrewer" ,r-rcolorbrewer)
88cb7aa9 3813 ("r-rlang" ,r-rlang)
2c81794e 3814 ("r-scales" ,r-scales)
88cf917b 3815 ("r-tibble" ,r-tibble)
2c81794e 3816 ("r-tidyr" ,r-tidyr)
88cf917b 3817 ("r-viridislite" ,r-viridislite)))
fbf6045e
RW
3818 (home-page "https://plot.ly/r")
3819 (synopsis "Create interactive web graphics")
3820 (description
3821 "This package enables the translation of ggplot2 graphs to an interactive
3822web-based version and/or the creation of custom web-based visualizations
3823directly from R. Once uploaded to a plotly account, plotly graphs (and the
3824data behind them) can be viewed and modified in a web browser.")
3825 (license license:x11)))
3826
0947698c
BW
3827(define-public r-biased-urn
3828 (package
3829 (name "r-biased-urn")
3830 (version "1.07")
3831 (source
3832 (origin
3833 (method url-fetch)
3834 (uri (cran-uri "BiasedUrn" version))
3835 (sha256
3836 (base32
3837 "13i2lgfnjhlbbm2yxfc2l5hswqw6x03pwba5csjmirv8kpjw4xr3"))))
3838 (properties `((upstream-name . "BiasedUrn")))
3839 (build-system r-build-system)
3840 (home-page "http://www.agner.org/random/")
3841 (synopsis "Biased urn model distributions")
3842 (description
3843 "This package provides statistical models of biased sampling in the form
3844of univariate and multivariate noncentral hypergeometric distributions,
3845including Wallenius' noncentral hypergeometric distribution and Fisher's
3846noncentral hypergeometric distribution (also called extended hypergeometric
3847distribution).")
3848 (license license:gpl3+)))
6499b70e 3849
58612fd2
RW
3850(define-public r-rematch
3851 (package
3852 (name "r-rematch")
3853 (version "1.0.1")
3854 (source
3855 (origin
3856 (method url-fetch)
3857 (uri (cran-uri "rematch" version))
3858 (sha256
3859 (base32
3860 "0y3mshvpvz9csmq8hk8jbabx4nxlv5sckvfzvm6920ndg34xw2d4"))))
3861 (build-system r-build-system)
3862 (home-page "https://github.com/MangoTheCat/rematch")
3863 (synopsis "Match regular expressions with a nicer API")
3864 (description
3865 "This package provides a small wrapper on @code{regexpr} to extract the
3866matches and captured groups from the match of a regular expression to a
3867character vector.")
3868 (license license:expat)))
3869
d427e03e
RW
3870(define-public r-cellranger
3871 (package
3872 (name "r-cellranger")
3873 (version "1.1.0")
3874 (source
3875 (origin
3876 (method url-fetch)
3877 (uri (cran-uri "cellranger" version))
3878 (sha256
3879 (base32
3880 "16fgi3annn34c3cxi0pxf62mmmmxi21hp0zzlv7bkfsjqy4g4f2x"))))
3881 (build-system r-build-system)
3882 (propagated-inputs
3883 `(("r-rematch" ,r-rematch)
3884 ("r-tibble" ,r-tibble)))
3885 (home-page "https://github.com/rsheets/cellranger")
3886 (synopsis "Translate spreadsheet cell ranges to rows and columns")
3887 (description
3888 "This package provides helper functions to work with spreadsheets and the
3889@code{A1:D10} style of cell range specification.")
3890 (license license:expat)))
3891
9f5435d9
RW
3892(define-public r-googlesheets
3893 (package
3894 (name "r-googlesheets")
5dbe7aa9 3895 (version "0.3.0")
9f5435d9
RW
3896 (source
3897 (origin
3898 (method url-fetch)
3899 (uri (cran-uri "googlesheets" version))
3900 (sha256
3901 (base32
5dbe7aa9 3902 "11q07nxys72wkxx9mawmjyf20gvwvrb7h3gpa73h6lgh2vgrwnv8"))))
9f5435d9
RW
3903 (build-system r-build-system)
3904 (propagated-inputs
3905 `(("r-cellranger" ,r-cellranger)
3906 ("r-dplyr" ,r-dplyr)
3907 ("r-httr" ,r-httr)
3908 ("r-jsonlite" ,r-jsonlite)
3909 ("r-purrr" ,r-purrr)
3910 ("r-readr" ,r-readr)
3911 ("r-stringr" ,r-stringr)
5dbe7aa9 3912 ("r-tibble" ,r-tibble)
9f5435d9
RW
3913 ("r-tidyr" ,r-tidyr)
3914 ("r-xml2" ,r-xml2)))
3915 (home-page "https://github.com/jennybc/googlesheets")
3916 (synopsis "Manage Google spreadsheets from R")
3917 (description "This package provides tools to interact with Google Sheets
3918from within R.")
3919 (license license:expat)))
3920
e7d16ad1
RW
3921(define-public r-spams
3922 (package
3923 (name "r-spams")
fcf40039 3924 (version "2.6-2017-03-22")
e7d16ad1
RW
3925 (source
3926 (origin
3927 (method url-fetch)
ef8b9a77
TGR
3928 ;; Use the ‘Latest version’ link for a stable URI across releases.
3929 (uri (string-append "https://gforge.inria.fr/frs/download.php/"
3930 "latestfile/4531/spams-R-v" version ".tar.gz"))
e7d16ad1
RW
3931 (sha256
3932 (base32
fcf40039 3933 "13z2293jixf1r9g8dyy856xrhvpjr2ln2n9smn6644126r9hmhkx"))))
e7d16ad1
RW
3934 (build-system r-build-system)
3935 (arguments
3936 `(#:phases
3937 (modify-phases %standard-phases
3938 (add-after 'unpack 'chdir
3939 (lambda _ (chdir "spams") #t))
ef8b9a77 3940 ;; Don't tune for the building machine.
fcf40039 3941 (add-after 'chdir 'no-mtune
e7d16ad1 3942 (lambda _
fcf40039
EF
3943 (substitute* "src/Makevars"
3944 (("-mtune=native") ""))
e7d16ad1 3945 #t)))))
aeb64f3c
RW
3946 (propagated-inputs
3947 `(("r-lattice" ,r-lattice)
3948 ("r-matrix" ,r-matrix)))
369e4e96 3949 (home-page "https://spams-devel.gforge.inria.fr")
e7d16ad1
RW
3950 (synopsis "Toolbox for solving sparse estimation problems")
3951 (description "SPAMS (SPArse Modeling Software) is an optimization toolbox
3952for solving various sparse estimation problems. It includes tools for the
3953following problems:
3954
3955@enumerate
3956@item Dictionary learning and matrix factorization (NMF, sparse @dfn{principle
3957 component analysis} (PCA), ...)
3958@item Solving sparse decomposition problems with LARS, coordinate descent,
3959 OMP, SOMP, proximal methods
3960@item Solving structured sparse decomposition problems (l1/l2, l1/linf, sparse
3961 group lasso, tree-structured regularization, structured sparsity with
3962 overlapping groups,...).
3963@end enumerate\n")
3964 (license license:gpl3+)))
3965
0811f0f9
RW
3966(define-public r-base64
3967 (package
3968 (name "r-base64")
3969 (version "2.0")
3970 (source
3971 (origin
3972 (method url-fetch)
3973 (uri (cran-uri "base64" version))
3974 (sha256
3975 (base32
3976 "1labh0ycdm2xcjssj8bhnyjvbk44mcdsi0rb2p8rfqa428mrq9cf"))))
3977 (build-system r-build-system)
3978 (propagated-inputs
3979 `(("r-openssl" ,r-openssl)))
e9960d8c 3980 (home-page "https://cran.r-project.org/web/packages/base64")
0811f0f9
RW
3981 (synopsis "Base64 encoder and decoder")
3982 (description
3983 "This package is a compatibility wrapper to replace the orphaned package
3984by Romain Francois. New applications should use the openssl or base64enc
3985package instead.")
3986 (license license:expat)))
3987
2d21d44d
RW
3988(define-public r-hmisc
3989 (package
3990 (name "r-hmisc")
7e349066 3991 (version "4.4-0")
2d21d44d
RW
3992 (source
3993 (origin
3994 (method url-fetch)
3995 (uri (cran-uri "Hmisc" version))
3996 (sha256
7e349066 3997 (base32 "1ivfamwghd2z408fkhs7jy5zl3q0z1a2la16yi8js872br6cyvpi"))))
2d21d44d
RW
3998 (properties `((upstream-name . "Hmisc")))
3999 (build-system r-build-system)
4000 (native-inputs
4001 `(("gfortran" ,gfortran)))
4002 (propagated-inputs
4003 `(("r-acepack" ,r-acepack)
807db78f 4004 ("r-base64enc" ,r-base64enc)
aeb64f3c 4005 ("r-cluster" ,r-cluster)
2d21d44d 4006 ("r-data-table" ,r-data-table)
aeb64f3c 4007 ("r-foreign" ,r-foreign)
2d21d44d
RW
4008 ("r-formula" ,r-formula)
4009 ("r-ggplot2" ,r-ggplot2)
4010 ("r-gridextra" ,r-gridextra)
4011 ("r-gtable" ,r-gtable)
aeb64f3c 4012 ("r-lattice" ,r-lattice)
2d21d44d 4013 ("r-latticeextra" ,r-latticeextra)
e7165916
RW
4014 ("r-htmltable" ,r-htmltable)
4015 ("r-htmltools" ,r-htmltools)
aeb64f3c
RW
4016 ("r-nnet" ,r-nnet)
4017 ("r-rpart" ,r-rpart)
4018 ("r-survival" ,r-survival)
ab607061 4019 ("r-viridis" ,r-viridis)))
2d21d44d
RW
4020 (home-page "http://biostat.mc.vanderbilt.edu/Hmisc")
4021 (synopsis "Miscellaneous data analysis and graphics functions")
4022 (description
4023 "This package contains many functions useful for data analysis,
4024high-level graphics, utility operations, functions for computing sample size
4025and power, importing and annotating datasets, imputing missing values,
4026advanced table making, variable clustering, character string manipulation,
4027conversion of R objects to LaTeX code, and recoding variables.")
4028 (license license:gpl2+)))
4029
aa3b3910
RW
4030(define-public r-runit
4031 (package
4032 (name "r-runit")
366dd8d7 4033 (version "0.4.32")
aa3b3910
RW
4034 (source
4035 (origin
4036 (method url-fetch)
4037 (uri (cran-uri "RUnit" version))
4038 (sha256
4039 (base32
366dd8d7 4040 "1wc1gwb7yw7phf8b0gkig6c23klya3ax11c6i4s0f049k42r78r3"))))
aa3b3910
RW
4041 (properties `((upstream-name . "RUnit")))
4042 (build-system r-build-system)
e9960d8c 4043 (home-page "https://cran.r-project.org/web/packages/RUnit")
aa3b3910
RW
4044 (synopsis "R unit test framework")
4045 (description
4046 "This package provides R functions implementing a standard unit testing
4047framework, with additional code inspection and report generation tools.")
4048 (license license:gpl2+)))
4049
c9a66714
RW
4050(define-public r-dynamictreecut
4051 (package
4052 (name "r-dynamictreecut")
4053 (version "1.63-1")
4054 (source
4055 (origin
4056 (method url-fetch)
4057 (uri (cran-uri "dynamicTreeCut" version))
4058 (sha256
4059 (base32
4060 "1fadbql7g5r2vvlkr89nlrjxwp4yx4xrdqmv077qvmnx9vv0f4w3"))))
4061 (properties `((upstream-name . "dynamicTreeCut")))
4062 (build-system r-build-system)
4063 (home-page
4064 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/BranchCutting/")
4065 (synopsis "Detect clusters in hierarchical clustering dendrograms")
4066 (description
4067 "This package contains methods for the detection of clusters in
4068hierarchical clustering dendrograms.")
4069 (license license:gpl2+)))
4070
c4708783
RW
4071(define-public r-preprocesscore
4072 (package
4073 (name "r-preprocesscore")
9d1099eb 4074 (version "1.48.0")
c4708783
RW
4075 (source
4076 (origin
4077 (method url-fetch)
4078 (uri (bioconductor-uri "preprocessCore" version))
4079 (sha256
4080 (base32
9d1099eb 4081 "0zrb9hx60vppkg0priczdb301nhq5f0dj8lkc8rcc4xrqqr915qm"))))
c4708783
RW
4082 (properties
4083 `((upstream-name . "preprocessCore")))
4084 (build-system r-build-system)
4085 (home-page "https://github.com/bmbolstad/preprocessCore")
4086 (synopsis "Collection of pre-processing functions")
4087 (description
4088 "This package provides a library of core pre-processing and normalization
4089routines.")
4090 (license license:lgpl2.0+)))
4091
1bd46f55
RW
4092(define-public r-fastcluster
4093 (package
4094 (name "r-fastcluster")
d2a48984 4095 (version "1.1.25")
1bd46f55
RW
4096 (source
4097 (origin
4098 (method url-fetch)
4099 (uri (cran-uri "fastcluster" version))
4100 (sha256
4101 (base32
d2a48984 4102 "01a2xnhhvv1swd4g8p4lzyn7ww7kg49jlnzc7kfz60jqjzpisrpk"))))
1bd46f55
RW
4103 (build-system r-build-system)
4104 (home-page "http://danifold.net/fastcluster.html")
4105 (synopsis "Fast hierarchical clustering routines")
4106 (description
4107 "This package implements fast hierarchical, agglomerative clustering
4108routines. Part of the functionality is designed as drop-in replacement for
4109existing routines: @code{linkage()} in the SciPy package
4110@code{scipy.cluster.hierarchy}, @code{hclust()} in R's @code{stats} package,
4111and the @code{flashClust} package. It provides the same functionality with
4112the benefit of a much faster implementation. Moreover, there are
4113memory-saving routines for clustering of vector data, which go beyond what the
4114existing packages provide.")
4115 (license license:bsd-2)))
4116
6335bf1c
RW
4117(define-public r-sfsmisc
4118 (package
4119 (name "r-sfsmisc")
c95769be 4120 (version "1.1-7")
6335bf1c
RW
4121 (source
4122 (origin
4123 (method url-fetch)
4124 (uri (cran-uri "sfsmisc" version))
4125 (sha256
4126 (base32
c95769be 4127 "12g6m8sf17q3qmm133nm4fa296w5n5d9ly3fvb2nvc0w4llkif3l"))))
6335bf1c 4128 (build-system r-build-system)
e9960d8c 4129 (home-page "https://cran.r-project.org/web/packages/sfsmisc")
6335bf1c
RW
4130 (synopsis "Utilities from \"Seminar fuer Statistik\" ETH Zurich")
4131 (description
4132 "This package provides useful utilities from Seminar fuer Statistik ETH
4133Zurich, including many that are related to graphics.")
4134 (license license:gpl2+)))
4135
1571f90e
RW
4136(define-public r-gtools
4137 (package
4138 (name "r-gtools")
13472a67 4139 (version "3.8.2")
1571f90e
RW
4140 (source
4141 (origin
4142 (method url-fetch)
4143 (uri (cran-uri "gtools" version))
4144 (sha256
4145 (base32
13472a67 4146 "1pnwy412wvhhvnnx8qg6s9hrgcnsfhnfcpf2560ipipk845acfsh"))))
1571f90e 4147 (build-system r-build-system)
08ddb98a
RW
4148 (arguments
4149 `(#:phases
4150 (modify-phases %standard-phases
4151 (add-after 'unpack 'make-deterministic
4152 (lambda _
4153 (substitute* "R/checkReverseDependencies.R"
4154 (("tempdir\\(\\)") "\"/tmp\""))
4155 #t)))))
e9960d8c 4156 (home-page "https://cran.r-project.org/web/packages/gtools")
1571f90e
RW
4157 (synopsis "Various R programming tools")
4158 (description
4159 "This package contains a collection of various functions to assist in R
4160programming, such as tools to assist in developing, updating, and maintaining
4161R and R packages, calculating the logit and inverse logit transformations,
4162tests for whether a value is missing, empty or contains only @code{NA} and
4163@code{NULL} values, and many more.")
4164 (license license:gpl2)))
4165
6034cd90
RW
4166(define-public r-gdata
4167 (package
4168 (name "r-gdata")
80d11850 4169 (version "2.18.0")
6034cd90
RW
4170 (source
4171 (origin
4172 (method url-fetch)
4173 (uri (cran-uri "gdata" version))
4174 (sha256
4175 (base32
80d11850 4176 "0zwdj7lscgxr8r62ii8hbdh4mb7sa9w4f5nv32zzrxdvymcpya2b"))))
6034cd90
RW
4177 (build-system r-build-system)
4178 (inputs
4179 `(("perl" ,perl)))
4180 (propagated-inputs
4181 `(("r-gtools" ,r-gtools)))
e9960d8c 4182 (home-page "https://cran.r-project.org/web/packages/gdata")
6034cd90
RW
4183 (synopsis "Various R programming tools for data manipulation")
4184 (description
4185 "This package provides various R programming tools for data manipulation,
4186including:
4187
4188@itemize
4189@item medical unit conversions
4190@item combining objects
4191@item character vector operations
4192@item factor manipulation
4193@item obtaining information about R objects
4194@item manipulating MS-Excel formatted files
4195@item generating fixed-width format files
4196@item extricating components of date and time objects
4197@item operations on columns of data frames
4198@item matrix operations
4199@item operations on vectors and data frames
4200@item value of last evaluated expression
4201@item wrapper for @code{sample} that ensures consistent behavior for
4202 both scalar and vector arguments
4203@end itemize\n")
4204 (license license:gpl2+)))
4205
0cfe0570
RW
4206(define-public r-gplots
4207 (package
4208 (name "r-gplots")
b3be560e 4209 (version "3.0.3")
0cfe0570
RW
4210 (source
4211 (origin
4212 (method url-fetch)
4213 (uri (cran-uri "gplots" version))
4214 (sha256
4215 (base32
b3be560e 4216 "0hs6mk48i9yd43rg9wfjc2nxsjjwrnpifxqvxkv8ah18kvpd6xnp"))))
0cfe0570
RW
4217 (build-system r-build-system)
4218 (propagated-inputs
4219 `(("r-catools" ,r-catools)
4220 ("r-gdata" ,r-gdata)
4221 ("r-gtools" ,r-gtools)
4222 ("r-kernsmooth" ,r-kernsmooth)))
e9960d8c 4223 (home-page "https://cran.r-project.org/web/packages/gplots")
0cfe0570
RW
4224 (synopsis "Various R programming tools for plotting data")
4225 (description
4226 "This package provides various R programming tools for plotting data,
4227including:
4228
4229@itemize
4230@item calculating and plotting locally smoothed summary function
4231@item enhanced versions of standard plots
4232@item manipulating colors
4233@item calculating and plotting two-dimensional data summaries
4234@item enhanced regression diagnostic plots
4235@item formula-enabled interface to @code{stats::lowess} function
4236@item displaying textual data in plots
a2f6f3b1 4237@item balloon plots
0cfe0570
RW
4238@item plotting \"Venn\" diagrams
4239@item displaying Open-Office style plots
4240@item plotting multiple data on same region, with separate axes
4241@item plotting means and confidence intervals
4242@item spacing points in an x-y plot so they don't overlap
4243@end itemize\n")
4244 (license license:gpl2+)))
4245
419a8a18
RW
4246(define-public r-rocr
4247 (package
4248 (name "r-rocr")
364d9e06 4249 (version "1.0-11")
419a8a18
RW
4250 (source
4251 (origin
4252 (method url-fetch)
4253 (uri (cran-uri "ROCR" version))
4254 (sha256
4255 (base32
364d9e06 4256 "0amvvrkiflmr3qygrsgrsja4gaf2v6r6h6i2bgpsm8r069vmlf2p"))))
419a8a18
RW
4257 (properties `((upstream-name . "ROCR")))
4258 (build-system r-build-system)
4259 (propagated-inputs
4260 `(("r-gplots" ,r-gplots)))
364d9e06
RW
4261 (native-inputs
4262 `(("r-knitr" ,r-knitr)))
41e7be78 4263 (home-page "https://rocr.bioinf.mpi-sb.mpg.de/")
419a8a18
RW
4264 (synopsis "Visualizing the performance of scoring classifiers")
4265 (description
4266 "ROCR is a flexible tool for creating cutoff-parameterized 2D performance
4267curves by freely combining two from over 25 performance measures (new
4268performance measures can be added using a standard interface). Curves from
4269different cross-validation or bootstrapping runs can be averaged by different
4270methods, and standard deviations, standard errors or box plots can be used to
4271visualize the variability across the runs. The parameterization can be
4272visualized by printing cutoff values at the corresponding curve positions, or
4273by coloring the curve according to cutoff. All components of a performance
4274plot can be quickly adjusted using a flexible parameter dispatching
4275mechanism.")
4276 (license license:gpl2+)))
4277
031cf6b6
RJ
4278(define-public r-zoo
4279 (package
4280 (name "r-zoo")
c26cf6f1 4281 (version "1.8-8")
031cf6b6
RJ
4282 (source (origin
4283 (method url-fetch)
4284 (uri (cran-uri "zoo" version))
4285 (sha256
4286 (base32
c26cf6f1 4287 "1rrw431jwaxd9xljp73f15rhcxvwc0xlyrmr0ghi5fj7a03c932f"))))
031cf6b6 4288 (build-system r-build-system)
aeb64f3c
RW
4289 (propagated-inputs
4290 `(("r-lattice" ,r-lattice)))
031cf6b6
RJ
4291 (home-page "http://zoo.R-Forge.R-project.org/")
4292 (synopsis "S3 infrastructure for regular and irregular time series")
4293 (description "This package contains an S3 class with methods for totally
4294ordered indexed observations. It is particularly aimed at irregular time
4295series of numeric vectors/matrices and factors.")
4296 (license license:gpl2+)))
4297
6499b70e
RW
4298(define-public r-ztable
4299 (package
4300 (name "r-ztable")
e5db6890 4301 (version "0.2.0")
6499b70e
RW
4302 (source (origin
4303 (method url-fetch)
4304 (uri (cran-uri "ztable" version))
4305 (sha256
4306 (base32
e5db6890 4307 "0g7khk5ifsdh9p31wlwh2l5mn1hzxzpv6qcn1wh34vsfjdmijjwy"))))
6499b70e 4308 (build-system r-build-system)
e5db6890
RW
4309 (propagated-inputs
4310 `(("r-flextable" ,r-flextable)
4311 ("r-magrittr" ,r-magrittr)
4312 ("r-moonbook" ,r-moonbook)
4313 ("r-officer" ,r-officer)
4314 ("r-rcolorbrewer" ,r-rcolorbrewer)
4315 ("r-scales" ,r-scales)
4316 ("r-stringr" ,r-stringr)))
e9960d8c 4317 (home-page "https://cran.r-project.org/web/packages/ztable")
6499b70e
RW
4318 (synopsis "Zebra-striped tables in LaTeX and HTML formats for R")
4319 (description
4320 "This package provides functions to make zebra-striped tables (tables
4321with alternating row colors) in LaTeX and HTML formats easily from
4322@code{data.frame}, @code{matrix}, @code{lm}, @code{aov}, @code{anova},
4323@code{glm}, @code{coxph}, @code{nls}, @code{fitdistr}, @code{mytable} and
4324@code{cbind.mytable} objects.")
4325 (license license:gpl2+)))
06958135
RJPB
4326
4327(define-public r-vipor
4328 (package
4329 (name "r-vipor")
4c7ab030 4330 (version "0.4.5")
06958135
RJPB
4331 (source (origin
4332 (method url-fetch)
4333 (uri (cran-uri "vipor" version))
4334 (sha256
4335 (base32
4c7ab030 4336 "112gc0d7f8iavgf56pnzfxb7hy75yhd0zlyjzshdcfbnqcd2a6bx"))))
06958135 4337 (build-system r-build-system)
e9960d8c 4338 (home-page "https://cran.r-project.org/web/packages/vipor")
06958135
RJPB
4339 (synopsis "Plot categorical data using noise and density estimates")
4340 (description
4341 "This package provides tools to generate a violin point plot, a
4342combination of a violin/histogram plot and a scatter plot by offsetting points
4343within a category based on their density using quasirandom noise.")
4344 (license license:gpl2+)))
6ba27985
RJPB
4345
4346(define-public r-beeswarm
4347 (package
4348 (name "r-beeswarm")
4349 (version "0.2.3")
4350 (source (origin
4351 (method url-fetch)
4352 (uri (cran-uri "beeswarm" version))
4353 (sha256
4354 (base32
4355 "0hy89bwv7jixlg91li1fywa77916am2whqp1m1fx1khd45g44581"))))
4356 (build-system r-build-system)
3ee20702 4357 (home-page "https://www.cbs.dtu.dk/~eklund/beeswarm/")
6ba27985
RJPB
4358 (synopsis "Implementation of bee swarm plots")
4359 (description
4360 "This package provides an implementation of bee swarm plots. The bee
4361swarm plot is a one-dimensional scatter plot like stripchart, but with
4362closely-packed, non-overlapping points.")
4363 (license license:artistic2.0)))
649d0c48
RJPB
4364
4365(define-public r-sourcetools
4366 (package
4367 (name "r-sourcetools")
442ce03a 4368 (version "0.1.7")
649d0c48
RJPB
4369 (source
4370 (origin
4371 (method url-fetch)
4372 (uri (cran-uri "sourcetools" version))
4373 (sha256
4374 (base32
442ce03a 4375 "1jnjir0q2dj724f1mjm6p5h77yzyx6xcqy9r2g7gmcxkxw349627"))))
649d0c48 4376 (build-system r-build-system)
e9960d8c 4377 (home-page "https://cran.r-project.org/web/packages/sourcetools")
649d0c48
RJPB
4378 (synopsis "Tools for reading, tokenizing and parsing R code")
4379 (description
4380 "The sourcetools package provides both an R and C++ interface for the
4381tokenization of R code, and helpers for interacting with the tokenized
4382representation of R code.")
4383 (license license:expat)))
29430416
RJPB
4384
4385(define-public r-ggbeeswarm
4386 (package
4387 (name "r-ggbeeswarm")
c3317cd9 4388 (version "0.6.0")
29430416
RJPB
4389 (source (origin
4390 (method url-fetch)
4391 (uri (cran-uri "ggbeeswarm" version))
4392 (sha256
4393 (base32
c3317cd9 4394 "0crk29p5vi1r3a988kms4y7r0iqwgwzsikgvh18r9wbzyr98bb5v"))))
29430416
RJPB
4395 (build-system r-build-system)
4396 (propagated-inputs
4397 `(("r-beeswarm" ,r-beeswarm)
4398 ("r-ggplot2" ,r-ggplot2)
4399 ("r-vipor" ,r-vipor)))
4400 (home-page "https://github.com/eclarke/ggbeeswarm")
4401 (synopsis "Categorical scatter (violin point) plots")
4402 (description
4403 "This package provides two methods of plotting categorical scatter plots
4404such that the arrangement of points within a category reflects the density of
4405data at that region, and avoids over-plotting.")
4406 (license license:gpl2+)))
2fd261a3 4407
ac1f1e4e
RJ
4408(define-public r-ggthemes
4409 (package
4410 (name "r-ggthemes")
89428ef7 4411 (version "4.2.0")
ac1f1e4e
RJ
4412 (source (origin
4413 (method url-fetch)
4414 (uri (cran-uri "ggthemes" version))
4415 (sha256
4416 (base32
89428ef7 4417 "0rrkzfggc1nlda1w1lbqdycx6nawxbkac1szhvkwrqlzh6agxcsv"))))
ac1f1e4e
RJ
4418 (build-system r-build-system)
4419 (propagated-inputs
314e8e76
RW
4420 `(("r-ggplot2" ,r-ggplot2)
4421 ("r-purrr" ,r-purrr)
4422 ("r-scales" ,r-scales)
4423 ("r-stringr" ,r-stringr)
4424 ("r-tibble" ,r-tibble)))
ac1f1e4e
RJ
4425 (home-page "https://cran.rstudio.com/web/packages/ggthemes")
4426 (synopsis "Extra themes, scales and geoms for @code{ggplot2}")
4427 (description "This package provides extra themes and scales for
4428@code{ggplot2} that replicate the look of plots by Edward Tufte and
4429Stephen Few in Fivethirtyeight, The Economist, Stata, Excel, and The
4430Wall Street Journal, among others. This package also provides
4431@code{geoms} for Tufte's box plot and range frame.")
4432 (license license:gpl2)))
4433
2fd261a3
RJPB
4434(define-public r-statmod
4435 (package
4436 (name "r-statmod")
9227b59d 4437 (version "1.4.34")
2fd261a3
RJPB
4438 (source (origin
4439 (method url-fetch)
4440 (uri (cran-uri "statmod" version))
4441 (sha256
4442 (base32
9227b59d 4443 "0yklg64aw5y8kfq5piafnrj1v3jv563iwzzl75g3kllrw23c508s"))))
2fd261a3 4444 (build-system r-build-system)
e9960d8c 4445 (home-page "https://cran.r-project.org/web/packages/statmod")
2fd261a3
RJPB
4446 (native-inputs
4447 `(("gfortran" ,gfortran)))
4448 (synopsis "Statistical modeling")
4449 (description
4450 "This package provides a collection of algorithms and functions to aid
4451statistical modeling. It includes growth curve comparisons, limiting dilution
4452analysis (aka ELDA), mixed linear models, heteroscedastic regression,
4453inverse-Gaussian probability calculations, Gauss quadrature and a secure
4454convergence algorithm for nonlinear models. It also includes advanced
4455generalized linear model functions that implement secure convergence,
4456dispersion modeling and Tweedie power-law families.")
4457 ;; Statmod is distributed under either license
4458 (license (list license:gpl2 license:gpl3))))
5f764dd7 4459
c6dced88
RJPB
4460(define-public r-rann
4461 (package
4462 (name "r-rann")
7213ef07 4463 (version "2.6.1")
c6dced88
RJPB
4464 (source (origin
4465 (method url-fetch)
4466 (uri (cran-uri "RANN" version))
4467 (sha256
4468 (base32
7213ef07 4469 "10kid40w9w7vkz2hpcfkdpxr4afxzms5dzvfwr0sl5xynzgw76dj"))))
c6dced88
RJPB
4470 (properties
4471 `((upstream-name . "RANN")))
4472 (build-system r-build-system)
4473 (home-page "https://github.com/jefferis/RANN")
4474 (synopsis "Fast nearest neighbour search")
4475 (description
4476 "This package finds the k nearest neighbours for every point in a given
4477dataset in O(N log N) time using Arya and Mount's ANN library. Provides
4478approximate, exact searches, fixed radius searches, bd and kb trees.")
4479 (license license:gpl3+)))
4480
5f764dd7
RW
4481(define-public r-fivethirtyeight
4482 (package
4483 (name "r-fivethirtyeight")
4484 (version "0.1.0")
4485 (source
4486 (origin
4487 (method url-fetch)
4488 (uri (string-append "https://mran.microsoft.com/src/contrib/"
4489 "fivethirtyeight_" version ".tar.gz"))
4490 (sha256
4491 (base32
4492 "0fcc8rq745nsghp27dk0lgih90y4zx8hrzcvsn6ih786yv7qxhvl"))))
4493 (build-system r-build-system)
4494 (propagated-inputs
4495 `(("r-knitr" ,r-knitr)
4496 ("r-rmarkdown" ,r-rmarkdown)
4497 ("r-dplyr" ,r-dplyr)
4498 ("r-readr" ,r-readr)
4499 ("r-ggplot2" ,r-ggplot2)
4500 ("r-magrittr" ,r-magrittr)
4501 ("r-stringr" ,r-stringr)))
4502 (home-page "https://mran.microsoft.com/package/fivethirtyeight/")
4503 (synopsis "Data and code behind the stories at FiveThirtyEight")
4504 (description "This R package provides access to the code and data sets
4505published by the statistics blog FiveThirtyEight.")
4506 (license license:expat)))
26a281ef
RW
4507
4508(define-public r-compquadform
4509 (package
4510 (name "r-compquadform")
f1a313df 4511 (version "1.4.3")
26a281ef
RW
4512 (source
4513 (origin
4514 (method url-fetch)
4515 (uri (cran-uri "CompQuadForm" version))
4516 (sha256
4517 (base32
f1a313df 4518 "1i30hrqdk64q17vsn918c3q79brchgx2wzh1gbsgbn0dh1ncabq4"))))
26a281ef
RW
4519 (properties `((upstream-name . "CompQuadForm")))
4520 (build-system r-build-system)
e9960d8c 4521 (home-page "https://cran.r-project.org/web/packages/CompQuadForm")
26a281ef
RW
4522 (synopsis "Distribution function of quadratic forms in normal variables")
4523 (description
4524 "This package provides functions to compute the distribution function of
4525quadratic forms in normal variables using Imhof's method, Davies's algorithm,
4526Farebrother's algorithm or Liu et al.'s algorithm.")
4527 (license license:gpl2+)))
c6017f72
RJPB
4528
4529(define-public r-cowplot
4530 (package
4531 (name "r-cowplot")
db93ef09 4532 (version "1.0.0")
c6017f72
RJPB
4533 (source
4534 (origin
4535 (method url-fetch)
4536 (uri (cran-uri "cowplot" version))
4537 (sha256
4538 (base32
db93ef09 4539 "19cqdhgfyr1wj0fz0c5ly8f0aiy9sfgzq6lzb78hkx0hdp2agybh"))))
c6017f72
RJPB
4540 (build-system r-build-system)
4541 (propagated-inputs
4542 `(("r-ggplot2" ,r-ggplot2)
4543 ("r-gtable" ,r-gtable)
db93ef09 4544 ("r-rlang" ,r-rlang)
b50a4b13 4545 ("r-scales" ,r-scales)))
c6017f72
RJPB
4546 (home-page "https://github.com/wilkelab/cowplot")
4547 (synopsis "Streamlined plot theme and plot annotations for ggplot2")
4548 (description
4549 "This package provides some helpful extensions and modifications to the
4550ggplot2 package to combine multiple ggplot2 plots into one and label them with
4551letters, as is often required for scientific publications.")
4552 (license license:gpl2)))
efba686c
RJPB
4553
4554(define-public r-mixtools
4555 (package
4556 (name "r-mixtools")
ca61ca93 4557 (version "1.2.0")
efba686c
RJPB
4558 (source
4559 (origin
4560 (method url-fetch)
4561 (uri (cran-uri "mixtools" version))
4562 (sha256
4563 (base32
ca61ca93 4564 "08whic8hmmzi55b7azwj11l2x5r9s5qbyrv7s9jr08156vqkw0zg"))))
efba686c
RJPB
4565 (build-system r-build-system)
4566 (propagated-inputs
2f44ef97 4567 `(("r-mass" ,r-mass)
ca61ca93 4568 ("r-kernlab" ,r-kernlab)
2f44ef97
RW
4569 ("r-segmented" ,r-segmented)
4570 ("r-survival" ,r-survival)))
e9960d8c 4571 (home-page "https://cran.r-project.org/web/packages/mixtools")
efba686c
RJPB
4572 (synopsis "Tools for analyzing finite mixture models")
4573 (description
4574 "This package provides a collection of R functions for analyzing finite
4575mixture models.")
4576 (license license:gpl2+)))
793f2edb
RJPB
4577
4578(define-public r-lars
4579 (package
4580 (name "r-lars")
4581 (version "1.2")
4582 (source
4583 (origin
4584 (method url-fetch)
4585 (uri (cran-uri "lars" version))
4586 (sha256
4587 (base32
4588 "0blj44wqrx6lmym1m9v6wkz8zxzbjax2zl6swgdczci0ixb5nx34"))))
4589 (build-system r-build-system)
4590 (inputs
4591 `(("gfortran" ,gfortran)))
f9d9a7e4 4592 (home-page "https://web.stanford.edu/~hastie/Papers/LARS/")
793f2edb
RJPB
4593 (synopsis "Least angle regression software")
4594 (description
4595 "Least Angle Regression (\"LAR\") is a model selection algorithm; a
4596useful and less greedy version of traditional forward selection methods. A
4597simple modification of the LAR algorithm implements Tibshirani's Lasso; the
4598Lasso modification of LARS calculates the entire Lasso path of coefficients
4599for a given problem at the cost of a single least squares fit. Another LARS
4600modification efficiently implements epsilon Forward Stagewise linear
4601regression.")
4602 (license license:gpl2)))
e431eb67
RJPB
4603
4604(define-public r-fastica
4605 (package
4606 (name "r-fastica")
58aa971f 4607 (version "1.2-2")
e431eb67
RJPB
4608 (source
4609 (origin
4610 (method url-fetch)
4611 (uri (cran-uri "fastICA" version))
4612 (sha256
4613 (base32
58aa971f 4614 "1zpijqcipm0aa3rxj0mys06lskqy4dbppjpxr1aby0j16y9ka8ij"))))
e431eb67
RJPB
4615 (properties `((upstream-name . "fastICA")))
4616 (build-system r-build-system)
e9960d8c 4617 (home-page "https://cran.r-project.org/web/packages/fastICA")
e431eb67
RJPB
4618 (synopsis "FastICA algorithms to perform ICA and projection pursuit")
4619 (description
4620 "This package provides an implementation of the FastICA algorithm to
4621perform @dfn{independent component analysis} (ICA) and projection pursuit.")
4622 ;; Any GPL version.
4623 (license license:gpl3+)))
37337699
RJPB
4624
4625(define-public r-randomforest
4626 (package
4627 (name "r-randomforest")
6e54870f 4628 (version "4.6-14")
37337699
RJPB
4629 (source
4630 (origin
4631 (method url-fetch)
4632 (uri (cran-uri "randomForest" version))
4633 (sha256
4634 (base32
6e54870f 4635 "0kbmm0l42fc2d1rdq0l7k09d34kd87q4lx651ffsic4y84h8kf7l"))))
37337699
RJPB
4636 (properties `((upstream-name . "randomForest")))
4637 (build-system r-build-system)
4638 (home-page "https://www.stat.berkeley.edu/~breiman/RandomForests/")
4639 (native-inputs
4640 `(("gfortran" ,gfortran)))
4641 (synopsis "Breiman and Cutler's random forests for classification and regression")
4642 (description
4643"This package provides the Breiman and Cutler's random forests algorithm, based on a
4644forest of trees using random inputs, for classification and regression.")
4645 (license license:gpl2+)))
d5eca4f9
RJPB
4646
4647(define-public r-diptest
4648 (package
4649 (name "r-diptest")
4650 (version "0.75-7")
4651 (source
4652 (origin
4653 (method url-fetch)
4654 (uri (cran-uri "diptest" version))
4655 (sha256
4656 (base32
4657 "06xnc5gv1284ll0addxnxb6ljz6fn8dbyrp5vchyz6551h800aa6"))))
4658 (build-system r-build-system)
e9960d8c 4659 (home-page "https://cran.r-project.org/web/packages/diptest")
d5eca4f9
RJPB
4660 (synopsis "Hartigan's dip test statistic for unimodality")
4661 (description
4662 "This package computes Hartigan's dip test statistic for unimodality,
4663multimodality and provides a test with simulation based p-values, where the
4664original public code has been corrected.")
4665 (license license:gpl2+)))
1721fb4f
RJPB
4666
4667(define-public r-modeltools
4668 (package
4669 (name "r-modeltools")
dd386dd7 4670 (version "0.2-23")
1721fb4f
RJPB
4671 (source
4672 (origin
4673 (method url-fetch)
4674 (uri (cran-uri "modeltools" version))
4675 (sha256
4676 (base32
dd386dd7 4677 "1vqh69256h344sbj5affm0kmc77dakrxp6442xfdnfd0y5d8sgkb"))))
1721fb4f 4678 (build-system r-build-system)
e9960d8c 4679 (home-page "https://cran.r-project.org/web/packages/modeltools")
1721fb4f
RJPB
4680 (synopsis "Tools and classes for statistical models")
4681 (description
4682 "This package provides a collection of tools to deal with statistical
4683models. The functionality is experimental and the user interface is likely
4684to change in the future.")
4685 (license license:gpl2)))
a1f2668e
RJPB
4686
4687(define-public r-flexmix
4688 (package
4689 (name "r-flexmix")
bc7895e1 4690 (version "2.3-15")
a1f2668e
RJPB
4691 (source
4692 (origin
4693 (method url-fetch)
4694 (uri (cran-uri "flexmix" version))
4695 (sha256
4696 (base32
bc7895e1 4697 "0hrz2axp2c9548b1r0bmrl57219nn030qndb83a8garkzq5lqi5s"))))
a1f2668e
RJPB
4698 (build-system r-build-system)
4699 (propagated-inputs
aeb64f3c
RW
4700 `(("r-lattice" ,r-lattice)
4701 ("r-modeltools" ,r-modeltools)
4702 ("r-nnet" ,r-nnet)))
e9960d8c 4703 (home-page "https://cran.r-project.org/web/packages/flexmix")
a1f2668e
RJPB
4704 (synopsis "Flexible mixture modeling")
4705 (description
4706 "This package implements a general framework for finite mixtures of
4707regression models using the EM algorithm. FlexMix provides the E-step and
4708all data handling, while the M-step can be supplied by the user to easily
4709define new models. Existing drivers implement mixtures of standard linear
4710models, generalized linear models and model-based clustering.")
4711 (license license:gpl2+)))
5638e154
RJPB
4712
4713(define-public r-mclust
4714 (package
4715 (name "r-mclust")
91108903 4716 (version "5.4.6")
5638e154
RJPB
4717 (source
4718 (origin
4719 (method url-fetch)
4720 (uri (cran-uri "mclust" version))
4721 (sha256
4722 (base32
91108903 4723 "1z46qask09x3xpv0wzvhn09218vwyrip4f5jrhnx96khpwvczzyl"))))
5638e154
RJPB
4724 (build-system r-build-system)
4725 (native-inputs
91108903
RW
4726 `(("gfortran" ,gfortran)
4727 ("r-knitr" ,r-knitr)))
e661c96f 4728 (home-page "https://www.stat.washington.edu/mclust/")
5638e154
RJPB
4729 (synopsis "Gaussian mixture modelling for model-based clustering etc.")
4730 (description
4731 "This package provides Gaussian finite mixture models fitted via EM
4732algorithm for model-based clustering, classification, and density estimation,
4733including Bayesian regularization, dimension reduction for visualisation,
4734and resampling-based inference.")
4735 (license license:gpl2+)))
4736
c962816d
RJPB
4737(define-public r-prabclus
4738 (package
4739 (name "r-prabclus")
96e11a63 4740 (version "2.3-2")
c962816d
RJPB
4741 (source
4742 (origin
4743 (method url-fetch)
4744 (uri (cran-uri "prabclus" version))
4745 (sha256
4746 (base32
96e11a63 4747 "0hg4d7y1w18jpgvw10z8833bbbcnlkwiasx0wh6iwa2pnnybq8gl"))))
c962816d
RJPB
4748 (build-system r-build-system)
4749 (propagated-inputs
aeb64f3c
RW
4750 `(("r-mass" ,r-mass)
4751 ("r-mclust" ,r-mclust)))
c962816d
RJPB
4752 (home-page "https://cran.r-project.org/web/packages/prabclus")
4753 (synopsis "Parametric bootstrap tests for spatial neighborhood clustering")
4754 (description
2e648d2b
RW
4755 "This package provides distance-based parametric bootstrap tests for
4756clustering with spatial neighborhood information. It implements some distance
4757measures, clustering of presence-absence, abundance and multilocus genetical
4758data for species delimitation, nearest neighbor based noise detection.")
c962816d 4759 (license license:gpl2+)))
cda07208
RJPB
4760
4761(define-public r-deoptimr
4762 (package
4763 (name "r-deoptimr")
4764 (version "1.0-8")
4765 (source
4766 (origin
4767 (method url-fetch)
4768 (uri (cran-uri "DEoptimR" version))
4769 (sha256
4770 (base32
4771 "1vz546hyjyhly70z62h5n3mn62b8llhhmim8ffp9y6jnnb0i2sc4"))))
4772 (properties `((upstream-name . "DEoptimR")))
4773 (build-system r-build-system)
e9960d8c 4774 (home-page "https://cran.r-project.org/web/packages/DEoptimR")
cda07208
RJPB
4775 (synopsis "Differential evolution optimization in pure R")
4776 (description
4777 "This package provides a differential evolution (DE) stochastic
4778algorithms for global optimization of problems with and without constraints.
4779The aim is to curate a collection of its state-of-the-art variants that (1) do
4780not sacrifice simplicity of design, (2) are essentially tuning-free, and (3)
4781can be efficiently implemented directly in the R language.")
4782 (license license:gpl2+)))
c0cab38e
RJPB
4783
4784(define-public r-robustbase
4785 (package
4786 (name "r-robustbase")
f7a21df5 4787 (version "0.93-6")
c0cab38e
RJPB
4788 (source
4789 (origin
4790 (method url-fetch)
4791 (uri (cran-uri "robustbase" version))
4792 (sha256
4793 (base32
f7a21df5 4794 "1cr478xi4n9jwsdpbq182a7ig47rpb413q28dz6d1am08sk6657a"))))
c0cab38e 4795 (build-system r-build-system)
c17ee12c 4796 (native-inputs
c0cab38e
RJPB
4797 `(("gfortran" ,gfortran)))
4798 (propagated-inputs
4799 `(("r-deoptimr" ,r-deoptimr)))
4800 (home-page "http://robustbase.r-forge.r-project.org/")
4801 (synopsis "Basic robust statistics")
4802 (description
ed8a9de8 4803 "This package analyzes data with robust methods such as
c0cab38e
RJPB
4804regression methodology including model selections and multivariate statistics.")
4805 (license license:gpl2+)))
5da4f84f 4806
23841b25
RW
4807(define-public r-pcapp
4808 (package
4809 (name "r-pcapp")
23fb6047 4810 (version "1.9-73")
23841b25
RW
4811 (source
4812 (origin
4813 (method url-fetch)
4814 (uri (cran-uri "pcaPP" version))
4815 (sha256
4816 (base32
23fb6047 4817 "1z2kdf9gfp965xbcd4rg6vf20d1bl443na0qjkpq7gmzpaq6cifa"))))
23841b25
RW
4818 (properties `((upstream-name . "pcaPP")))
4819 (build-system r-build-system)
4820 (propagated-inputs
4821 `(("r-mvtnorm" ,r-mvtnorm)))
e9960d8c 4822 (home-page "https://cran.r-project.org/web/packages/pcaPP")
23841b25
RW
4823 (synopsis "Robust PCA by projection pursuit")
4824 (description
4825 "This package provides functions for robust @dfn{principal component
4826analysis} (PCA) by projection pursuit.")
4827 (license license:gpl3+)))
4828
0bae5fd6
RW
4829(define-public r-rrcov
4830 (package
4831 (name "r-rrcov")
2c676da7 4832 (version "1.5-2")
0bae5fd6
RW
4833 (source
4834 (origin
4835 (method url-fetch)
4836 (uri (cran-uri "rrcov" version))
4837 (sha256
4838 (base32
2c676da7 4839 "0m62k58nabw7hjz1qyyf9a0d6lvcz5vcvpksjnq93zcfra9inr57"))))
0bae5fd6
RW
4840 (build-system r-build-system)
4841 (propagated-inputs
2c676da7 4842 `(("r-lattice" ,r-lattice)
0bae5fd6
RW
4843 ("r-mvtnorm" ,r-mvtnorm)
4844 ("r-pcapp" ,r-pcapp)
4845 ("r-robustbase" ,r-robustbase)))
4846 (native-inputs
4847 `(("gfortran" ,gfortran)))
e9960d8c 4848 (home-page "https://cran.r-project.org/web/packages/rrcov")
0bae5fd6
RW
4849 (synopsis "Scalable robust estimators with high breakdown Point")
4850 (description
4851 "This package provides an implementation of robust location and scatter
4852estimation and robust multivariate analysis with high breakdown point.")
4853 (license license:gpl2+)))
4854
5d0afe88
RW
4855(define-public r-fit-models
4856 (package
4857 (name "r-fit-models")
4858 (version "0.5-14")
4859 (source
4860 (origin
4861 (method url-fetch)
4862 (uri (cran-uri "fit.models" version))
4863 (sha256
4864 (base32
4865 "0vjbzmx0ambm6yzidb4vbgmhclwzwv2iz2cwl54ccdkvx4cx3fck"))))
4866 (properties `((upstream-name . "fit.models")))
4867 (build-system r-build-system)
4868 (propagated-inputs
4869 `(("r-lattice" ,r-lattice)))
e9960d8c 4870 (home-page "https://cran.r-project.org/web/packages/fit.models")
5d0afe88
RW
4871 (synopsis "Compare fitted models")
4872 (description
4873 "The @code{fit.models} function and its associated methods (coefficients, print,
4874summary, plot, etc.) were originally provided in the @code{robust} package to
4875compare robustly and classically fitted model objects. The aim of the
4876@code{fit.models} package is to separate this fitted model object comparison
4877functionality from the robust package and to extend it to support fitting
4878methods (e.g., classical, robust, Bayesian, regularized, etc.) more
4879generally.")
4880 ;; Any version of the GPL
4881 (license (list license:gpl2+ license:gpl3+))))
4882
c5f744a6
RW
4883(define-public r-robust
4884 (package
4885 (name "r-robust")
c32897b6 4886 (version "0.5-0.0")
c5f744a6
RW
4887 (source
4888 (origin
4889 (method url-fetch)
4890 (uri (cran-uri "robust" version))
4891 (sha256
4892 (base32
c32897b6 4893 "1ks5scp8bnicl9j1r8yrmz668fjs6ifdmi540zw6d2ck500bbw42"))))
c5f744a6
RW
4894 (build-system r-build-system)
4895 (propagated-inputs
4896 `(("r-fit-models" ,r-fit-models)
4897 ("r-lattice" ,r-lattice)
4898 ("r-mass" ,r-mass)
4899 ("r-robustbase" ,r-robustbase)
4900 ("r-rrcov" ,r-rrcov)))
4901 (native-inputs
4902 `(("gfortran" ,gfortran)))
e9960d8c 4903 (home-page "https://cran.r-project.org/web/packages/robust")
c5f744a6
RW
4904 (synopsis "Port of the S+ \"Robust Library\"")
4905 (description
4906 "This package is a port of the S+ \"Robust Library\". It provides
4907methods for robust statistics, notably for robust regression and robust
4908multivariate analysis.")
4909 (license license:gpl2)))
4910
5da4f84f
RJPB
4911(define-public r-trimcluster
4912 (package
4913 (name "r-trimcluster")
fdfcde2a 4914 (version "0.1-5")
5da4f84f
RJPB
4915 (source
4916 (origin
4917 (method url-fetch)
4918 (uri (cran-uri "trimcluster" version))
4919 (sha256
4920 (base32
fdfcde2a 4921 "12siv8yx8dcavsz8jk96lwscbj257ar8jpaxksl2zb06987g4fcj"))))
5da4f84f 4922 (build-system r-build-system)
e9960d8c 4923 (home-page "https://cran.r-project.org/web/packages/trimcluster")
5da4f84f
RJPB
4924 (synopsis "Cluster analysis with trimming")
4925 (description
4926 "The trimmed k-means clustering method by Cuesta-Albertos, Gordaliza and
4927Matran (1997). This optimizes the k-means criterion under trimming a portion
4928of the points.")
97cb349d
RW
4929 ;; Any GPL version
4930 (license (list license:gpl2+ license:gpl3+))))
a409e8b5
RJPB
4931
4932(define-public r-fpc
4933 (package
4934 (name "r-fpc")
c4c3dfda 4935 (version "2.2-5")
a409e8b5
RJPB
4936 (source
4937 (origin
4938 (method url-fetch)
4939 (uri (cran-uri "fpc" version))
4940 (sha256
4941 (base32
c4c3dfda 4942 "10504hzivbn89ip0cd5bcxd36ivbgin1lw1xhyh3xfckcm25v1a5"))))
a409e8b5
RJPB
4943 (build-system r-build-system)
4944 (propagated-inputs
aeb64f3c
RW
4945 `(("r-class" ,r-class)
4946 ("r-cluster" ,r-cluster)
4947 ("r-diptest" ,r-diptest)
a409e8b5
RJPB
4948 ("r-flexmix" ,r-flexmix)
4949 ("r-kernlab" ,r-kernlab)
aeb64f3c 4950 ("r-mass" ,r-mass)
a409e8b5 4951 ("r-mclust" ,r-mclust)
a409e8b5 4952 ("r-prabclus" ,r-prabclus)
341643c6 4953 ("r-robustbase" ,r-robustbase)))
e9960d8c 4954 (home-page "https://cran.r-project.org/web/packages/fpc")
a409e8b5
RJPB
4955 (synopsis "Flexible procedures for clustering")
4956 (description
4957 "This package provides various methods for clustering and cluster validation.
4958For example, it provides fixed point clustering, linear regression clustering,
4959clustering by merging Gaussian mixture components, as well as symmetric and
4960asymmetric discriminant projections for visualisation of the separation of
4961groupings.")
4962 (license license:gpl2+)))
d4cebae2
RJPB
4963
4964(define-public r-vgam
4965 (package
4966 (name "r-vgam")
24599740 4967 (version "1.1-3")
d4cebae2
RJPB
4968 (source
4969 (origin
4970 (method url-fetch)
4971 (uri (cran-uri "VGAM" version))
4972 (sha256
24599740 4973 (base32 "1hwlrdx3nhdp83pvy1h23i16vbbhi4kizdhr58c8nvg7kqdzb7qc"))))
d4cebae2
RJPB
4974 (properties `((upstream-name . "VGAM")))
4975 (build-system r-build-system)
24599740 4976 (native-inputs
d4cebae2
RJPB
4977 `(("gfortran" ,gfortran)))
4978 (home-page "https://www.stat.auckland.ac.nz/~yee/VGAM")
4979 (synopsis "Vector generalized linear and additive models")
4980 (description
4981 "This package is an implementation of about 6 major classes of statistical
4982regression models. Currently only fixed-effects models are implemented, i.e.,
4983no random-effects models. Many (150+) models and distributions are estimated
4984by maximum likelihood estimation (MLE) or penalized MLE, using Fisher scoring.
4985VGLMs can be loosely thought of as multivariate generalised linear models.")
4986 (license license:gpl2+)))
7711f614
RJPB
4987
4988(define-public r-pbapply
4989 (package
4990 (name "r-pbapply")
df0f876e 4991 (version "1.4-2")
7711f614
RJPB
4992 (source
4993 (origin
4994 (method url-fetch)
4995 (uri (cran-uri "pbapply" version))
4996 (sha256
4997 (base32
df0f876e 4998 "1xmk4p006v8gij26rs6kp5prjyf2n32nqjxiyp8a6kvgyc4z46dc"))))
7711f614
RJPB
4999 (build-system r-build-system)
5000 (home-page "https://github.com/psolymos/pbapply")
5001 (synopsis "Adding progress bar to apply functions")
5002 (description
5003 "This lightweight package that adds progress bar to vectorized R
5004functions apply. The implementation can easily be added to functions where
5005showing the progress is useful e.g. bootstrap.")
5006 (license license:gpl2)))
e08ad766 5007
0392f82f
RJPB
5008(define-public r-minqa
5009 (package
5010 (name "r-minqa")
5011 (version "1.2.4")
5012 (source
5013 (origin
5014 (method url-fetch)
5015 (uri (cran-uri "minqa" version))
5016 (sha256
5017 (base32
5018 "036drja6xz7awja9iwb76x91415p26fb0jmg7y7v0p65m6j978fg"))))
5019 (build-system r-build-system)
5020 (propagated-inputs
5021 `(("r-rcpp" ,r-rcpp)))
5022 (inputs
5023 `(("gfortran" ,gfortran)))
5024 (home-page "http://optimizer.r-forge.r-project.org")
5025 (synopsis "Derivative-free optimization algorithms by quadratic approximation")
5026 (description
5027 "This package provides a derivative-free optimization by quadratic approximation
5028based on an interface to Fortran implementations by M. J. D. Powell.")
5029 (license license:gpl2)))
21cfad44
RJPB
5030
5031(define-public r-rcppeigen
5032 (package
5033 (name "r-rcppeigen")
7b4b1136 5034 (version "0.3.3.7.0")
21cfad44
RJPB
5035 (source
5036 (origin
5037 (method url-fetch)
5038 (uri (cran-uri "RcppEigen" version))
5039 (sha256
5040 (base32
7b4b1136 5041 "1b78qcjim0n9klgkr82n794d6bj9r9f33g0kcsszsns2hir65sk2"))))
21cfad44
RJPB
5042 (properties `((upstream-name . "RcppEigen")))
5043 (build-system r-build-system)
5044 (propagated-inputs
aeb64f3c
RW
5045 `(("r-rcpp" ,r-rcpp)
5046 ("r-matrix" ,r-matrix)))
21cfad44
RJPB
5047 (home-page "http://eigen.tuxfamily.org")
5048 (synopsis "Rcpp integration for the Eigen templated linear algebra library")
5049 (description
5050 "This package provides an integration of Eigen in R using a C++ template
5051library for linear algebra: matrices, vectors, numerical solvers and related algorithms.
5052It supports dense and sparse matrices on integer, floating point and complex numbers,
5053decompositions of such matrices, and solutions of linear systems.")
5054 (license license:gpl2+)))
aa841000
RJPB
5055
5056(define-public r-modelmetrics
5057 (package
5058 (name "r-modelmetrics")
2ceb2ed9 5059 (version "1.2.2.2")
aa841000
RJPB
5060 (source
5061 (origin
5062 (method url-fetch)
5063 (uri (cran-uri "ModelMetrics" version))
5064 (sha256
5065 (base32
2ceb2ed9 5066 "0mrlsw4c5y1vdsqynxr2dcvmhh5h37pnd71jw5a5djpbda9g21jy"))))
aa841000
RJPB
5067 (properties `((upstream-name . "ModelMetrics")))
5068 (build-system r-build-system)
5069 (propagated-inputs
f33a4748
RW
5070 `(("r-rcpp" ,r-rcpp)
5071 ("r-data-table" ,r-data-table)))
e9960d8c 5072 (home-page "https://cran.r-project.org/web/packages/ModelMetrics")
aa841000
RJPB
5073 (synopsis "Rapid calculation of model metrics")
5074 (description
5075 "Written in C++ using @code{Rcpp}, this package provides a collection of
5076metrics for evaluating models.")
5077 (license license:gpl2+)))
545d0789
RJPB
5078
5079(define-public r-matrixmodels
5080 (package
5081 (name "r-matrixmodels")
5082 (version "0.4-1")
5083 (source
5084 (origin
5085 (method url-fetch)
5086 (uri (cran-uri "MatrixModels" version))
5087 (sha256
5088 (base32
5089 "0cyfvhci2p1vr2x52ymkyqqs63x1qchn856dh2j94yb93r08x1zy"))))
5090 (properties `((upstream-name . "MatrixModels")))
5091 (build-system r-build-system)
aeb64f3c
RW
5092 (propagated-inputs
5093 `(("r-matrix" ,r-matrix)))
545d0789
RJPB
5094 (home-page "https://cran.r-project.org/web/packages/MatrixModels")
5095 (synopsis "Modelling with sparse and dense matrices")
5096 (description
5097 "This package models with sparse and dense matrix matrices,
5098using modular prediction and response module classes.")
5099 (license license:gpl2+)))
49dc1fa5
RJPB
5100
5101(define-public r-quantreg
5102 (package
5103 (name "r-quantreg")
7a04149e 5104 (version "5.55")
49dc1fa5
RJPB
5105 (source
5106 (origin
5107 (method url-fetch)
5108 (uri (cran-uri "quantreg" version))
5109 (sha256
7a04149e 5110 (base32 "1zjc8p95kb0ypxa6nxp0lkdq8armkjmmhf8484m25n5f14a59qfb"))))
49dc1fa5
RJPB
5111 (build-system r-build-system)
5112 (native-inputs
5113 `(("gfortran" ,gfortran)))
5114 (propagated-inputs
0d5bc938
RW
5115 `(("r-matrix" ,r-matrix)
5116 ("r-matrixmodels" ,r-matrixmodels)
49dc1fa5 5117 ("r-sparsem" ,r-sparsem)))
d062957a 5118 (home-page "https://www.r-project.org")
49dc1fa5
RJPB
5119 (synopsis "Quantile regression")
5120 (description
5121 "This package provides an estimation and inference methods for models
5122of conditional quantiles: linear and nonlinear parametric and non-parametric
5123models for conditional quantiles of a univariate response and several methods
5124for handling censored survival data. Portfolio selection methods based on
5125expected shortfall risk are also included.")
5126 (license license:gpl2+)))
c549864d
RJPB
5127
5128(define-public r-nloptr
5129 (package
5130 (name "r-nloptr")
92d6c94a 5131 (version "1.2.2.1")
c549864d
RJPB
5132 (source
5133 (origin
5134 (method url-fetch)
5135 (uri (cran-uri "nloptr" version))
5136 (sha256
5137 (base32
92d6c94a 5138 "1bhh2v14phzndjhiq7yw9vych6vzn5yy3vk9q35zcp3jhjjbwdyh"))))
c549864d
RJPB
5139 (build-system r-build-system)
5140 (native-inputs
6ab5670a
RW
5141 `(("r-knitr" ,r-knitr) ; for building vignettes
5142 ("pkg-config" ,pkg-config)
5143 ("gfortran" ,gfortran)))
c549864d
RJPB
5144 (inputs
5145 `(("nlopt" ,nlopt)))
e9960d8c 5146 (home-page "https://cran.r-project.org/web/packages/nloptr")
c549864d
RJPB
5147 (synopsis "R interface to NLopt")
5148 (description
5149 "This package is interface to NLopt, a library for nonlinear
5150optimization. NLopt is a library for nonlinear optimization, providing a
5151common interface for a number of different free optimization routines
5152available online as well as original implementations of various other
5153algorithms.")
5154 (license license:lgpl3)))
51fc7d8c
RJPB
5155
5156(define-public r-lme4
5157 (package
5158 (name "r-lme4")
ec2b99c1 5159 (version "1.1-23")
51fc7d8c
RJPB
5160 (source
5161 (origin
5162 (method url-fetch)
5163 (uri (cran-uri "lme4" version))
5164 (sha256
5165 (base32
ec2b99c1 5166 "0qh29kqli0l3naylgb6jha6jllx4nwryr3hv9yk37blgyyql5mcr"))))
51fc7d8c 5167 (build-system r-build-system)
51fc7d8c 5168 (propagated-inputs
6caf80fb
RW
5169 `(("r-boot" ,r-boot)
5170 ("r-lattice" ,r-lattice)
5171 ("r-mass" ,r-mass)
96071a6d
RW
5172 ("r-matrix" ,r-matrix)
5173 ("r-minqa" ,r-minqa)
aeb64f3c 5174 ("r-nloptr" ,r-nloptr)
6caf80fb
RW
5175 ("r-nlme" ,r-nlme)
5176 ("r-rcpp" ,r-rcpp)
ec2b99c1
RW
5177 ("r-rcppeigen" ,r-rcppeigen)
5178 ("r-statmod" ,r-statmod)))
5179 (native-inputs
5180 `(("r-knitr" ,r-knitr)))
e9960d8c 5181 (home-page "https://cran.r-project.org/web/packages/lme4")
51fc7d8c
RJPB
5182 (synopsis "Linear mixed-effects models using eigen and S4")
5183 (description
5184 "This package provides fit linear and generalized linear mixed-effects
5185models. The models and their components are represented using S4 classes and
5186methods. The core computational algorithms are implemented using the Eigen
5187C++ library for numerical linear algebra and RcppEigen glue.")
5188 (license license:gpl2+)))
a3eb8c81
RJPB
5189
5190(define-public r-pbkrtest
5191 (package
5192 (name "r-pbkrtest")
ae55cd96 5193 (version "0.4-8.6")
a3eb8c81
RJPB
5194 (source
5195 (origin
5196 (method url-fetch)
5197 (uri (cran-uri "pbkrtest" version))
5198 (sha256
5199 (base32
ae55cd96 5200 "0s5xhhrhv5i9680lw6af9lj2x4jc3fygmzzk0jjpxnb8g4b3p1jz"))))
a3eb8c81
RJPB
5201 (build-system r-build-system)
5202 (propagated-inputs
aeb64f3c 5203 `(("r-lme4" ,r-lme4)
ae55cd96 5204 ("r-magrittr" ,r-magrittr)
aeb64f3c
RW
5205 ("r-mass" ,r-mass)
5206 ("r-matrix" ,r-matrix)))
a3eb8c81
RJPB
5207 (home-page "http://people.math.aau.dk/~sorenh/software/pbkrtest/")
5208 (synopsis "Methods for linear mixed model comparison")
5209 (description
5210 "This package implements a parametric bootstrap test and a Kenward Roger
5211modification of F-tests for linear mixed effects models and a parametric
5212bootstrap test for generalized linear mixed models.")
5213 (license license:gpl2+)))
ab2ec643 5214
f1c7a242
RW
5215(define-public r-cardata
5216 (package
5217 (name "r-cardata")
19b85d02 5218 (version "3.0-3")
f1c7a242
RW
5219 (source
5220 (origin
5221 (method url-fetch)
5222 (uri (cran-uri "carData" version))
5223 (sha256
19b85d02 5224 (base32 "0cg2yxzn0pdjqykr60my1fzpfkqac21fll5hv3m9w5c9sayq8swq"))))
f1c7a242
RW
5225 (properties `((upstream-name . "carData")))
5226 (build-system r-build-system)
5227 (home-page "https://r-forge.r-project.org/projects/car/")
5228 (synopsis "Data Sets for the book Companion to Applied Regression")
5229 (description
5230 "This package provides datasets to accompany J. Fox and S. Weisberg, An R
5231Companion to Applied Regression, Third Edition, Sage.")
5232 (license license:gpl2+)))
ab2ec643
RJPB
5233
5234(define-public r-car
5235 (package
5236 (name "r-car")
72e76113 5237 (version "3.0-7")
ab2ec643
RJPB
5238 (source
5239 (origin
5240 (method url-fetch)
5241 (uri (cran-uri "car" version))
5242 (sha256
72e76113 5243 (base32 "11sfk1l41j27mrfy16g7b02c570n3gy9icvpcrfjh1biykqa565d"))))
ab2ec643
RJPB
5244 (build-system r-build-system)
5245 (propagated-inputs
500224cb
RW
5246 `(("r-abind" ,r-abind)
5247 ("r-cardata" ,r-cardata)
5248 ("r-lme4" ,r-lme4)
5249 ("r-maptools" ,r-maptools)
5250 ("r-mass" ,r-mass)
aeb64f3c 5251 ("r-mgcv" ,r-mgcv)
500224cb 5252 ("r-nlme" ,r-nlme)
aeb64f3c
RW
5253 ("r-nnet" ,r-nnet)
5254 ("r-pbkrtest" ,r-pbkrtest)
500224cb
RW
5255 ("r-quantreg" ,r-quantreg)
5256 ("r-rio" ,r-rio)))
72e76113
RW
5257 (native-inputs
5258 `(("r-knitr" ,r-knitr)))
ab2ec643
RJPB
5259 (home-page "https://r-forge.r-project.org/projects/car/")
5260 (synopsis "Companion to applied regression")
5261 (description
5262 "This package provides functions and datasets from book Companion
5263to Applied regression, Second Edition, Sage, 2011.")
5264 (license license:gpl2+)))
aa890f61 5265
362ea0dc
RJPB
5266(define-public r-rcppprogress
5267 (package
5268 (name "r-rcppprogress")
c0d106ac 5269 (version "0.4.2")
362ea0dc
RJPB
5270 (source
5271 (origin
5272 (method url-fetch)
5273 (uri (cran-uri "RcppProgress" version))
5274 (sha256
5275 (base32
c0d106ac 5276 "0j2b37gwjpgmrnr00srdzm751hzlpsjb54ph63xxmcdfnwhlnqmi"))))
362ea0dc
RJPB
5277 (properties `((upstream-name . "RcppProgress")))
5278 (build-system r-build-system)
362ea0dc
RJPB
5279 (home-page "https://github.com/kforner/rcpp_progress")
5280 (synopsis "Interruptible progress bar for C++ in R packages")
5281 (description
9bbba9aa 5282 "This package displays a progress bar in the R console for long running
362ea0dc
RJPB
5283computations taking place in C++ code, and support for interrupting those computations
5284even in multithreaded code, typically using OpenMP.")
5285 (license license:gpl3+)))
fe68c8a9
RJPB
5286
5287(define-public r-mnormt
5288 (package
5289 (name "r-mnormt")
75741af9 5290 (version "1.5-7")
fe68c8a9
RJPB
5291 (source
5292 (origin
5293 (method url-fetch)
5294 (uri (cran-uri "mnormt" version))
5295 (sha256
5296 (base32
75741af9 5297 "1y0vlvh02wza2wvfd29wxjlw3jg9rnwnx3kph5qz4179kz87fgfg"))))
fe68c8a9
RJPB
5298 (build-system r-build-system)
5299 (native-inputs
5300 `(("gfortran" ,gfortran)))
5301 (home-page "http://azzalini.stat.unipd.it/SW/Pkg-mnormt")
5302 (synopsis "Multivariate normal and \"t\" distributions")
5303 (description
5304 "This package provides functions for computing the density and the
5305distribution function of multivariate normal and \"t\" random variables, and
5306for generating random vectors sampled from these distributions. Probabilities
5307are computed via non-Monte Carlo methods.")
5308 (license license:gpl2+)))
06085b5b
RJPB
5309
5310(define-public r-numderiv
5311 (package
5312 (name "r-numderiv")
30386233 5313 (version "2016.8-1.1")
06085b5b
RJPB
5314 (source
5315 (origin
5316 (method url-fetch)
5317 (uri (cran-uri "numDeriv" version))
5318 (sha256
5319 (base32
30386233 5320 "0idk02pqkziik932bd8k72d1q775g1is3m4bc861pcxfz6gx3i6q"))))
06085b5b
RJPB
5321 (properties `((upstream-name . "numDeriv")))
5322 (build-system r-build-system)
5323 (home-page "https://cran.r-project.org/web/packages/numDeriv")
5324 (synopsis "Accurate numerical derivatives")
5325 (description
5326 "This package provides methods for calculating accurate numerical
5327first and second order derivatives.")
5328 (license license:gpl2)))
5a200a24
RJPB
5329
5330(define-public r-sn
5331 (package
5332 (name "r-sn")
83ba1c19 5333 (version "1.6-1")
5a200a24
RJPB
5334 (source
5335 (origin
5336 (method url-fetch)
5337 (uri (cran-uri "sn" version))
5338 (sha256
5339 (base32
83ba1c19 5340 "0snri2k8qslb7478c5jz4a5xxmmb1ipmp8x1jizi8mhj2cjic1w0"))))
5a200a24
RJPB
5341 (build-system r-build-system)
5342 (propagated-inputs
5343 `(("r-mnormt" ,r-mnormt)
0b406727
RW
5344 ("r-numderiv" ,r-numderiv)
5345 ("r-quantreg" ,r-quantreg)))
5a200a24
RJPB
5346 (home-page "http://azzalini.stat.unipd.it/SN")
5347 (synopsis "The skew-normal and skew-t distributions")
5348 (description
0655fd42 5349 "This package provides functionalities to build and manipulate
5a200a24
RJPB
5350probability distributions of the skew-normal family and some related
5351ones, notably the skew-t family, and provides related statistical
5352methods for data fitting and diagnostics, in the univariate and the
5353multivariate case.")
5354 (license license:gpl2+)))
d1906e31
RJPB
5355
5356(define-public r-tclust
5357 (package
5358 (name "r-tclust")
14bb6f5f 5359 (version "1.4-1")
d1906e31
RJPB
5360 (source
5361 (origin
5362 (method url-fetch)
5363 (uri (cran-uri "tclust" version))
5364 (sha256
5365 (base32
14bb6f5f 5366 "17md6l9v9dl9b72l84df01b52h2xiynbcjm437mv9mzcr09fc2sb"))))
d1906e31 5367 (build-system r-build-system)
14bb6f5f 5368 ;; These are all suggested packages, not build dependencies.
d1906e31 5369 (propagated-inputs
aeb64f3c
RW
5370 `(("r-cluster" ,r-cluster)
5371 ("r-mclust" ,r-mclust)
d1906e31
RJPB
5372 ("r-mvtnorm" ,r-mvtnorm)
5373 ("r-sn" ,r-sn)))
e9960d8c 5374 (home-page "https://cran.r-project.org/web/packages/tclust")
d1906e31
RJPB
5375 (synopsis "Robust trimmed clustering")
5376 (description
5377 "This package implements different robust clustering
5378algorithms (@code{tclust}) based on trimming and including some graphical
5379diagnostic tools (@code{ctlcurves} and @code{DiscrFact}).")
5380 (license license:gpl3)))
02eec38e
RJPB
5381
5382(define-public r-ranger
5383 (package
5384 (name "r-ranger")
0169d778 5385 (version "0.12.1")
02eec38e
RJPB
5386 (source
5387 (origin
5388 (method url-fetch)
5389 (uri (cran-uri "ranger" version))
5390 (sha256
5391 (base32
0169d778 5392 "1vr5akgh388iivrxi0g4pl2npq9dc4cim3ljk4kjf637q058wc7w"))))
02eec38e
RJPB
5393 (build-system r-build-system)
5394 (propagated-inputs
c628b841
RW
5395 `(("r-rcpp" ,r-rcpp)
5396 ("r-matrix" ,r-matrix)
5397 ("r-rcppeigen" ,r-rcppeigen)))
02eec38e
RJPB
5398 (home-page "https://github.com/imbs-hl/ranger")
5399 (synopsis "Fast implementation of random forests")
5400 (description
5401 "This package provides a fast implementation of Random Forests,
5402particularly suited for high dimensional data. Ensembles of classification,
5403regression, survival and probability prediction trees are supported. Data from
5404genome-wide association studies can be analyzed efficiently.")
5405 (license license:gpl3)))
a5935d19
RJPB
5406
5407(define-public r-tsne
5408 (package
5409 (name "r-tsne")
5410 (version "0.1-3")
5411 (source
5412 (origin
5413 (method url-fetch)
5414 (uri (cran-uri "tsne" version))
5415 (sha256
5416 (base32
5417 "0s8cv2pndkddq62rzlgzgfdjp1vjv5hz5i5957sllnb97vbzbzb6"))))
5418 (build-system r-build-system)
5419 (home-page "https://github.com/jdonaldson/rtsne/")
5420 (synopsis "t-Distributed Stochastic Neighbor Embedding for R")
5421 (description
5422 "This package provides a pure R implementation of the t-SNE algorithm.")
5423 (license license:gpl2+)))
e2c4fe7c
RW
5424
5425(define-public r-cairo
5426 (package
5427 (name "r-cairo")
b493e5ab 5428 (version "1.5-12")
e2c4fe7c
RW
5429 (source
5430 (origin
5431 (method url-fetch)
5432 (uri (cran-uri "Cairo" version))
5433 (sha256
5434 (base32
b493e5ab 5435 "02v29am4fac3fyq6y1w6r89zwbqqkxjsxrafcwb5s124ikxyl22f"))))
e2c4fe7c
RW
5436 (properties `((upstream-name . "Cairo")))
5437 (build-system r-build-system)
5438 (inputs
5439 `(("cairo" ,cairo)
e040413e
RW
5440 ("libxt" ,libxt)
5441 ("zlib" ,zlib)))
e2c4fe7c
RW
5442 (native-inputs
5443 `(("pkg-config" ,pkg-config)))
b3cac533 5444 (home-page "https://www.rforge.net/Cairo/")
e2c4fe7c
RW
5445 (synopsis "R graphics device using Cairo graphics library")
5446 (description
5447 "This package provides a Cairo graphics device that can be use to
5448create high-quality vector (PDF, PostScript and SVG) and bitmap
5449output (PNG,JPEG,TIFF), and high-quality rendering in displays (X11
5450and Win32). Since it uses the same back-end for all output, copying
5451across formats is WYSIWYG. Files are created without the dependence
5452on X11 or other external programs. This device supports alpha
5453channel (semi-transparent drawing) and resulting images can contain
5454transparent and semi-transparent regions. It is ideal for use in
5455server environments (file output) and as a replacement for other
5456devices that don't have Cairo's capabilities such as alpha support or
5457anti-aliasing. Backends are modular such that any subset of backends
5458is supported.")
5459 (license license:gpl2)))
db0bb6f0
RW
5460
5461(define-public r-lubridate
5462 (package
5463 (name "r-lubridate")
2e47488c 5464 (version "1.7.8")
db0bb6f0
RW
5465 (source
5466 (origin
5467 (method url-fetch)
5468 (uri (cran-uri "lubridate" version))
5469 (sha256
5470 (base32
2e47488c 5471 "0g2m9dyhgds4shdrk76w7rqdl9msam4rii2qrhz12gipzhi9k89x"))))
db0bb6f0
RW
5472 (build-system r-build-system)
5473 (propagated-inputs
2e47488c
RW
5474 `(("r-generics" ,r-generics)
5475 ("r-rcpp" ,r-rcpp)))
5476 (native-inputs
5477 `(("r-knitr" ,r-knitr)))
5478 (home-page "https://cran.r-project.org/web/packages/lubridate/")
db0bb6f0
RW
5479 (synopsis "Make dealing with dates a little easier")
5480 (description
5481 "This package provides functions to work with date-times and time-spans:
5482fast and user friendly parsing of date-time data, extraction and updating of
5483components of a date-time (years, months, days, hours, minutes, and seconds),
36a4366d 5484algebraic manipulation on date-time and time-span objects. The @code{lubridate}
db0bb6f0
RW
5485package has a consistent and memorable syntax that makes working with dates
5486easy and fun.")
5487 (license license:gpl2)))
1dacc269
RW
5488
5489(define-public r-fdrtool
5490 (package
5491 (name "r-fdrtool")
5492 (version "1.2.15")
5493 (source
5494 (origin
5495 (method url-fetch)
5496 (uri (cran-uri "fdrtool" version))
5497 (sha256
5498 (base32
5499 "1h46frlk7d9f4qx0bg6p55nrm9wwwz2sv6d1nz7061wdfsm69yb5"))))
5500 (build-system r-build-system)
5501 (home-page "http://strimmerlab.org/software/fdrtool/")
5502 (synopsis "Estimation of false discovery rates and higher criticism")
5503 (description
14e5f6b2
RW
5504 "This package provides tools to estimate tail area-based false discovery
5505rates as well as local false discovery rates for a variety of null
5506models (p-values, z-scores, correlation coefficients, t-scores). The
5507proportion of null values and the parameters of the null distribution are
5508adaptively estimated from the data. In addition, the package contains
5509functions for non-parametric density estimation (Grenander estimator), for
5510monotone regression (isotonic regression and antitonic regression with
5511weights), for computing the @dfn{greatest convex minorant} (GCM) and the
5512@dfn{least concave majorant} (LCM), for the half-normal and correlation
5513distributions, and for computing empirical @dfn{higher criticism} (HC) scores
5514and the corresponding decision threshold.")
1dacc269 5515 (license license:gpl3+)))
4c77abc4
KM
5516
5517(define-public r-forcats
5518 (package
5519 (name "r-forcats")
7a4b2da4 5520 (version "0.5.0")
4c77abc4
KM
5521 (source
5522 (origin
5523 (method url-fetch)
5524 (uri (cran-uri "forcats" version))
5525 (sha256
5526 (base32
7a4b2da4 5527 "1i4hblsjgwkrcwgvgsb5yj33pw1hwdj3lr9dvxymkv1kjdw0x5lg"))))
4c77abc4
KM
5528 (build-system r-build-system)
5529 (propagated-inputs
34a98f79
RW
5530 `(("r-ellipsis" ,r-ellipsis)
5531 ("r-magrittr" ,r-magrittr)
8cc41c8f
RW
5532 ("r-tibble" ,r-tibble)
5533 ("r-rlang" ,r-rlang)))
4ce61a90 5534 (home-page "https://forcats.tidyverse.org")
4c77abc4
KM
5535 (synopsis "Tools for working with factors")
5536 (description "This package provides helpers for reordering factor
5537levels (including moving specified levels to front, ordering by first
5538appearance, reversing, and randomly shuffling), and tools for modifying factor
5539levels (including collapsing rare levels into other, \"anonymizing\", and
5540manually \"recoding\").")
5541 (license license:gpl3)))
7941d1ed
RW
5542
5543(define-public r-tgstat
5544 (let ((changeset "4f8e60c03598f49aff6f5beeab40f2b995377e9f")
5545 (revision "1"))
5546 (package
5547 (name "r-tgstat")
5548 (version (string-append "1.0.2-" revision "." (string-take changeset 7)))
5549 (source
5550 (origin
5551 (method hg-fetch)
5552 (uri (hg-reference
5553 (url "https://bitbucket.org/tanaylab/tgstat")
5554 (changeset changeset)))
76b27f42 5555 (file-name (string-append name "-" version "-checkout"))
7941d1ed
RW
5556 (sha256
5557 (base32
5558 "0ilkkyximy77zbncm91kdfqbxf0qyndg16pd3q3p6a3xc9qcmxvn"))))
5559 (build-system r-build-system)
5560 (arguments
5561 `(#:phases
5562 (modify-phases %standard-phases
5563 (add-after 'unpack 'fix-isnan
5564 (lambda _
5565 (substitute* "src/tgstat.h"
5566 (("#define isnan ::isnan")
5567 "#define isnan std::isnan"))
5568 #t)))))
5569 (propagated-inputs
5570 `(("r-rcpp" ,r-rcpp)))
5571 (home-page "https://bitbucket.org/tanaylab/tgstat/")
5572 (synopsis "Tanay's group statistical utilities")
5573 (description
5574 "The goal of tgstat is to provide fast and efficient statistical
5575tools.")
5576 (license license:gpl2))))
1f6f4c40
RW
5577
5578(define-public r-tgconfig
5579 (let ((changeset "1e02c7614713bd0866c46f0c679a058f8c6d627e")
5580 (revision "1"))
5581 (package
5582 (name "r-tgconfig")
5583 (version (string-append "0.0.0.9000-" revision "." (string-take changeset 7)))
5584 (source
5585 (origin
5586 (method hg-fetch)
5587 (uri (hg-reference
5588 (url "https://bitbucket.org/tanaylab/tgconfig")
5589 (changeset changeset)))
4510f976 5590 (file-name (string-append name "-" version "-checkout"))
1f6f4c40
RW
5591 (sha256
5592 (base32
5593 "0xy6c7s7mn1yx191154bwbv1bl424bnvc80syqpl1vdl28ba46rj"))))
5594 (build-system r-build-system)
5595 (propagated-inputs
5596 `(("r-yaml" ,r-yaml)))
5597 (home-page "https://bitbucket.org/tanaylab/tgconfig/")
5598 (synopsis "Infrastructure for managing package parameters")
5599 (description
5600 "The goal of tgconfig is to provide infrastructure for managing package
5601parameters.")
5602 (license license:gpl3))))
e99f045c
KM
5603
5604(define-public r-directlabels
5605 (package
5606 (name "r-directlabels")
b8fc0678 5607 (version "2020.1.31")
e99f045c
KM
5608 (source
5609 (origin
5610 (method url-fetch)
5611 (uri (cran-uri "directlabels" version))
5612 (sha256
5613 (base32
b8fc0678 5614 "08s1gnwp4bn8xahwjaq0f1qzhwh2dvybzhq3z7xyzn8cnyzmis6c"))))
e99f045c
KM
5615 (build-system r-build-system)
5616 (propagated-inputs
5617 `(("r-quadprog" ,r-quadprog)))
5618 (home-page "http://directlabels.r-forge.r-project.org/")
5619 (synopsis "Direct labels for multicolor plots")
5620 (description
5621 "This package provides an extensible framework for automatically placing
5622direct labels onto multicolor plots. Label positions are described using
5623positioning methods that can be re-used across several different plots. There
5624are heuristics for examining @code{trellis} and @code{ggplot} objects and
5625inferring an appropriate positioning method.")
5626 (license license:gpl3)))
5f1bb222
RW
5627
5628(define-public r-catterplots
6ea613ce
RW
5629 (let ((commit "ae17cd5e49ddda4ecfe0eba8a4c21df8c88e72c4")
5630 (revision "3"))
5f1bb222
RW
5631 (package
5632 (name "r-catterplots")
6ea613ce 5633 (version (git-version "0" revision commit))
5f1bb222
RW
5634 (source (origin
5635 (method git-fetch)
5636 (uri (git-reference
5637 (url "https://github.com/Gibbsdavidl/CatterPlots.git")
5638 (commit commit)))
6ea613ce 5639 (file-name (git-file-name name version))
5f1bb222
RW
5640 (sha256
5641 (base32
6ea613ce 5642 "0qa8liylffpxgdg8xcgjar5dsvczqhn3akd4w35113hnyg1m4xyg"))))
5f1bb222
RW
5643 (build-system r-build-system)
5644 (propagated-inputs
5645 `(("r-png" ,r-png)))
5646 (home-page "https://github.com/Gibbsdavidl/CatterPlots")
5647 (synopsis "Scatter plots with cat shaped points")
5648 (description "Did you ever wish you could make scatter plots with cat
5649shaped points? Now you can!")
5650 (license license:asl2.0))))
dbb35813 5651
06c15ee5
OP
5652(define-public r-colorout
5653 (package
5654 (name "r-colorout")
fbde3788 5655 (version "1.2-2")
06c15ee5
OP
5656 (source
5657 (origin
df12af98
TGR
5658 (method git-fetch)
5659 (uri (git-reference
5660 (url "https://github.com/jalvesaq/colorout.git")
5661 (commit (string-append "v" version))))
5662 (file-name (git-file-name name version))
06c15ee5 5663 (sha256
df12af98 5664 (base32 "1rsx69wjpa73c6x2hacvvvbzdzxn7wg06gizf97kasjdlb7azmp3"))))
06c15ee5
OP
5665 (build-system r-build-system)
5666 (home-page "https://github.com/jalvesaq/colorout")
5667 (synopsis "Colorize output in the R REPL")
5668 (description "@code{colorout} is an R package that colorizes R output when
5669running in terminal emulator.
5670
5671R STDOUT is parsed and numbers, negative numbers, dates in the standard
5672format, strings, and R constants are identified and wrapped by special ANSI
5673scape codes that are interpreted by terminal emulators as commands to colorize
5674the output. R STDERR is also parsed to identify the expressions warning and
5675error and their translations to many languages. If these expressions are
5676found, the output is colorized accordingly; otherwise, it is colorized as
5677STDERROR (blue, by default).
5678
5679You can customize the colors according to your taste, guided by the color
5680table made by the command @code{show256Colors()}. You can also set the colors
5681to any arbitrary string. In this case, it is up to you to set valid values.")
5682 (license license:gpl3+)))
5683
61f2587d 5684(define-public python-rpy2
29fe7115
RW
5685 ;; We need to take this changeset instead of the RELEASE_3_0_4 tag, because
5686 ;; it fixes a regression when using ggplot 3.2.0.
5687 (let ((changeset "19868a8")
5688 (revision "1"))
5689 (package
5690 (name "python-rpy2")
5691 (version (git-version "3.0.4" revision changeset))
5692 (source
5693 (origin
5694 (method hg-fetch)
5695 (uri (hg-reference
5696 (url "https://bitbucket.org/rpy2/rpy2")
5697 (changeset changeset)))
5698 (file-name (git-file-name name version))
5699 (sha256
5700 (base32
5701 "1bb0wslcbj3wjvyk3jb9yyzdi6adfqh5vfgcvn22dyzxzbhcs8kk"))))
5702 (build-system python-build-system)
5703 (arguments
5704 '(#:modules ((ice-9 ftw)
5705 (srfi srfi-1)
5706 (srfi srfi-26)
5707 (guix build utils)
5708 (guix build python-build-system))
5709 #:phases
5710 (modify-phases %standard-phases
5711 (replace 'check
5712 (lambda* (#:key outputs inputs #:allow-other-keys)
5713 (let ((cwd (getcwd)))
5714 (setenv "TZ" "UTC")
5715 (setenv "PYTHONPATH"
5716 (string-append cwd "/build/"
5717 (find (cut string-prefix? "lib" <>)
5718 (scandir (string-append cwd "/build")))
5719 ":"
5720 (getenv "PYTHONPATH"))))
5721 (invoke "pytest" "-v" "rpy/tests/"))))))
5722 (propagated-inputs
5723 `(("python-cffi" ,python-cffi)
5724 ("python-six" ,python-six)
5725 ("python-jinja2" ,python-jinja2)
5726 ("python-numpy" ,python-numpy)
5727 ("python-pandas" ,python-pandas)
5728 ("python-pytz" ,python-pytz)
5729 ("python-ipython" ,python-ipython)
5730 ("python-tzlocal" ,python-tzlocal)))
5731 (inputs
5732 `(("readline" ,readline)
5733 ("icu4c" ,icu4c)
5734 ("pcre" ,pcre)
5735 ("r-minimal" ,r-minimal)
5736 ("r-survival" ,r-survival)
5737 ("r-ggplot2" ,r-ggplot2)
5738 ("r-rsqlite" ,r-rsqlite)
5739 ("r-dplyr" ,r-dplyr)
5740 ("r-dbplyr" ,r-dbplyr)
5741 ("python-numpy" ,python-numpy)))
5742 (native-inputs
5743 `(("zlib" ,zlib)
5744 ("python-pytest" ,python-pytest)))
5745 (home-page "https://rpy2.bitbucket.io/")
5746 (synopsis "Python interface to the R language")
5747 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
61f2587d
RW
5748low-level interface to R from Python, a proposed high-level interface,
5749including wrappers to graphical libraries, as well as R-like structures and
5750functions.")
29fe7115
RW
5751 ;; Any of these licenses can be picked for the R interface. The whole
5752 ;; project is released under GPLv2+ according to the license declaration
5753 ;; in "setup.py".
5754 (license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+)))))
61f2587d 5755
dbb35813
RW
5756(define-public java-jdistlib
5757 (package
5758 (name "java-jdistlib")
5759 (version "0.4.5")
5760 (source (origin
5761 (method url-fetch)
5762 (uri (string-append "mirror://sourceforge/jdistlib/jdistlib-"
5763 version "-src.jar"))
5764 (sha256
5765 (base32
5766 "1pkj8aahw9ydr1isbaqrkd05nvq98ik5jwwhf3yf3rky3z869v11"))))
5767 (build-system ant-build-system)
5768 (arguments
5769 `(#:jar-name "jdistlib.jar"
5770 #:jdk ,icedtea-8
5771 #:tests? #f ; no dedicated test directory
5772 #:phases
5773 (modify-phases %standard-phases
5774 (add-after 'unpack 'fix-broken-encoding
5775 (lambda _
5776 (with-fluids ((%default-port-encoding "ISO-8859-1"))
5777 (substitute* "src/jdistlib/Beta.java"
5778 (("Scheff.+-Tukey") "Scheffe-Tukey")))
5779 #t)))))
5780 (propagated-inputs
5781 `(("java-jtransforms" ,java-jtransforms)))
5782 (native-inputs
5783 `(("java-junit" ,java-junit)))
5784 (home-page "http://jdistlib.sourceforge.net/")
5785 (synopsis "Java library of statistical distributions")
5786 (description "JDistlib is the Java Statistical Distribution Library, a
5787Java package that provides routines for various statistical distributions.")
5788 ;; The files that were translated from R code are under GPLv2+; some files
5789 ;; are under the GPLv3, which is a mistake. The author confirmed in an
5790 ;; email that this whole project should be under GPLv2+.
5791 (license license:gpl2+)))
576e74ee
RW
5792
5793(define-public emacs-ess
5794 (package
5795 (name "emacs-ess")
51ac5ce4 5796 (version "18.10.2")
576e74ee 5797 (source (origin
51ac5ce4
THG
5798 (method git-fetch)
5799 (uri (git-reference
5800 (url "https://github.com/emacs-ess/ESS")
5801 (commit (string-append "v" version))))
576e74ee
RW
5802 (sha256
5803 (base32
51ac5ce4
THG
5804 "1yq41l2bicwjrc0b731iic20cpcnz6ppigri1jn621qv2qv22vy3"))
5805 (file-name (git-file-name name version))
576e74ee
RW
5806 (modules '((guix build utils)))
5807 (snippet
5808 '(begin
5809 ;; Stop ESS from trying to bundle an external julia-mode.el.
5810 (substitute* "lisp/Makefile"
51ac5ce4
THG
5811 (("^ess-julia.elc: julia-mode.elc") "")
5812 (("^all: julia-mode.el")
5813 "all:"))
5814 ;; Include *.el files in install target.
5815 (substitute* "lisp/Makefile"
5816 (("\t\\$\\(INSTALL) \\$\\(ELC\\) \\$\\(LISPDIR\\)" elc)
5817 (string-append "\t$(INSTALL) $(ELS) ess-autoloads.el "
5818 "$(LISPDIR)\n" elc)))
5819 ;; Only build docs in info format.
576e74ee 5820 (substitute* "doc/Makefile"
51ac5ce4 5821 (("all : info text")
576e74ee
RW
5822 "all : info")
5823 (("install: install-info install-other-docs")
5824 "install: install-info"))
51ac5ce4
THG
5825 ;; Stop install-info from trying to update the info directory.
5826 (substitute* "doc/Makefile"
5827 ((".*\\$\\(INFODIR\\)/dir.*") ""))
5828 ;; Fix roxygen preview test.
576e74ee 5829 (substitute* "test/ess-r-tests.el"
51ac5ce4
THG
5830 (("Add together two numbers.\n")
5831 "Add together two numbers. ")
5832 (("##' add\\(10, 1\\)") "add(10, 1)"))
576e74ee
RW
5833 #t))))
5834 (build-system gnu-build-system)
5835 (arguments
53e7e3d7 5836 (let ((base-directory "/share/emacs/site-lisp"))
576e74ee 5837 `(#:make-flags (list (string-append "PREFIX=" %output)
51ac5ce4 5838 (string-append "ETCDIR=" %output
576e74ee 5839 ,base-directory "/etc")
51ac5ce4 5840 (string-append "LISPDIR=" %output
576e74ee
RW
5841 ,base-directory))
5842 #:phases
5843 (modify-phases %standard-phases
5844 (delete 'configure)
5845 (add-before 'build 'more-shebang-patching
5846 (lambda* (#:key inputs #:allow-other-keys)
5847 (substitute* "Makeconf"
5848 (("SHELL = /bin/sh")
5849 (string-append "SHELL = " (which "sh"))))
5850 #t))
5851 (replace 'check
5852 (lambda _
5853 (invoke "make" "test")))))))
5854 (inputs
5855 `(("emacs" ,emacs-minimal)
5856 ("r-minimal" ,r-minimal)))
5857 (native-inputs
5858 `(("perl" ,perl)
51ac5ce4 5859 ("r-roxygen2" ,r-roxygen2)
576e74ee
RW
5860 ("texinfo" ,texinfo)))
5861 (propagated-inputs
5862 `(("emacs-julia-mode" ,emacs-julia-mode)))
5863 (home-page "https://ess.r-project.org/")
5864 (synopsis "Emacs mode for statistical analysis programs")
5865 (description "Emacs Speaks Statistics (ESS) is an add-on package for GNU
5866Emacs. It is designed to support editing of scripts and interaction with
5867various statistical analysis programs such as R, Julia, and JAGS.")
5868 (license license:gpl2+)))