Description Usage Arguments Value Examples
This takes a named logical vector and turns it into a CheckResult object, using the names to create a message.
1 | named_logical_vector_to_check_result(vec, header)
|
vec |
a named logical vector |
header |
the header for the message that will be created. |
a CheckResult object
1 2 3 4 5 6 7 8 9 | vec <- c(a = TRUE, b = FALSE)
# test fails, and message includes "b" as the reason for failing
res <- CanonicalForms:::named_logical_vector_to_check_result(vec, "A test!")
print(res)
#> failed check
#>
#> Additional info:
#> A test!
#> x b
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.