[Phylobase-commits] r455 - branches/fm-branch/inst/doc
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Aug 13 19:34:24 CEST 2009
Author: bbolker
Date: 2009-08-13 19:34:23 +0200 (Thu, 13 Aug 2009)
New Revision: 455
Modified:
branches/fm-branch/inst/doc/phylobase.Rnw
Log:
hacks to get vignette running: NEED TO FIX PROPERLY
to reflect changes(?) to constructor behavior when
tip/data don't match
Modified: branches/fm-branch/inst/doc/phylobase.Rnw
===================================================================
--- branches/fm-branch/inst/doc/phylobase.Rnw 2009-08-13 15:21:15 UTC (rev 454)
+++ branches/fm-branch/inst/doc/phylobase.Rnw 2009-08-13 17:34:23 UTC (rev 455)
@@ -179,10 +179,11 @@
g2 <- phylo4d(g1, geospiza_raw$data)
@
-gives
+\textbf{no longer an error: now gives
+ a warning and a tree with missing values etc. FIX ME!}
+
<<geomergeerr1,echo=FALSE>>=
-err1 <- try(g2 <- phylo4d(g1, geospiza_raw$data), silent=TRUE)
-cat(as.character(err1))
+phylo4d(g1, geospiza_raw$data)
@
We have two problems --- the first is that we forgot to lowercase the labels on the data to match the tip labels:
@@ -194,8 +195,10 @@
To deal with the second problem (missing data for \emph{G. olivacea}), we have a few choices. The easiest is to use \code{missing.tip.data="OK"} to allow R to create the new object:
-<<geomerge2>>=
-g2 <- phylo4d(g1, gdata,missing.tip.data="OK")
+\textbf{FIXME: missing.tip.data="OK" no longer used}
+<<geomerge2,keep.source=TRUE>>=
+##g2 <- phylo4d(g1, gdata,missing.tip.data="OK")
+g2 <- phylo4d(g1, gdata)
@
(setting \code{missing.tip.data} to \code{"warn"} would create the new object but print a warning).
More information about the Phylobase-commits
mailing list