rbokeh2html: Get the HTML content required to embed a Bokeh figure

Description Usage Arguments Examples

View source: R/output_html.R

Description

Get the HTML content required to embed a Bokeh figure

Usage

1
2
3
4
5
6
rbokeh2html(
  fig,
  file = tempfile(fileext = ".html"),
  pretty = FALSE,
  secure = TRUE
)

Arguments

fig

figure

file

html file name to write the figure to

pretty

should the json model be pretty printed to the html file?

secure

should https be used for cdn links?

Examples

1
2
p <- figure() %>% ly_points(1:10)
rbokeh2html(p)

Example output

Warning messages:
1: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
2: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
3: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
4: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
5: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
6: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
7: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
html file written to: /work/tmp/tmp/Rtmp8ajA3w/file22977d388792.html

rbokeh documentation built on Aug. 4, 2021, 1:06 a.m.