Nothing
is_shiny_tag <- function(x) {
inherits_any(x, "shiny.tag")
}
expect_shiny_tag <- function(object) {
# 1. Capture object and label
act <- quasi_label(rlang::enquo(object), arg = "object")
# 2. Call expect()
found <- class(act$val)[1]
expect(
is_shiny_tag(act$val),
sprintf('%s is %s, not shiny tag.', act$lab, found)
)
# 3. Invisibly return the value
invisible(act$val)
}
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.