* [PATCH] Add r-doparallel.
@ 2016-03-17 16:22 Ricardo Wurmus
2016-03-18 18:44 ` Leo Famulari
0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2016-03-17 16:22 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 50 bytes --]
Attached are four patches for useful R packages.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-r-iterators.patch --]
[-- Type: text/x-patch, Size: 1422 bytes --]
From ed52995e0723a9828f21e741f92439934470c4ac Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Thu, 17 Mar 2016 17:13:59 +0100
Subject: [PATCH 1/4] gnu: Add r-iterators.
* gnu/packages/statistics.scm (r-iterators): New variable.
---
gnu/packages/statistics.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 3d44533..217f365 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1679,6 +1679,26 @@ matrices. It includes Cholesky decomposition and backsolving as well as
standard R subsetting and Kronecker products.")
(license license:gpl2+)))
+(define-public r-iterators
+ (package
+ (name "r-iterators")
+ (version "1.0.8")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "iterators" version))
+ (sha256
+ (base32
+ "1f057pabs7ss9h1n244can26qsi5n2k3salrdk0b0vkphlrs4kmf"))))
+ (build-system r-build-system)
+ (home-page "http://cran.r-project.org/web/packages/iterators")
+ (synopsis "Iterator construct for R")
+ (description
+ "This package provides support for iterators, which allow a programmer to
+traverse through all the elements of a vector, list, or other collection of
+data.")
+ (license license:asl2.0)))
+
(define-public r-dt
(package
(name "r-dt")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-r-codetools.patch --]
[-- Type: text/x-patch, Size: 1331 bytes --]
From eb559b54738d68a8dba5dd6b7089e4a20b6b8026 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Thu, 17 Mar 2016 17:14:22 +0100
Subject: [PATCH 2/4] gnu: Add r-codetools.
* gnu/packages/statistics.scm (r-codetools): New variable.
---
gnu/packages/statistics.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 217f365..97481b8 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1699,6 +1699,24 @@ traverse through all the elements of a vector, list, or other collection of
data.")
(license license:asl2.0)))
+(define-public r-codetools
+ (package
+ (name "r-codetools")
+ (version "0.2-14")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "codetools" version))
+ (sha256
+ (base32
+ "0y9r4m2b8xgavr89sc179knzwpz54xljbc1dinpq2q07i4xn0397"))))
+ (build-system r-build-system)
+ (home-page "http://cran.r-project.org/web/packages/codetools")
+ (synopsis "Code analysis tools for R")
+ (description "This package provides code analysis tools for R to check R
+code for possible problems.")
+ (license (list license:gpl2+ license:gpl3+))))
+
(define-public r-dt
(package
(name "r-dt")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-Add-r-foreach.patch --]
[-- Type: text/x-patch, Size: 1833 bytes --]
From b752b7f2457d23a96d6556d9e24debb03219bc20 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Thu, 17 Mar 2016 17:14:45 +0100
Subject: [PATCH 3/4] gnu: Add r-foreach.
* gnu/packages/statistics.scm (r-foreach): New variable.
---
gnu/packages/statistics.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 97481b8..8116f50 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1717,6 +1717,34 @@ data.")
code for possible problems.")
(license (list license:gpl2+ license:gpl3+))))
+(define-public r-foreach
+ (package
+ (name "r-foreach")
+ (version "1.4.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "foreach" version))
+ (sha256
+ (base32
+ "10aqsd3rxz03s1qdb6gsb1cj89mj4vmh491zfpin4skj1xvkzw0y"))))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-codetools" ,r-codetools)
+ ("r-iterators" ,r-iterators)))
+ (home-page "http://cran.r-project.org/web/packages/foreach")
+ (synopsis "Foreach looping construct for R")
+ (description
+ "This package provides support for the @code{foreach} looping construct.
+@code{foreach} is an idiom that allows for iterating over elements in a
+collection, without the use of an explicit loop counter. This package in
+particular is intended to be used for its return value, rather than for its
+side effects. In that sense, it is similar to the standard @code{lapply}
+function, but doesn't require the evaluation of a function. Using
+@code{foreach} without side effects also facilitates executing the loop in
+parallel.")
+ (license license:asl2.0)))
+
(define-public r-dt
(package
(name "r-dt")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #5: 0004-gnu-Add-r-doparallel.patch --]
[-- Type: text/x-patch, Size: 1510 bytes --]
From c386783cdba3798c881e0c8ff4b94baa785208f1 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Thu, 17 Mar 2016 17:15:02 +0100
Subject: [PATCH 4/4] gnu: Add r-doparallel.
* gnu/packages/statistics.scm (r-doparallel): New variable.
---
gnu/packages/statistics.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 8116f50..15c6823 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1745,6 +1745,29 @@ function, but doesn't require the evaluation of a function. Using
parallel.")
(license license:asl2.0)))
+(define-public r-doparallel
+ (package
+ (name "r-doparallel")
+ (version "1.0.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "doParallel" version))
+ (sha256
+ (base32
+ "1mddx25l25pw9d0csnx2q203dbg5hbrhkr1f08kw0p02a1lln0kh"))))
+ (properties `((upstream-name . "doParallel")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-foreach" ,r-foreach)
+ ("r-iterators" ,r-iterators)))
+ (home-page "http://cran.r-project.org/web/packages/doParallel")
+ (synopsis "Foreach parallel adaptor for the 'parallel' package")
+ (description
+ "This package provides a parallel backend for the @code{%dopar%} function
+using the parallel package.")
+ (license license:gpl2+)))
+
(define-public r-dt
(package
(name "r-dt")
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add r-doparallel.
2016-03-17 16:22 [PATCH] Add r-doparallel Ricardo Wurmus
@ 2016-03-18 18:44 ` Leo Famulari
0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2016-03-18 18:44 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
On Thu, Mar 17, 2016 at 05:22:04PM +0100, Ricardo Wurmus wrote:
> Attached are four patches for useful R packages.
LGTM!
>
> From ed52995e0723a9828f21e741f92439934470c4ac Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Thu, 17 Mar 2016 17:13:59 +0100
> Subject: [PATCH 1/4] gnu: Add r-iterators.
>
> * gnu/packages/statistics.scm (r-iterators): New variable.
> ---
> gnu/packages/statistics.scm | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
> index 3d44533..217f365 100644
> --- a/gnu/packages/statistics.scm
> +++ b/gnu/packages/statistics.scm
> @@ -1679,6 +1679,26 @@ matrices. It includes Cholesky decomposition and backsolving as well as
> standard R subsetting and Kronecker products.")
> (license license:gpl2+)))
>
> +(define-public r-iterators
> + (package
> + (name "r-iterators")
> + (version "1.0.8")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (cran-uri "iterators" version))
> + (sha256
> + (base32
> + "1f057pabs7ss9h1n244can26qsi5n2k3salrdk0b0vkphlrs4kmf"))))
> + (build-system r-build-system)
> + (home-page "http://cran.r-project.org/web/packages/iterators")
> + (synopsis "Iterator construct for R")
> + (description
> + "This package provides support for iterators, which allow a programmer to
> +traverse through all the elements of a vector, list, or other collection of
> +data.")
> + (license license:asl2.0)))
> +
> (define-public r-dt
> (package
> (name "r-dt")
> --
> 2.1.0
>
> From eb559b54738d68a8dba5dd6b7089e4a20b6b8026 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Thu, 17 Mar 2016 17:14:22 +0100
> Subject: [PATCH 2/4] gnu: Add r-codetools.
>
> * gnu/packages/statistics.scm (r-codetools): New variable.
> ---
> gnu/packages/statistics.scm | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
> index 217f365..97481b8 100644
> --- a/gnu/packages/statistics.scm
> +++ b/gnu/packages/statistics.scm
> @@ -1699,6 +1699,24 @@ traverse through all the elements of a vector, list, or other collection of
> data.")
> (license license:asl2.0)))
>
> +(define-public r-codetools
> + (package
> + (name "r-codetools")
> + (version "0.2-14")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (cran-uri "codetools" version))
> + (sha256
> + (base32
> + "0y9r4m2b8xgavr89sc179knzwpz54xljbc1dinpq2q07i4xn0397"))))
> + (build-system r-build-system)
> + (home-page "http://cran.r-project.org/web/packages/codetools")
> + (synopsis "Code analysis tools for R")
> + (description "This package provides code analysis tools for R to check R
> +code for possible problems.")
> + (license (list license:gpl2+ license:gpl3+))))
> +
> (define-public r-dt
> (package
> (name "r-dt")
> --
> 2.1.0
>
> From b752b7f2457d23a96d6556d9e24debb03219bc20 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Thu, 17 Mar 2016 17:14:45 +0100
> Subject: [PATCH 3/4] gnu: Add r-foreach.
>
> * gnu/packages/statistics.scm (r-foreach): New variable.
> ---
> gnu/packages/statistics.scm | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
> index 97481b8..8116f50 100644
> --- a/gnu/packages/statistics.scm
> +++ b/gnu/packages/statistics.scm
> @@ -1717,6 +1717,34 @@ data.")
> code for possible problems.")
> (license (list license:gpl2+ license:gpl3+))))
>
> +(define-public r-foreach
> + (package
> + (name "r-foreach")
> + (version "1.4.3")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (cran-uri "foreach" version))
> + (sha256
> + (base32
> + "10aqsd3rxz03s1qdb6gsb1cj89mj4vmh491zfpin4skj1xvkzw0y"))))
> + (build-system r-build-system)
> + (propagated-inputs
> + `(("r-codetools" ,r-codetools)
> + ("r-iterators" ,r-iterators)))
> + (home-page "http://cran.r-project.org/web/packages/foreach")
> + (synopsis "Foreach looping construct for R")
> + (description
> + "This package provides support for the @code{foreach} looping construct.
> +@code{foreach} is an idiom that allows for iterating over elements in a
> +collection, without the use of an explicit loop counter. This package in
> +particular is intended to be used for its return value, rather than for its
> +side effects. In that sense, it is similar to the standard @code{lapply}
> +function, but doesn't require the evaluation of a function. Using
> +@code{foreach} without side effects also facilitates executing the loop in
> +parallel.")
> + (license license:asl2.0)))
> +
> (define-public r-dt
> (package
> (name "r-dt")
> --
> 2.1.0
>
> From c386783cdba3798c881e0c8ff4b94baa785208f1 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Thu, 17 Mar 2016 17:15:02 +0100
> Subject: [PATCH 4/4] gnu: Add r-doparallel.
>
> * gnu/packages/statistics.scm (r-doparallel): New variable.
> ---
> gnu/packages/statistics.scm | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
> index 8116f50..15c6823 100644
> --- a/gnu/packages/statistics.scm
> +++ b/gnu/packages/statistics.scm
> @@ -1745,6 +1745,29 @@ function, but doesn't require the evaluation of a function. Using
> parallel.")
> (license license:asl2.0)))
>
> +(define-public r-doparallel
> + (package
> + (name "r-doparallel")
> + (version "1.0.10")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (cran-uri "doParallel" version))
> + (sha256
> + (base32
> + "1mddx25l25pw9d0csnx2q203dbg5hbrhkr1f08kw0p02a1lln0kh"))))
> + (properties `((upstream-name . "doParallel")))
> + (build-system r-build-system)
> + (propagated-inputs
> + `(("r-foreach" ,r-foreach)
> + ("r-iterators" ,r-iterators)))
> + (home-page "http://cran.r-project.org/web/packages/doParallel")
> + (synopsis "Foreach parallel adaptor for the 'parallel' package")
> + (description
> + "This package provides a parallel backend for the @code{%dopar%} function
> +using the parallel package.")
> + (license license:gpl2+)))
> +
> (define-public r-dt
> (package
> (name "r-dt")
> --
> 2.1.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-18 18:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17 16:22 [PATCH] Add r-doparallel Ricardo Wurmus
2016-03-18 18:44 ` Leo Famulari
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.