#' Score
#'
#' @param x a boolean
#'
#' @return 1 if TRUE, -1 if FALSE
score <- function(x) {
assertive::assert_is_a_bool(x)
as.integer((x - 0.5) * 2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.