[Vegan-commits] r2067 - in pkg/vegan: R inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Feb 6 17:48:06 CET 2012


Author: jarioksa
Date: 2012-02-06 17:48:05 +0100 (Mon, 06 Feb 2012)
New Revision: 2067

Modified:
   pkg/vegan/R/adonis.R
   pkg/vegan/inst/ChangeLog
Log:
mc.cores= was missing in mclapply() in adonis

Modified: pkg/vegan/R/adonis.R
===================================================================
--- pkg/vegan/R/adonis.R	2012-02-06 16:40:47 UTC (rev 2066)
+++ pkg/vegan/R/adonis.R	2012-02-06 16:48:05 UTC (rev 2067)
@@ -125,7 +125,8 @@
                 sapply(1:nterms, function(i)
                        unlist(mclapply(1:permutations, function(j)
                                        f.test(tH.s[[i]], G[p[,j], p[,j]],
-                                              df.Exp[i], df.Res, tIH.snterm))))
+                                              df.Exp[i], df.Res, tIH.snterm),
+                                       mc.cores = parallel)))
         } else {
             f.perms <-
                 sapply(1:nterms, function(i)

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2012-02-06 16:40:47 UTC (rev 2066)
+++ pkg/vegan/inst/ChangeLog	2012-02-06 16:48:05 UTC (rev 2067)
@@ -8,6 +8,9 @@
 	not need clusterEvalQ(parallel, library(vegan)) for socket
 	clusters. 
 
+	* adonis: added missing 'mc.cores=' for multicore parallel
+	processing. 
+
 	* bioenv: implemented parallel processing.
 
 	* nesteddisc: new argument 'niter' to give the number of



More information about the Vegan-commits mailing list