Skip to contents

Reads the clipboard and returns the contents as a character vector or table

Usage

.ReadClip(convert = c("auto", "none", "some", "data.frame", "tibble"), ...)

Arguments

convert

The method to use.

  • "auto": (default) Parses contents either into a vector and applies some conversion; if multiple lines are detected, attempts to parse as a table

  • "none": Returns the contents as a string

  • "some": Returns the contents as a character vector and performs some parsing to possibly convert to a vector

  • "data.frame": Returns the contents as a data frame (via clipr::read_clip_tbl())

...

Additional arguments passed to utils::read.table() (defaults have been changed)

Details

Essentially wraps clipr::read_clip()