create_test_bbt_run_output: Get an example output of 'bbt_run' or 'bbt_run_from_model'.

Description Usage Value Author(s) Examples

View source: R/create_test_bbt_run_output.R

Description

This output is used in testing.

Usage

1

Value

the same results as bbt_run or bbt_run_from_model

Author(s)

Richèl J.C. Bilderbeek

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 out <- create_test_bbt_run_output()

 library(testthat)
 expect_true("estimates" %in% names(out))
 expect_true("anthus_aco_trees" %in% names(out))
 expect_true("operators" %in% names(out))
 expect_true("output" %in% names(out))
 expect_true(is_phylo(out$anthus_aco_trees[[1]]))
 expect_true(length(out$anthus_aco_trees) == 2)

 expect_true("Sample" %in% names(out$estimates))
 expect_true("posterior" %in% names(out$estimates))
 expect_true("likelihood" %in% names(out$estimates))
 expect_true("prior" %in% names(out$estimates))
 expect_true("treeLikelihood" %in% names(out$estimates))
 expect_true("TreeHeight" %in% names(out$estimates))
 expect_true("YuleModel" %in% names(out$estimates))
 expect_true("birthRate" %in% names(out$estimates))

 expect_true("operator" %in% names(out$operators))
 expect_true("p" %in% names(out$operators))
 expect_true("accept" %in% names(out$operators))
 expect_true("reject" %in% names(out$operators))
 expect_true("acceptFC" %in% names(out$operators))
 expect_true("rejectFC" %in% names(out$operators))
 expect_true("rejectIv" %in% names(out$operators))
 expect_true("rejectOp" %in% names(out$operators))

richelbilderbeek/rbeast2 documentation built on Oct. 22, 2020, 4:48 a.m.