#' @importFrom rlang enquo
expect_true_or_null <- function(o){
val <- rlang::enquo(o)
if(!is.null(o)){
testthat::expect_true(!!val)
} else {
testthat::expect_null(!!val)
}
}
library("XML")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.