export_formattableWidget: Transform HTML widget into picture

Description Usage Arguments

View source: R/utils-dataviz.R

Description

Transform HTML widget into picture

Usage

1
2
export_formattableWidget(w, file, width = 400, background = "white",
  delay = 0.2)

Arguments

w

HTML content to print

file

A vector of names of output files. Should end with .png, .pdf, or .jpeg. If several screenshots have to be taken and only one filename is provided, then the function appends the index number of the screenshot to the file name.

width

Viewport width. This is the width of the browser "window".

background

Background color for web page

delay

Time to wait before taking screenshot, in seconds. Sometimes a longer delay is needed for all assets to display properly.


oncrawlR documentation built on Jan. 31, 2020, 5:09 p.m.