screenshot | R Documentation |
Need to install screenshot.exe on Win by install_screenshot().
screenshot(bin_dir = "", file = "")
bin_dir |
A string for directory name of screenshot.exe on Win. |
file |
A string for file name of screenshot. |
A file name of screenshot. When "", screenshot will be saved in a tempral directory.
install_screenshot()
if(interactive()){
sc <- screenshot()
if(sc != ""){
sc_image <- imager::load.image(sc)
plot(sc_image)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.