Transform HTML widget into picture
export_formattableWidget(w, file, width = 400, background = "white",
delay = 0.2)
HTML content to print
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.
Viewport width. This is the width of the browser "window".
Background color for web page
Time to wait before taking screenshot, in seconds. Sometimes a longer delay is needed for all assets to display properly.