You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to understand how to create a custom tag for a component library. However the tag() function does not have an example. It is unclear what the structure of varArgs argument should be.
Agreed, we could definitely improve both the docs to add an example and the error message.
varArgs should be a list where the primary restriction is that any character items in the list must be scalar. In other words list("a", "b", "c") or list("a b c") will work but list(c("a", "b", "c")) will not. So Text to be written must be a length-one character vector is accurate but not very helpful.
The hard part in making the error message better is that it happens at a much lower level than where varArgs is provided and it's discovered as a part of a recursive walk of the varArgs list.
I am trying to understand how to create a custom tag for a component library. However the
tag()
function does not have an example. It is unclear what the structure ofvarArgs
argument should be.htmltools/R/tags.R
Lines 639 to 667 in 038ef7b
The text was updated successfully, but these errors were encountered: