screenshot {screenshot} | R Documentation |
Take a screenshot.
Description
Need to install screenshot.exe on Win by install_screenshot().
Usage
screenshot(bin_dir = "", file = "")
Arguments
bin_dir |
A string for directory name of screenshot.exe on Win. |
file |
A string for file name of screenshot. |
Value
A file name of screenshot. When "", screenshot will be saved in a tempral directory.
See Also
install_screenshot()
Examples
if(interactive()){
sc <- screenshot()
if(sc != ""){
sc_image <- imager::load.image(sc)
plot(sc_image)
}
}
[Package screenshot version 0.9.1 Index]