tests/testthat/test_interactive_oilpaint.R

test_that("interactive_oilpaint",
{
  skip_on_cran()
  iniv <- 0 # initial value is 0
  names(iniv) <- "radius"
  expected <- image_oilpaint(img, iniv)
  expect_equal(expected, interactive_oilpaint(img))
  expect_equal(iniv, interactive_oilpaint(img, return_param = TRUE))
  expect_equal(expected, interactive_oilpaint(img, scale = scale1))
})

Try the magickGUI package in your browser

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

magickGUI documentation built on Sept. 11, 2023, 5:06 p.m.