Running examples in 'treeplyr-Ex.R' failed
The error most likely occurred in:

> ### Name: group_by_.treedata
> ### Title: Function for grouping an object of class 'treedata'
> ### Aliases: group_by_.treedata group_by.treedata ungroup.grouped_treedata
> 
> ### ** Examples
> 
> data(anolis)
> td <- make.treedata(anolis$phy, anolis$dat)
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
Warning in type.convert.default(apply(data[, x, drop = FALSE], 1, as.character)) :
  'as.is' should be specified by the caller; using TRUE
> tdGrouped <- group_by(td, ecomorph)
> summarize(tdGrouped, ntips = length(phy$tip.label), 
+    totalBL = sum(phy$edge.length), meanSVL = mean(SVL), sdSVL = sd(SVL))
Warning in group_index %in% as.numeric(x) : NAs introduced by coercion
Warning in drop.tip(.data$phy, which(!(group_index %in% as.numeric(x)))) :
  drop all tips of the tree: returning NULL
Warning in group_index %in% as.numeric(x) : NAs introduced by coercion
Warning in drop.tip(.data$phy, which(!(group_index %in% as.numeric(x)))) :
  drop all tips of the tree: returning NULL
Warning in group_index %in% as.numeric(x) : NAs introduced by coercion
Warning in drop.tip(.data$phy, which(!(group_index %in% as.numeric(x)))) :
  drop all tips of the tree: returning NULL
Warning in group_index %in% as.numeric(x) : NAs introduced by coercion
Warning in drop.tip(.data$phy, which(!(group_index %in% as.numeric(x)))) :
  drop all tips of the tree: returning NULL
Warning in group_index %in% as.numeric(x) : NAs introduced by coercion
Warning in drop.tip(.data$phy, which(!(group_index %in% as.numeric(x)))) :
  drop all tips of the tree: returning NULL
Warning in group_index %in% as.numeric(x) : NAs introduced by coercion
Warning in drop.tip(.data$phy, which(!(group_index %in% as.numeric(x)))) :
  drop all tips of the tree: returning NULL
Warning in group_index %in% as.numeric(x) : NAs introduced by coercion
Warning in drop.tip(.data$phy, which(!(group_index %in% as.numeric(x)))) :
  drop all tips of the tree: returning NULL
Error in make.treedata(x, dat) : tree must be of class 'phylo'
Calls: summarize ... summarise.grouped_treedata -> lapply -> FUN -> make.treedata
Execution halted