tests/testthat/test-pmx-plots-distribution.R

if (helper_skip()) {

  library(ggPMX)
  ctr <- theophylline()

  context("Test pmx_plot_eta_box function")

  #------------------- pmx_plot_eta_box start ------------------------------------------

  test_that("pmx_plot_eta_box: params: ctr, ...;  result: ggplot", {
    p <- ctr %>% pmx_plot_eta_box(shrink=list(fun="sd"))
    expect_true(inherits(p, "ggplot"))
  })

  test_that("pmx_plot_eta_box: params: ctr, ...;  result: error", {
    expect_error(ctr %>% pmx_plot_eta_box(shrink=list("sd")))
  })

  #------------------- pmx_plot_eta_box end ------------------------------------------
}
ggPMXdevelopment/ggPMX documentation built on Dec. 11, 2023, 5:24 a.m.