From b12636e6bb0a22a333b1b99e3cf20f35c58c5c56 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:24:03 +0200 Subject: gnu: Add r-colorspace. * gnu/packages/statistics.scm (r-colorspace): New variable. --- gnu/packages/statistics.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index ac7cb4677e..924c6a5890 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -22,6 +22,7 @@ #:use-module (guix download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system r) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages gcc) @@ -119,3 +120,24 @@ and clustering. It also provides robust support for producing publication-quality data plots. A large amount of 3rd-party packages are available, greatly increasing its breadth and scope.") (license license:gpl3+))) + +(define-public r-colorspace + (package + (name "r-colorspace") + (version "1.2-6") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/colorspace_" + version ".tar.gz")) + (sha256 + (base32 "0y8n4ljwhbdvkysdwgqzcnpv107pb3px1jip3k6svv86p72nacds")))) + (build-system r-build-system) + (home-page "http://cran.r-project.org/web/packages/colorspace") + (synopsis "Color space manipulation") + (description + "This package carries out a mapping between assorted color spaces +including RGB, HSV, HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar +CIELAB. Qualitative, sequential, and diverging color palettes based on HCL +colors are provided.") + (license license:bsd-3))) -- cgit 1.4.1 From 3587effb7a737c4c64796d8ae1b6f73166c36149 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:24:31 +0200 Subject: gnu: Add r-dichromat. * gnu/packages/statistics.scm (r-dichromat): New variable. --- gnu/packages/statistics.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 924c6a5890..0eddbaf7f9 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -141,3 +141,22 @@ including RGB, HSV, HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar CIELAB. Qualitative, sequential, and diverging color palettes based on HCL colors are provided.") (license license:bsd-3))) + +(define-public r-dichromat + (package + (name "r-dichromat") + (version "2.0-0") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/dichromat_" + version ".tar.gz")) + (sha256 + (base32 "1l8db1nk29ccqg3mkbafvfiw0775iq4gapysf88xq2zp6spiw59i")))) + (build-system r-build-system) + (home-page "http://cran.r-project.org/web/packages/dichromat") + (synopsis "Color schemes for dichromats") + (description + "Dichromat collapses red-green or green-blue distinctions to simulate the +effects of different types of color-blindness.") + (license license:gpl2+))) -- cgit 1.4.1 From 177f38c7fee90bb4a5b35ec66fa70791f5a92cc2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:24:52 +0200 Subject: gnu: Add r-digest. * gnu/packages/statistics.scm (r-digest): New variable. --- gnu/packages/statistics.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 0eddbaf7f9..662bb46191 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -160,3 +160,29 @@ colors are provided.") "Dichromat collapses red-green or green-blue distinctions to simulate the effects of different types of color-blindness.") (license license:gpl2+))) + +(define-public r-digest + (package + (name "r-digest") + (version "0.6.8") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/digest_" + version ".tar.gz")) + (sha256 + (base32 "0m9grqv67hhf51lz10whymhw0g0d98466ka694kya5x95hn44qih")))) + (build-system r-build-system) + (home-page "http://dirk.eddelbuettel.com/code/digest.html") + (synopsis "Create cryptographic hash digests of R objects") + (description + "This package contains an implementation of a function 'digest()' for the +creation of hash digests of arbitrary R objects (using the md5, sha-1, +sha-256, crc32, xxhash and murmurhash algorithms) permitting easy comparison +of R language objects, as well as a function 'hmac()' to create hash-based +message authentication code. + +Please note that this package is not meant to be deployed for cryptographic +purposes for which more comprehensive (and widely tested) libraries such as +OpenSSL should be used.") + (license license:gpl2+))) -- cgit 1.4.1 From 112bb3c04f1fe923e31b16748ae001a33bcb39a0 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:25:17 +0200 Subject: gnu: Add r-gtable. * gnu/packages/statistics.scm (r-gtable): New variable. --- gnu/packages/statistics.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 662bb46191..898501040c 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -186,3 +186,22 @@ Please note that this package is not meant to be deployed for cryptographic purposes for which more comprehensive (and widely tested) libraries such as OpenSSL should be used.") (license license:gpl2+))) + +(define-public r-gtable + (package + (name "r-gtable") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/gtable_" + version ".tar.gz")) + (sha256 + (base32 "0k9hfj6r5y238gqh92s3cbdn34biczx3zfh79ix5xq0c5vkai2xh")))) + (build-system r-build-system) + (home-page "https://cran.r-project.org/web/packages/gtable") + (synopsis "R library to arrange grobs in tables") + (description + "Gtable is a collection of tools to make it easier to work with +\"tables\" of grobs.") + (license license:gpl2+))) -- cgit 1.4.1 From b7eee9fc65bf382a1db1bd9d6f1d6f2b92f6c62d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:25:36 +0200 Subject: gnu: Add r-labeling. * gnu/packages/statistics.scm (r-labeling): New variable. --- gnu/packages/statistics.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 898501040c..ecd275e6e2 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -205,3 +205,21 @@ OpenSSL should be used.") "Gtable is a collection of tools to make it easier to work with \"tables\" of grobs.") (license license:gpl2+))) + +(define-public r-labeling + (package + (name "r-labeling") + (version "0.3") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/labeling_" + version ".tar.gz")) + (sha256 + (base32 "13sk7zrrrzry6ky1bp8mmnzcl9jhvkig8j4id9nny7z993mnk00d")))) + (build-system r-build-system) + (home-page "http://cran.r-project.org/web/packages/labeling") + (synopsis "Axis labeling algorithms") + (description "The labeling package provides a range of axis labeling +algorithms.") + (license license:expat))) -- cgit 1.4.1 From d69c4b04fafe0326c3b8185e5ca31bec5b310d3a Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:25:57 +0200 Subject: gnu: Add r-magrittr. * gnu/packages/statistics.scm (r-magrittr): New variable. --- gnu/packages/statistics.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index ecd275e6e2..e8596fbd2a 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -223,3 +223,25 @@ OpenSSL should be used.") (description "The labeling package provides a range of axis labeling algorithms.") (license license:expat))) + +(define-public r-magrittr + (package + (name "r-magrittr") + (version "1.5") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/magrittr_" + version ".tar.gz")) + (sha256 + (base32 "1s1ar6rag8m277qcqmdp02gn4awn9bdj9ax0r8s32i59mm1mki05")))) + (build-system r-build-system) + (home-page "http://cran.r-project.org/web/packages/magrittr/index.html") + (synopsis "A forward-pipe operator for R") + (description + "Magrittr provides a mechanism for chaining commands with a new +forward-pipe operator, %>%. This operator will forward a value, or the result +of an expression, into the next function call/expression. There is flexible +support for the type of right-hand side expressions. For more information, +see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"") + (license license:expat))) -- cgit 1.4.1 From 44373339584f40b7b5ee7e8f9c513278fe914e49 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:26:26 +0200 Subject: gnu: Add r-munsell. * gnu/packages/statistics.scm (r-munsell): New variable. --- gnu/packages/statistics.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index e8596fbd2a..51504f1473 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -245,3 +245,24 @@ of an expression, into the next function call/expression. There is flexible support for the type of right-hand side expressions. For more information, see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"") (license license:expat))) + +(define-public r-munsell + (package + (name "r-munsell") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/munsell_" + version ".tar.gz")) + (sha256 + (base32 "1bi5yi0i80778bbzx2rm4f0glpc34kvh24pwwfhm4v32izsqgrw4")))) + (build-system r-build-system) + (propagated-inputs + `(("r-colorspace" ,r-colorspace))) + (home-page "http://cran.r-project.org/web/packages/munsell") + (synopsis "Munsell colour system") + (description + "The Munsell package contains Functions for exploring and using the +Munsell colour system.") + (license license:expat))) -- cgit 1.4.1 From ea69e2f853f8b6ffb490310920db29de829751fb Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:27:27 +0200 Subject: gnu: Add r-rcpp. * gnu/packages/statistics.scm (r-rcpp): New variable. --- gnu/packages/statistics.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 51504f1473..0da3b82c8e 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -266,3 +266,28 @@ see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"") "The Munsell package contains Functions for exploring and using the Munsell colour system.") (license license:expat))) + +(define-public r-rcpp + (package + (name "r-rcpp") + (version "0.12.0") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/Rcpp_" + version ".tar.gz")) + (sha256 + (base32 "182109z0yc1snqgd833ssl2cix6cbq83bcxmy5344b15ym820y38")))) + (build-system r-build-system) + (home-page "http://www.rcpp.org") + (synopsis "Seamless R and C++ Integration") + (description + "The Rcpp package provides R functions as well as C++ classes which offer +a seamless integration of R and C++. Many R data types and objects can be +mapped back and forth to C++ equivalents which facilitates both writing of new +code as well as easier integration of third-party libraries. Documentation +about Rcpp is provided by several vignettes included in this package, via the +'Rcpp Gallery' site at , the paper by Eddelbuettel +and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer); see +'citation(\"Rcpp\")' for details on these last two.") + (license license:gpl2+))) -- cgit 1.4.1 From 7e10056b6bea8d3c43cff1948073d1e24c63e197 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:27:56 +0200 Subject: gnu: Add r-plyr. * gnu/packages/statistics.scm (r-plyr): New variable. --- gnu/packages/statistics.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 0da3b82c8e..6ba75b7850 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -291,3 +291,26 @@ about Rcpp is provided by several vignettes included in this package, via the and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer); see 'citation(\"Rcpp\")' for details on these last two.") (license license:gpl2+))) + +(define-public r-plyr + (package + (name "r-plyr") + (version "1.8.3") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/plyr_" + version ".tar.gz")) + (sha256 + (base32 "06v4zxawpjz37rp2q2ii5q43g664z9s29j4ydn0cz3crn7lzl6pk")))) + (build-system r-build-system) + (native-inputs `(("r-rcpp" ,r-rcpp))) + (home-page "http://had.co.nz/plyr") + (synopsis "Tools for Splitting, Applying and Combining Data") + (description + "Plyr is a set of tools that solves a common set of problems: you need to +break a big problem down into manageable pieces, operate on each piece and +then put all the pieces back together. For example, you might want to fit a +model to each spatial location or time point in your study, summarise data by +panels or collapse high-dimensional arrays to simpler summary statistics.") + (license license:expat))) -- cgit 1.4.1 From 9a4d8968f0328e3cfb6265325bf096d745a5b51e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:34:38 +0200 Subject: gnu: Add r-proto. * gnu/packages/statistics.scm (r-proto): New variable. --- gnu/packages/statistics.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 6ba75b7850..c4a82d38ea 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -314,3 +314,21 @@ then put all the pieces back together. For example, you might want to fit a model to each spatial location or time point in your study, summarise data by panels or collapse high-dimensional arrays to simpler summary statistics.") (license license:expat))) + +(define-public r-proto + (package + (name "r-proto") + (version "0.3-10") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/proto_" version ".tar.gz")) + (sha256 + (base32 "03mvzi529y6kjcp9bkpk7zlgpcakb3iz73hca6rpjy14pyzl3nfh")))) + (build-system r-build-system) + (home-page "http://r-proto.googlecode.com") + (synopsis "Prototype object-based programming") + (description + "Proto is an object oriented system using object-based, also called +prototype-based, rather than class-based object oriented ideas.") + (license license:gpl2+))) -- cgit 1.4.1 From a45ba1270c382657c76ead6223a7ec1a3ce607c7 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:34:58 +0200 Subject: gnu: Add r-rcolorbrewer. * gnu/packages/statistics.scm (r-rcolorbrewer): New variable. --- gnu/packages/statistics.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index c4a82d38ea..e3ab548406 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -332,3 +332,23 @@ panels or collapse high-dimensional arrays to simpler summary statistics.") "Proto is an object oriented system using object-based, also called prototype-based, rather than class-based object oriented ideas.") (license license:gpl2+))) + +(define-public r-rcolorbrewer + (package + (name "r-rcolorbrewer") + (version "1.1-2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/RColorBrewer_" + version ".tar.gz")) + (sha256 + (base32 "1pfcl8z1pnsssfaaz9dvdckyfnnc6rcq56dhislbf571hhg7isgk")))) + (build-system r-build-system) + (home-page "http://cran.r-project.org/web/packages/RColorBrewer") + (synopsis "ColorBrewer palettes") + (description + "This package provides color schemes for maps (and other graphics) +designed by Cynthia Brewer as described at http://colorbrewer2.org") + ;; Includes code licensed under bsd-4 + (license license:asl2.0))) -- cgit 1.4.1 From 4dca98dc81f895a5ffd446c9b815b3538646e8ac Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:35:19 +0200 Subject: gnu: Add r-stringi. * gnu/packages/statistics.scm (r-stringi): New variable. --- gnu/packages/statistics.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index e3ab548406..6d33c360af 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -352,3 +352,32 @@ prototype-based, rather than class-based object oriented ideas.") designed by Cynthia Brewer as described at http://colorbrewer2.org") ;; Includes code licensed under bsd-4 (license license:asl2.0))) + +(define-public r-stringi + (package + (name "r-stringi") + (version "0.5-5") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cran/src/contrib/stringi_" + version + ".tar.gz")) + (sha256 + (base32 + "183wrrjhpgl1wbnn9lhghyvhz7l2mc64mpcmzplckal7y9j7pmhw")))) + (build-system r-build-system) + (inputs `(("icu4c" ,icu4c))) + (native-inputs `(("pkg-config" ,pkg-config))) + (home-page "http://stringi.rexamine.com/") + (synopsis "Character string processing facilities") + (description + "This package allows for fast, correct, consistent, portable, as well as +convenient character string/text processing in every locale and any native +encoding. Owing to the use of the ICU library, the package provides R users +with platform-independent functions known to Java, Perl, Python, PHP, and Ruby +programmers. Among available features there are: pattern searching + (e.g. via regular expressions), random string generation, string collation, +transliteration, concatenation, date-time formatting and parsing, etc.") + (license license:bsd-3))) -- cgit 1.4.1 From d5cd5c1568f95b6919f325c41fe37859e5abd2b4 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:35:43 +0200 Subject: gnu: Add r-stringr. * gnu/packages/statistics.scm (r-stringr): New variable. --- gnu/packages/statistics.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 6d33c360af..ed550ede82 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -381,3 +381,28 @@ programmers. Among available features there are: pattern searching (e.g. via regular expressions), random string generation, string collation, transliteration, concatenation, date-time formatting and parsing, etc.") (license license:bsd-3))) + +(define-public r-stringr + (package + (name "r-stringr") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/stringr_" + version ".tar.gz")) + (sha256 + (base32 "0jnz6r9yqyf7dschr2fnn1slg4wn6b4ik5q00j4zrh43bfw7s9pq")))) + (build-system r-build-system) + (propagated-inputs + `(("r-magrittr" ,r-magrittr) + ("r-stringi" ,r-stringi))) + (home-page "") + (synopsis "Simple, consistent wrappers for common string operations") + (description + "Stringr is a consistent, simple and easy to use set of wrappers around +the fantastic 'stringi' package. All function and argument names (and +positions) are consistent, all functions deal with \"NA\"'s and zero length +vectors in the same way, and the output from one function is easy to feed into +the input of another.") + (license license:gpl2+))) -- cgit 1.4.1 From 9ca731baf196d41cfbbd07cb85d8fd46b7fa4b40 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:36:03 +0200 Subject: gnu: Add r-reshape2. * gnu/packages/statistics.scm (r-reshape2): New variable. --- gnu/packages/statistics.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index ed550ede82..5b662a1d4e 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -406,3 +406,26 @@ positions) are consistent, all functions deal with \"NA\"'s and zero length vectors in the same way, and the output from one function is easy to feed into the input of another.") (license license:gpl2+))) + +(define-public r-reshape2 + (package + (name "r-reshape2") + (version "1.4.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/reshape2_" + version ".tar.gz")) + (sha256 + (base32 "0hl082dyk3pk07nqprpn5dvnrkqhnf6zjnjig1ijddxhlmsrzm7v")))) + (build-system r-build-system) + (propagated-inputs + `(("r-plyr" ,r-plyr) + ("r-rcpp" ,r-rcpp) + ("r-stringr" ,r-stringr))) + (home-page "https://github.com/hadley/reshape") + (synopsis "Flexibly reshape data: a reboot of the \"reshape\" package") + (description + "Reshape2 is an R library to flexibly restructure and aggregate data +using just two functions: melt and dcast (or acast).") + (license license:expat))) -- cgit 1.4.1 From a11ee478a684e7a18f1a3eb51e3164645129af75 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:36:22 +0200 Subject: gnu: Add r-scales. * gnu/packages/statistics.scm (r-scales): New variable. --- gnu/packages/statistics.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 5b662a1d4e..b10ebdccd4 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -429,3 +429,30 @@ the input of another.") "Reshape2 is an R library to flexibly restructure and aggregate data using just two functions: melt and dcast (or acast).") (license license:expat))) + +(define-public r-scales + (package + (name "r-scales") + (version "0.2.5") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/scales_" + version ".tar.gz")) + (sha256 + (base32 "12xrmn1vh64dl46bq7n7pa427aicb2ifjrby9in3m32nyvir0kac")))) + (build-system r-build-system) + (propagated-inputs + `(("r-dichromat" ,r-dichromat) + ("r-labeling" ,r-labeling) + ("r-munsell" ,r-munsell) + ("r-plyr" ,r-plyr) + ("r-rcolorbrewer" ,r-rcolorbrewer) + ("r-rcpp" ,r-rcpp))) + (home-page "https://github.com/hadley/scales") + (synopsis "Scale functions for visualization") + (description + "This package provides graphical scales that map data to aesthetics, and +provides methods for automatically determining breaks and labels for axes and +legends.") + (license license:expat))) -- cgit 1.4.1 From d11b808f4a456e6b09096742b21d58a317b73b84 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Aug 2015 15:36:40 +0200 Subject: gnu: Add r-ggplot2. * gnu/packages/statistics.scm (r-ggplot2): New variable. --- gnu/packages/statistics.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index b10ebdccd4..b84c48dde9 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -456,3 +456,33 @@ using just two functions: melt and dcast (or acast).") provides methods for automatically determining breaks and labels for axes and legends.") (license license:expat))) + +(define-public r-ggplot2 + (package + (name "r-ggplot2") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cran/src/contrib/ggplot2_" + version ".tar.gz")) + (sha256 + (base32 "0794kjqi3lrxb33lr1mykd58959hlgkhdn259vj8fxrh65mqw920")))) + (build-system r-build-system) + (propagated-inputs + `(("r-digest" ,r-digest) + ("r-gtable" ,r-gtable) + ("r-plyr" ,r-plyr) + ("r-proto" ,r-proto) + ("r-reshape2" ,r-reshape2) + ("r-scales" ,r-scales))) + (home-page "http://ggplot2.org") + (synopsis "An implementation of the grammar of graphics") + (description + "Ggplot2 is an implementation of the grammar of graphics in R. It +combines the advantages of both base and lattice graphics: conditioning and +shared axes are handled automatically, and you can still build up a plot step +by step from multiple data sources. It also implements a sophisticated +multidimensional conditioning system and a consistent interface to map data to +aesthetic attributes.") + (license license:gpl2+))) -- cgit 1.4.1 From 5e9738b7cac42f21e18be7c13c7de15664219dce Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 3 Sep 2015 11:41:07 +0200 Subject: gnu: r: Drop IcedTea from inputs. * gnu/packages/statistics.scm (r)[inputs]: Remove "icedtea6". --- gnu/packages/statistics.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index b84c48dde9..b1cc5cf7ae 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -84,6 +84,16 @@ "--with-system-pcre" "--with-system-tre" "--with-system-xz"))) + ;; R has some support for Java. When the JDK is available at configure + ;; time environment variables pointing to the JDK will be recorded under + ;; $R_HOME/etc and ./tools/getsp.java will be compiled which is used by "R + ;; CMD javareconf". "R CMD javareconf" appears to only be used to update + ;; the recorded environment variables in $R_HOME/etc. Refer to + ;; https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support + ;; for additional information. + + ;; As the JDK is a rather large input with only very limited effects on R, + ;; we decided to drop it. (native-inputs `(("bzip2" ,bzip2) ("perl" ,perl) @@ -97,7 +107,6 @@ ("cairo" ,cairo) ("gfortran" ,gfortran) ("icu4c" ,icu4c) - ("icedtea6" ,icedtea6 "jdk") ("lapack" ,lapack) ("libjpeg" ,libjpeg) ("libpng" ,libpng) -- cgit 1.4.1 From af23b6e946ba74880b063bac5a5200eec17cf7b8 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 3 Sep 2015 11:41:36 +0200 Subject: gnu: r: Install info documentation. * gnu/packages/statistics.scm (r)[arguments]: Add phases "make-info" and "install-info" to build and install info documentation. --- gnu/packages/statistics.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index b1cc5cf7ae..ec705c2c77 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -68,7 +68,11 @@ (add-before 'check 'set-timezone ;; Some tests require the timezone to be set. - (lambda _ (setenv "TZ" "UTC") #t))) + (lambda _ (setenv "TZ" "UTC") #t)) + (add-after 'build 'make-info + (lambda _ (zero? (system* "make" "info")))) + (add-after 'build 'install-info + (lambda _ (zero? (system* "make" "install-info"))))) #:configure-flags '("--with-blas=openblas" "--with-lapack" -- cgit 1.4.1 From 02615bfa2f450d8acfd9d9013d460e30399338d5 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 3 Sep 2015 12:09:47 +0200 Subject: gnu: r: Drop texlive from native-inputs. * gnu/packages/statistics.scm (r)[native-inputs]: Remove "texlive". --- gnu/packages/statistics.scm | 1 - 1 file changed, 1 deletion(-) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index ec705c2c77..7cb61c9eb2 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -102,7 +102,6 @@ `(("bzip2" ,bzip2) ("perl" ,perl) ("pkg-config" ,pkg-config) - ("texlive" ,texlive) ; needed to make vignettes ("texinfo" ,texinfo) ; for building HTML manuals ("which" ,which) ; for tests/Examples/base-Ex.R ("xz" ,xz))) -- cgit 1.4.1 From 718a2bde42c56a93faf182ddeb757b5cc937031e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 6 Sep 2015 10:43:40 +0200 Subject: gnu: r-stringr: Provide valid 'home-page' URL. * gnu/packages/statistics.scm (r-stringr)[home-page]: Set to valid URL. --- gnu/packages/statistics.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/statistics.scm') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 7cb61c9eb2..29cd34a4f3 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -409,7 +409,7 @@ transliteration, concatenation, date-time formatting and parsing, etc.") (propagated-inputs `(("r-magrittr" ,r-magrittr) ("r-stringi" ,r-stringi))) - (home-page "") + (home-page "https://github.com/hadley/stringr") (synopsis "Simple, consistent wrappers for common string operations") (description "Stringr is a consistent, simple and easy to use set of wrappers around -- cgit 1.4.1