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
Recently I was trying to render the htmlwidgets in rmarkdown with shinyrmd runtime, but then I encountered rendering errors.
The reason is because when rendered in shinyrmd or shiny_prerendered runtime, Shiny has invalid onInputChanged method. This will invalidate many widgets that are expecting this feature, for example, visNetwork and threeBrain, etc. are expecting to communicate with shiny, which will definitely fail.
Recently I was trying to render the htmlwidgets in rmarkdown with
shinyrmd
runtime, but then I encountered rendering errors.The reason is because when rendered in
shinyrmd
orshiny_prerendered
runtime,Shiny
has invalidonInputChanged
method. This will invalidate many widgets that are expecting this feature, for example,visNetwork
andthreeBrain
, etc. are expecting to communicate withshiny
, which will definitely fail.Please see more details from this issue: rstudio/rmarkdown#2232
I was wondering if
HTMLWidgets.shinyMode
could be integers such that:HTMLWidgets.shinyMode=0
means no shiny is detectedHTMLWidgets.shinyMode=1
means shiny is detected and is in normal dashboard mode orshiny
runtime in rmarkdownsHTMLWidgets.shinyMode=2
means shiny is detected but rendered inrmarkdown
withshinyrmd
orshiny_prerendered
runtimeIf this change could break many packages, when maybe add
HTMLWidgets.runtimeMode
?The text was updated successfully, but these errors were encountered: