expect_equal_shades | R Documentation |
This function provides an expectation for use with the tinytest
package,
which compares two colour vectors via all.equal.shade(hexonly=TRUE). It
evaluates TRUE
if the vectors have the same length and resolve to the same
hex colour strings.
expect_equal_shades(current, target, ..., info = NA_character_)
current |
The colour vector to test. |
target |
The target values to compare against, in any form valid for
casting to |
... |
Further arguments to |
info |
An optional information string shown in case of failure. |
A "tinytest"
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.