tests/testthat/test-gamma_histogram.R

test_that("gamma histogram is stable", {
  skip_on_cran()
  me <- embed(mgls, 9)
  t <- me[ ,1]
  p <- me[ ,2:9]
  fe_out <- fe_search(p, t)
  #save(fe_out, file = "fe_out.rda")
  #load(file = "fe_out.rda")
  vdiffr::expect_doppelganger("full embedding histogram",
                              gamma_histogram(fe_out, bins=32, caption="test plot"))
})

Try the sr package in your browser

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

sr documentation built on March 31, 2023, 9:40 p.m.