pbcopy: Write a vector to the OSX clipboard

Description Usage Arguments Value Author(s) See Also Examples

Description

The input, x will be written to the clipboad, using one of these functions:

vector writeLines
list writeLines.list
matrix write.delim
data.frame write.delim
other dput

Usage

1
2
3

Arguments

x

an object to be writen to the clipboard. see Details.

row.names

if x is a matrix or data.frame, then either TRUE, FALSE, NULL NA, or a character(1). see write.delim. If x is a list, then write out the list names in each row? see names arg in writeLines.list. Otherwise it's ignored.

col.names

if x is a matrix or data.frame, then write out the col.names? default=TRUE Otherwise, it's ignored.

Value

nothing

Author(s)

Mark Cowley, 2011-11-08

See Also

pbcopy, the “Clipboard” section within ?file

Examples

1
2
3
4
5
6
7
8
## Not run: 
pbcopy(letters)
pbcopy(matrix(letters[1:25], 5))
pbcopy(data.frame(letters,LETTERS,1:26))
pbcopy(list(a=letters, b=LETTERS, c=as.character(1:26)))
pbcopy(Sys.Date())

## End(Not run)

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.