Skip to content

Commit

Permalink
unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Nov 29, 2011
1 parent 0014702 commit 52c2642
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
9 changes: 5 additions & 4 deletions NAMESPACE
@@ -1,4 +1,9 @@
S3method(bootstrap,multiOU)
S3method(simulate,multiOU)
S3method(summary,multiOU)
S3method(update,multiOU)
export(bootstrap)
export(convert)
export(evaluate_likelihood)
export(format_data)
export(mrcaOUCH)
Expand All @@ -7,8 +12,4 @@ export(paintBranches)
export(tip_plot)
import(geiger)
import(ouch)
S3method(bootstrap,multiOU)
S3method(simulate,multiOU)
S3method(summary,multiOU)
S3method(update,multiOU)
useDynLib(wrightscape)
3 changes: 2 additions & 1 deletion R/treeformats.R
Expand Up @@ -3,7 +3,8 @@
#' toggles between ouch and ape format trees
#' @param ot a phylogenetic tree of class "phylo" or "ouchtree"
#' @param regimes optional list of regimes for an ouchtree
#' @param the
#' @return a phylogenetic tree in the alternative format
#' @export
convert <- function(ot, regimes=NULL){
if(is(ot, "ouchtree")){

Expand Down
6 changes: 2 additions & 4 deletions demo/parrotfish_data.R
Expand Up @@ -4,10 +4,8 @@ require(phytools)
require(geiger)

# This data has not been released
path = "labrids/"
labrid_tree <- read.nexus("labrid_tree.nex")
diet_data <- read.csv("labriddata_parrotfish.csv")
#fin_data <-read.csv(paste(path,"labrid.csv", sep=""))
labrid_tree <- read.nexus("../data/labrid_tree.nex")
diet_data <- read.csv("../data/labriddata_parrotfish.csv")

corrected_data <- diet_data
# Use the simple names from Price et al 2010
Expand Down
5 changes: 3 additions & 2 deletions man/convert.Rd
Expand Up @@ -9,8 +9,9 @@
"ouchtree"}

\item{regimes}{optional list of regimes for an ouchtree}

\item{the}{}
}
\value{
a phylogenetic tree in the alternative format
}
\description{
toggles between ouch and ape format trees
Expand Down
3 changes: 2 additions & 1 deletion man/multiOU_lik_lca.Rd
Expand Up @@ -6,7 +6,8 @@
sigma = NULL, theta = NULL, Xo = NULL, lca)
}
\arguments{
\item{data}{- ouch-style data}
\item{data}{- ouch-style data -- a numeric, in the same
order as nodes given in "tree"}

\item{tree}{- ouch-tree}

Expand Down

0 comments on commit 52c2642

Please sign in to comment.