The documentation suggests that one can optimize a vector of branching times by only passing times = to make.bd or make.yule. However, there are a few bugs that prevent this.
> make.bd(times = 1:3, sampling.f = 0.5)
Error in make.cache.bd(tree, sampling.f, unresolved, times, control) :
argument "tree" is missing, with no default
This is fixed by changing the prototypes of make.bd and make.yule.
If we try to pass tree = NULL:
> make.bd(tree = NULL, times = 1:3, sampling.f = 0.5)
Error in check.unresolved.bd(tree, unresolved) :
Cannot just specify times when using unresolved clades
This is fixed by adding a guard to see if unresolved = NULL.
The documentation suggests that one can optimize a vector of branching times by only passing
times =
tomake.bd
ormake.yule
. However, there are a few bugs that prevent this.This is fixed by changing the prototypes of
make.bd
andmake.yule
.If we try to pass
tree = NULL
:This is fixed by adding a guard to see if
unresolved = NULL
.