tests/testthat/test-plot-structuralmodel.R

context("SEMinR plotting structural models")
test_that("Plotting Structural model", {
  #library(seminr)

  # add complexity?
  structural_model <- relationships(paths("A", "B"))

  #dot_graph.measurement_model(measurement_model, title = "Example plot")
  expect_error(dot_graph(structural_model, title = "Example plot"), NA)
  expect_error(plot(structural_model, title = "Example plot"), NA)

 # plot_model(measurement_model)


  plot <- plot(structural_model)
  #vdiffr::expect_doppelganger(title = "Plot structural model", fig = plot, writer = write_test)

  unlink("Rplots.pdf")
  # Todo: RPlots
})
sem-in-r/seminr documentation built on Aug. 26, 2022, 8:47 p.m.