Skip to content

Consider adding is.shiny.tag() function #389

@daattali

Description

@daattali

It's fairly common for me, I'm not sure about others, to want to know whether or not a particular object is a shiny tag. This is usually done as error checking arguments in a function.

I often add the following function to my utils file:

is.shiny.tag <- function(x) {
  inherits(x, "shiny.tag")
}

Would you accept a PR to add this to {htmltools}, or would you prefer not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions