tests/testthat/test_interactive_composite.R

test_that("interactive_composite",
{
  skip_on_cran()
  iniv <- "+0+0" # initial value is "0%"
  expected <- image_composite(img, img2, offset = iniv)
  expect_equal(expected, interactive_composite(img, img2))
  expect_equal(iniv, interactive_composite(img, img2, return_param = TRUE))
  expect_equal(expected, interactive_composite(img, img2, 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 July 12, 2021, 5:06 p.m.