getBrowserResponse,BrowserViz-method | R Documentation |
Retrieve the response sent by the browser
## S4 method for signature 'BrowserViz'
getBrowserResponse(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)
data <- list(lowercase=letters, uppercase=LETTERS)
json.returned <- roundTripTest(bvApp, data)
data.returned <- fromJSON(json.returned)
stopifnot(identical(data, data.returned))
closeWebSocket(bvApp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.