roundTripTest: Send data to the browser, ensure that it is returned...

roundTripTest,BrowserViz-methodR Documentation

Send data to the browser, ensure that it is returned accurately.

Description

Send data to the browser, ensure that it is returned accurately.

Usage

## S4 method for signature 'BrowserViz'
roundTripTest(obj, ...)

Arguments

obj

An object of class BrowserViz

...

other arguments

Examples

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)
  }


paul-shannon/BrowserViz documentation built on Nov. 17, 2024, 1:42 p.m.