tests/testthat/test-plot.R

# plot.netSEMp1
test_that("Check if plot.netSEMp1 has correct output", {
  x <- netSEMp1(acrylic)
  expect_s3_class(plot.netSEMp1(x), c("grViz","htmlwidget"))
})

# plot.netSEMp2
test_that("Check if plot.netSEMp2 has correct output", {
  x <- netSEMp2(acrylic)
  expect_s3_class(plot.netSEMp2(x), c("grViz","htmlwidget"))
})

Try the netSEM package in your browser

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

netSEM documentation built on Sept. 8, 2023, 5:26 p.m.