File: test-print_AER_labels.R

package info (click to toggle)
r-cran-parameters 0.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,852 kB
  • sloc: sh: 16; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
skip_if_not_installed("AER")
skip_if_not_installed("datawizard")
skip_if_not_installed("withr")

withr::with_options(
  list(easystats_table_width = Inf),
  test_that("templates", {
    data(efc, package = "datawizard")
    model <- AER::tobit(neg_c_7 ~ e42dep + c172code, data = efc)
    mp <- model_parameters(model)
    expect_snapshot(print(mp, pretty_names = "labels"))
  })
)