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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Oct 4 10:29:28 CEST 2011


Author: jarioksa
Date: 2011-10-04 10:29:27 +0200 (Tue, 04 Oct 2011)
New Revision: 1928

Modified:
   pkg/vegan/R/permutest.cca.R
   pkg/vegan/inst/ChangeLog
Log:
update() of permutest.cca result failed, because 'permutest' was not exported from NAMESPACE

Modified: pkg/vegan/R/permutest.cca.R
===================================================================
--- pkg/vegan/R/permutest.cca.R	2011-10-03 17:30:04 UTC (rev 1927)
+++ pkg/vegan/R/permutest.cca.R	2011-10-04 08:29:27 UTC (rev 1928)
@@ -101,7 +101,9 @@
     ## numerical inaccuracy
     F.0 <- round(F.0, 12)
     F.perm <- round(F.perm, 12)
-    sol <- list(call = match.call(), testcall = x$call, model = model,
+    Call <- match.call()
+    Call[[1]] <- as.name("permutest")
+    sol <- list(call = Call, testcall = x$call, model = model,
                 F.0 = F.0, F.perm = F.perm,  chi = c(Chi.z, Chi.xz),
                 num = num, den = den, df = c(q, r), nperm = permutations,
                 method = x$method, first = first,  Random.seed = seed)

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2011-10-03 17:30:04 UTC (rev 1927)
+++ pkg/vegan/inst/ChangeLog	2011-10-04 08:29:27 UTC (rev 1928)
@@ -4,6 +4,11 @@
 
 Version 2.1-2 (opened September 29, 20119
 
+	* permutest.cca could not be update()d, because "permutest.cca"
+	was not exported from NAMESPACE -- only "permutest" was
+	exported. Another buglet (and this calls for checking other 'call'
+	items that return non-exported calls).
+
 	* metaMDS did not reset 'tries' when the analysis was started from
 	'previous.best' of a different model (except when no. of dims 'k'
 	changed). I think this was a bug(let). Fixed in metaMDSiter.R.



More information about the Vegan-commits mailing list