View source: R/utils-dataviz.R
Transform HTML widget into picture
1 2 | export_formattableWidget(w, file, width = 400, background = "white",
delay = 0.2)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.