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))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.