diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2020-03-01 01:03:30 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2020-03-01 01:03:30 +0000 |
commit | c0318d8c50f96a416c7e20134268f661293fea2e (patch) | |
tree | 70aa1e2b9664d3066f1789232e3d886823a52b2e | |
parent | 68277e50fbbbc639ed27b3315001a45e121477c5 (diff) |
automatic import of R-CRAN-multiApply
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-multiApply.spec | 65 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 67 insertions, 0 deletions
@@ -0,0 +1 @@ +/multiApply_2.1.1.tar.gz diff --git a/R-CRAN-multiApply.spec b/R-CRAN-multiApply.spec new file mode 100644 index 0000000..eec977e --- /dev/null +++ b/R-CRAN-multiApply.spec @@ -0,0 +1,65 @@ +%global packname multiApply +%global packver 2.1.1 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 2.1.1 +Release: 1%{?dist} +Summary: Apply Functions to Multiple Multidimensional Arrays or Vectors + +License: LGPL-3 +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel >= 3.2.0 +Requires: R-core >= 3.2.0 +BuildArch: noarch +BuildRequires: R-CRAN-doParallel +BuildRequires: R-CRAN-foreach +BuildRequires: R-CRAN-plyr +Requires: R-CRAN-doParallel +Requires: R-CRAN-foreach +Requires: R-CRAN-plyr + +%description +The base apply function and its variants, as well as the related functions +in the 'plyr' package, typically apply user-defined functions to a single +argument (or a list of vectorized arguments in the case of mapply). The +'multiApply' package extends this paradigm with its only function, Apply, +which efficiently applies functions taking one or a list of multiple +unidimensional or multidimensional arrays (or combinations thereof) as +input. The input arrays can have different numbers of dimensions as well +as different dimension lengths, and the applied function can return one or +a list of unidimensional or multidimensional arrays as output. This saves +development time by preventing the R user from writing often error-prone +and memory-inefficient loops dealing with multiple complex arrays. Also, a +remarkable feature of Apply is the transparent use of multi-core through +its parameter 'ncores'. In contrast to the base apply function, this +package suggests the use of 'target dimensions' as opposite to the +'margins' for specifying the dimensions relevant to the function to be +applied. + +%prep +%setup -q -c -n %{packname} + + +%build + +%install + +mkdir -p %{buildroot}%{rlibdir} +%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} + +test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) +rm -f %{buildroot}%{rlibdir}/R.css + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/help +%{rlibdir}/%{packname}/DESCRIPTION +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/INDEX @@ -0,0 +1 @@ +3f6985ddc350dd45c9ca3a0022b54507 multiApply_2.1.1.tar.gz |