Skip to contents

Simple function to dput() code to the system clipboard. On Linux systems, 'xclip' (X11) or 'wl-copy' and 'wl-paste' (Wayland) must be installed.

Usage

clipboard(x)

Arguments

x

An object.

Value

Invisibly returns the original object

Examples

#----------------------------------------------------------------------------
# examples
#----------------------------------------------------------------------------
if (FALSE) { # \dontrun{
library(bkmisc)
x <- factor(letters)
clipboard(x)
} # }