shinyWidget (HTMLWidget) example illustrating use in shinyApp, RStudio, and markdown



I have two HTMLwidgets (cyjShiny, igvShiny) which work pretty well in shinyApps. My first attempt to use them for interactive display in a regular RStudio session failed: a canvas was created, but nothing displayed. I am not sure how to debug this.

Perhaps someone can point me to an HTMLWidgets demo or tutorial, one which produces an interactive widget which runs, displays and resizes properly in all three settings (a shinyApp, RStudio, a markdown document)?