Skip to contents

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)
}

}