This function works on Windows, Mac and Linux. It copies a character string or vector of characters to the clipboard and interprets a vector of characters as one character with each element being newline separated. If using Linux, xclip is used as the clipboard. So for the function to work, xclip must be installed.
writeClip(object)
object | character. Character to be copied to the clipboard |
---|
Returns nothing to R. Returns character string to the clipboard
If using Linux, xclip will be used as the clipboard. To paste from
xclip, either use middle click or the command xclip -o
in the shell.