Let’s consider a shiny input. One way to put unobtrusive help into a shiny input is to embed a help icon into its label, having associated the help icon with the help documentation. This suggests three steps:
shiny_iconlink()(which simply wraps the icon in an HTML link).
Here’s an example of everything put together:
As of writing, I don’t know how to include operable shiny inputs in an html document, outside of the shiny runtime. To see these functions in action, you can refer to this shiny app, which you can also run locally using:
To promote consistency, the following convention is proposed: