HARviewer: View HAR object

Description Usage Arguments Value Examples

View source: R/HARviewer.R

Description

Create a waterfall view of a HAR object

Usage

1
HARviewer(har, width = NULL, height = NULL, elementId = NULL)

Arguments

har

A parsed har object output from readHAR

width

Optional width of the HAR viewer

height

Optional height of the HAR viewer

elementId

Optional element id to assign to the HAR viewer

Value

Returns a createWidget object. A waterfall of the HAR using the PerfCascade JavaScript library.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
har <- readHAR(system.file(package = "HARtools", "exdata",
                           "r-project.org.161028_W2_11MA.har"))
hv <- HARviewer(har)
# view in R
hv

# save and view
tFile <- tempfile(fileext = ".html")
htmlwidgets::saveWidget(hv,file = tFile)
browseURL(tFile)

## End(Not run)

Example output



HARtools documentation built on May 1, 2019, 10:56 p.m.