Learn R Programming

screenshot (version 0.9.2)

get_clipboard_image: Retrieves the image from the clipboard

Description

This function works only on windows.

Usage

get_clipboard_image()

Arguments

Value

A raw vector containing the image data.

Examples

Run this code
if (FALSE) {
get_clipboard_image()
}

data(clipboard_sample)
head(clipboard_sample, 100)
header <- create_header(clipboard_sample)
image_data <- c(header, clipboard_sample)
path <- fs::path_temp(ext = "bmp")
save_bmp(image_data, path)
 # shell.exec(path)
fs::file_delete(path)

Run the code above in your browser using DataLab