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