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
})

Try the seminr package in your browser

Any scripts or data that you put into this service are public.

seminr documentation built on Oct. 14, 2024, 1:07 a.m.