summaryrefslogtreecommitdiff
path: root/gnu/packages/statistics.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/statistics.scm')
-rw-r--r--gnu/packages/statistics.scm129
1 files changed, 65 insertions, 64 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 2d4dbe4a31e..6196d6bd69a 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -206,7 +206,7 @@ This package also provides @command{xls2csv} to export Excel files to CSV.")
206(define r-with-tests 206(define r-with-tests
207 (package 207 (package
208 (name "r-with-tests") 208 (name "r-with-tests")
209 (version "4.2.1") 209 (version "4.2.2")
210 (source (origin 210 (source (origin
211 (method url-fetch) 211 (method url-fetch)
212 (uri (string-append "mirror://cran/src/base/R-" 212 (uri (string-append "mirror://cran/src/base/R-"
@@ -214,7 +214,7 @@ This package also provides @command{xls2csv} to export Excel files to CSV.")
214 version ".tar.gz")) 214 version ".tar.gz"))
215 (sha256 215 (sha256
216 (base32 216 (base32
217 "0gv4di1x835i4nsy21vqw66c0blmmmvyjkixc5a8x117dm4dnljd")))) 217 "1x9xjl6fyzs8r72zigirp905ki50wzyw9rxf7iqsbbsixi12pxhg"))))
218 (build-system gnu-build-system) 218 (build-system gnu-build-system)
219 (arguments 219 (arguments
220 `(#:disallowed-references (,tzdata-for-tests) 220 `(#:disallowed-references (,tzdata-for-tests)
@@ -310,7 +310,11 @@ as.POSIXct(if (\"\" != Sys.getenv(\"SOURCE_DATE_EPOCH\")) {\
310 (("\\(2008\\)\n") "(2008) ") 310 (("\\(2008\\)\n") "(2008) ")
311 ((" ``Software") "``Software") 311 ((" ``Software") "``Software")
312 (("Data Analysis:.") "Data Analysis:\n") 312 (("Data Analysis:.") "Data Analysis:\n")
313 (("Programming with R") " Programming with R")))) 313 (("Programming with R") " Programming with R"))
314 (substitute* "src/library/tools/DESCRIPTION.in"
315 (("codetools, methods, xml2, curl, commonmark, knitr, xfun, mathjaxr")
316 "codetools, methods, xml2, curl, commonmark,
317 knitr, xfun, mathjaxr"))))
314 (add-before 'build 'set-locales 318 (add-before 'build 'set-locales
315 (lambda _ 319 (lambda _
316 (setlocale LC_ALL "C") 320 (setlocale LC_ALL "C")
@@ -366,48 +370,48 @@ as.POSIXct(if (\"\" != Sys.getenv(\"SOURCE_DATE_EPOCH\")) {\
366 ;; As the JDK is a rather large input with only very limited effects on R, 370 ;; As the JDK is a rather large input with only very limited effects on R,
367 ;; we decided to drop it. 371 ;; we decided to drop it.
368 (native-inputs 372 (native-inputs
369 `(("bzip2" ,bzip2) 373 (list bzip2
370 ("perl" ,perl) 374 perl
371 ("pkg-config" ,pkg-config) 375 pkg-config
372 ("texinfo" ,texinfo) ; for building HTML manuals 376 texinfo ; for building HTML manuals
373 ("texlive" ,(texlive-updmap.cfg (list texlive-ae 377 (texlive-updmap.cfg (list texlive-ae
374 texlive-inconsolata 378 texlive-inconsolata
375 texlive-fonts-ec 379 texlive-fonts-ec
376 texlive-grfext 380 texlive-grfext
377 texlive-amsfonts 381 texlive-amsfonts
378 texlive-latex-base 382 texlive-latex-base
379 texlive-latex-fancyvrb 383 texlive-latex-fancyvrb
380 texlive-latex-graphics 384 texlive-latex-graphics
381 texlive-hyperref 385 texlive-hyperref
382 texlive-oberdiek 386 texlive-oberdiek
383 texlive-latex-tools 387 texlive-latex-tools
384 texlive-latex-upquote 388 texlive-latex-upquote
385 texlive-url 389 texlive-url
386 texlive-latex-xkeyval))) 390 texlive-latex-xkeyval))
387 ("tzdata" ,tzdata-for-tests) 391 tzdata-for-tests
388 ("xz" ,xz))) 392 xz))
389 (inputs 393 (inputs
390 `(;; We need not only cairo here, but pango to ensure that tests for the 394 (list coreutils
391 ;; "cairo" bitmapType plotting backend succeed. 395 curl
392 ("pango" ,pango) 396 openblas
393 ("coreutils" ,coreutils) 397 gfortran
394 ("curl" ,curl) 398 icu4c
395 ("openblas" ,openblas) 399 libjpeg-turbo
396 ("gfortran" ,gfortran) 400 libpng
397 ("icu4c" ,icu4c) 401 libtiff
398 ("libjpeg" ,libjpeg-turbo) 402 libxt
399 ("libpng" ,libpng) 403 ;; We need not only cairo here, but pango to ensure that tests for the
400 ("libtiff" ,libtiff) 404 ;; "cairo" bitmapType plotting backend succeed.
401 ("libxt" ,libxt) 405 pango
402 ("pcre2" ,pcre2) 406 pcre2
403 ("readline" ,readline) 407 readline
404 ;; This avoids a reference to the ungraftable static bash. R uses the 408 tcl
405 ;; detected shell for the "system" procedure. 409 tk
406 ("bash" ,bash-minimal) 410 which
407 ("tcl" ,tcl) 411 zlib
408 ("tk" ,tk) 412 ;; This avoids a reference to the ungraftable static bash. R uses the
409 ("which" ,which) 413 ;; detected shell for the "system" procedure.
410 ("zlib" ,zlib))) 414 bash-minimal))
411 (native-search-paths 415 (native-search-paths
412 (list (search-path-specification 416 (list (search-path-specification
413 (variable "R_LIBS_SITE") 417 (variable "R_LIBS_SITE")
@@ -448,29 +452,23 @@ available, greatly increasing its breadth and scope.")
448 (substitute* (string-append out "/lib/R/bin/libtool") 452 (substitute* (string-append out "/lib/R/bin/libtool")
449 (((string-append 453 (((string-append
450 "(-L)?(" 454 "(-L)?("
451 (assoc-ref inputs "bzip2")
452 "|"
453 (assoc-ref inputs "perl")
454 "|"
455 (assoc-ref inputs "texlive")
456 "|"
457 (assoc-ref inputs "texlive-bin")
458 "|"
459 (assoc-ref inputs "texinfo")
460 "|"
461 (assoc-ref inputs "xz")
462 "|"
463 (format #false 455 (format #false
464 "/gnu/store/[^-]+-(~{~a~^|~})-[^/]+" 456 "~a/[^-]+-(~{~a~^|~})-[^/]+"
465 '("glibc-utf8-locales" 457 (%store-directory)
458 '("bzip2"
459 "file"
460 "glibc-utf8-locales"
461 "graphite2"
466 "libselinux" 462 "libselinux"
467 "libsepol" 463 "libsepol"
468 "file" 464 "perl"
465 "texinfo"
469 "texlive-bin" 466 "texlive-bin"
470 "util-macros" 467 "util-macros"
471 "graphite2")) 468 "xz"))
472 "|" 469 "|"
473 "/gnu/store/[^-]+-glibc-[^-]+-static" 470 (format #false "~a/[^-]+-glibc-[^-]+-static"
471 (%store-directory))
474 ")/lib")) "")))))))))))) 472 ")/lib")) ""))))))))))))
475 473
476(define-public rmath-standalone 474(define-public rmath-standalone
@@ -1236,25 +1234,28 @@ using just two functions: melt and dcast (or acast).")
1236(define-public r-ggplot2 1234(define-public r-ggplot2
1237 (package 1235 (package
1238 (name "r-ggplot2") 1236 (name "r-ggplot2")
1239 (version "3.3.6") 1237 (version "3.4.0")
1240 (source 1238 (source
1241 (origin 1239 (origin
1242 (method url-fetch) 1240 (method url-fetch)
1243 (uri (cran-uri "ggplot2" version)) 1241 (uri (cran-uri "ggplot2" version))
1244 (sha256 1242 (sha256
1245 (base32 "1aa377jdfajj8ld2fh159y8havlibsr4pjisf6mkzk8g5awlxjxz")))) 1243 (base32 "0gj7n2y8msnmhk3x4r481biknvn2dqhahwazfqwr8f3lz599wbx8"))))
1246 (build-system r-build-system) 1244 (build-system r-build-system)
1247 (propagated-inputs 1245 (propagated-inputs
1248 (list r-digest 1246 (list r-cli
1247 r-digest
1249 r-glue 1248 r-glue
1250 r-gtable 1249 r-gtable
1251 r-isoband 1250 r-isoband
1251 r-lifecycle
1252 r-mass 1252 r-mass
1253 r-mgcv 1253 r-mgcv
1254 r-tibble 1254 r-tibble
1255 r-rlang 1255 r-rlang
1256 r-scales 1256 r-scales
1257 r-svglite ; Needed for 'ggsave' 1257 r-svglite ; Needed for 'ggsave'
1258 r-vctrs
1258 r-withr)) 1259 r-withr))
1259 (native-inputs 1260 (native-inputs
1260 (list r-knitr)) 1261 (list r-knitr))