library(diversitree)
library(arbutus)
data(finch)
phy <- finch$phy
states <- finch$data[,"wingL"]
lik <- make.bm(phy, states)
samples.bm <- mcmc(lik, x.init=1, w=1, nsteps=1000, print.every=0)
m <- make_unit_tree(samples.bm, sample=10)
this seems to work fine. however in the file /tests/test-unit-tree.R under the heading "Unit tree construction from BM/diversitree/MCMC with SE works", there is something like this
which fails because the parameter names are not being returned correctly and make_unit_tree(fit.bm) cannot parse the fit.bm object. did you change how diversitree returned parameters since you wrote the test. i don't think this is anything I did when I changed the function names.
I can't quite figure out what is going on here
If I fit a model with diversitree's MCMC function
this seems to work fine. however in the file
/tests/test-unit-tree.R
under the heading "Unit tree construction from BM/diversitree/MCMC with SE works", there is something like thiswhich fails because the parameter names are not being returned correctly and
make_unit_tree(fit.bm)
cannot parse thefit.bm
object. did you change how diversitree returned parameters since you wrote the test. i don't think this is anything I did when I changed the function names.any ideas. m