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
Since vscode-R enables VSCode to show htmlwidgets in a WebView via REditorSupport/vscode-R#150, it should work with most htmlwidgets. However, as reported in REditorSupport/vscode-R#158, kableExtra does not use getOption("viewer") but directly use rstudioapi::isAvailable() and rstudioapi::viewer, which imposes dependency on RStudio viewer.
A better approach is to use getOption("viewer"). In RStudio, it is set to use RStudio Viewer, and in VSCode, it is set to use VSCode WebView, in other cases it is NULL.
The text was updated successfully, but these errors were encountered:
Since vscode-R enables VSCode to show htmlwidgets in a WebView via REditorSupport/vscode-R#150, it should work with most htmlwidgets. However, as reported in REditorSupport/vscode-R#158,
kableExtra
does not usegetOption("viewer")
but directly userstudioapi::isAvailable()
andrstudioapi::viewer
, which imposes dependency on RStudio viewer.A better approach is to use
getOption("viewer")
. In RStudio, it is set to use RStudio Viewer, and in VSCode, it is set to use VSCode WebView, in other cases it isNULL
.The text was updated successfully, but these errors were encountered: