HARviewer-shiny: Shiny bindings for HARviewer

Description Usage Arguments Examples

Description

Shiny bindings for HARviewer

Usage

1
2
3
HARviewerOutput(outputId, width = "100%", height = "400px")

renderHARviewer(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

output variable to read from

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended. height will probably not have an effect; instead, use the height parameter in HARviewer.

expr

An expression that generates a HARviewer

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Examples

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

shinyApp(
  ui = fluidPage(
    HARviewerOutput("myHAR")
  ),
  server = function(input, output) {
    output$myHAR <- renderHARviewer(hv)
  }
)

## End(Not run)

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