Learn R Programming

pubprint (version 0.2.1)

toClipboard: Pastes text to clipboard

Description

Text is written to clipboard, allowing easy pasting to other software. This function supports only pasting of character vectors because writeLines is used. Supported operating systems are BSD/Linux (the xclip command has to be installed), Mac OS (pbcopy has to be installed) and Microsoft Windows.

Usage

toClipboard(x)

Arguments

x
character vector that should be pasted to clipboard.

Examples

Run this code
toClipboard("This is a little test.")

Run the code above in your browser using DataLab