displayHTMLInDiv: Ask the browser to display html markup in the specified div

displayHTMLInDiv,BrowserViz-methodR Documentation

Ask the browser to display html markup in the specified div

Description

Ask the browser to display html markup in the specified div

Usage

## S4 method for signature 'BrowserViz'
displayHTMLInDiv(obj, htmlText, div.id)

Arguments

obj

An object of class BrowserViz

htmlText

A character string with HTML markup

div.id

A character string

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)
  html <- sprintf("<h3>round trip of json-encoded data, %d chars</h3>",
                  nchar(json.returned))
  displayHTMLInDiv(bvApp, html, "bvDemoDiv")
  closeWebSocket(bvApp)
  }


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