tests/testthat/test-diagrammer-installed.R

test_that("DiagrammeR installation is checked", {
  skip_if_not(check_tf_version())
  skip_on_cran()
  local_mocked_bindings(
    is_DiagrammeR_installed = function() FALSE
  )
  m <- model(normal(0,1))
    expect_snapshot(
      error = TRUE,
      x = plot(m)
      )
})
greta-dev/greta documentation built on Dec. 21, 2024, 5:03 a.m.