closeWebSocket,BrowserViz-method | R Documentation |
Close the websocket connection - between your R session and your web browser.
## S4 method for signature 'BrowserViz'
closeWebSocket(obj)
obj |
An object of class BrowserViz |
library(BrowserViz)
browserVizBrowserFile <- system.file(package="BrowserViz", "browserCode", "dist", "bvDemoApp.html")
if(BrowserViz::webBrowserAvailableForTesting()){
bvApp <- BrowserViz(browserFile=browserVizBrowserFile, quiet=TRUE)
show(bvApp)
closeWebSocket(bvApp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.