Open daattali opened 1 year ago
I agree this is a pain, and would love a PR. Seems like it'd also be useful to have similar is*()
functions for tagList()
, HTML()
, HTMLDependency()
?
I can help with tag and tagList. For HTML/dependency I don't feel comfortable writing their is
function and their tests.
For tagList, should it be is.tagList
?
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:
Would you accept a PR to add this to {htmltools}, or would you prefer not?