Similar to #18 but a different piece of the process. When we include sparkline in tags or htmlwidgets, such as formattable or DT. I believe the helper function should behave differently for tags and htmlwidgets instead of converting all htmlwidgets to tags.
tags
use htmltools::attachDependencies to add sparkline dependencies
htmlwidgets
add sparkline dependencies to the dependency list in htmlwidget$dependencies
Similar to #18 but a different piece of the process. When we include
sparkline
intags
orhtmlwidgets
, such asformattable
orDT
. I believe the helper function should behave differently fortags
andhtmlwidgets
instead of converting allhtmlwidgets
totags
.tags
use
htmltools::attachDependencies
to add sparkline dependencieshtmlwidgets
add sparkline dependencies to the dependency list in htmlwidget$dependencies