Applications normally make data available in one or more of these and
possibly additional private formats. Use raw = TRUE to read binary
formats, raw = FALSE (the default) for text formats. The
current codepage is used to convert text to Unicode text, and
information on that is contained in the CF_LOCALE format.
(Take care if you are running R in a different locale from Windows.)
The writeClipboard function will write a character vector as
text or Unicode text with standard CR-LF line terminators. It will
copy a raw vector directly to the clipboard without any changes.
Value
For getClipboardFormats, a character or integer vector of
available formats, in numeric order. If non human-readable character
representation is known, the number is returned.
For readClipboard, a character vector by default, a raw vector
if raw is TRUE, or NULL, if the format is
unavailable.
For writeClipboard an invisible logical indicating success or
failure.
Note
This is only available on Windows.
See Also
file which can be used to set up a connection to a clipboard.