writeClip: Write to Clipboard on Multiple OSes

Description Usage Arguments Details Value

View source: R/utils.R

Description

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.

Usage

1
writeClip(object)

Arguments

object

character. Character to be copied to the clipboard

Details

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.

Value

Returns nothing to R. Returns character string to the clipboard


mrdwab/SOfun documentation built on June 20, 2020, 6:15 p.m.