Nothing
# Test getAvgHex function
test_that("Compute the Average of Hex Colors", {
# Single input case
expect_equal(getAvgHex("#FF0000", "#00FF00"), "#808000")
expect_equal(getAvgHex("#000000", "#808080"), "#404040")
expect_equal(getAvgHex("#000000", "#FFFFFF"), "#808080")
# Vectorized input case
inputs <- c("#000000", "#000000", "#000000")
expect_equal(getAvgHex(inputs), "#000000")
})
# TODO test scaleHex
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.