tests/testthat/test-plotting.R

test_that("plotting works", {
  set.seed(1)
  xy <- owl:::randomProblem(100, 2)

  # one parameter
  fit <- owl(xy$x, xy$y, sigma = 0.2)
  expect_silent(dont_plot(fit))

  # more parameters
  fit <- owl(xy$x, xy$y, n_sigma = 10)
  expect_silent(dont_plot(fit))
})

Try the owl package in your browser

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

owl documentation built on Feb. 11, 2020, 5:09 p.m.