powered by
A wrapper for as.character that writes to the Mac/Windows clipboard.
as.character
strWrap(text = "clipboard", width = 70, copy2clip = interactive())
character vector, or an object which can be converted to a character vector by as.character.
A positive integer giving the target column for wrapping lines in the output.
logical. If TRUE attempts to copy the output to the clipboard.
TRUE
Prints a wrapped text vector to the console and copies the wrapped text to the clipboard on a Mac or Windows machine.
strwrap
# NOT RUN { x <- paste2(DATA$state, sep = " " ) strWrap(x) strWrap(x, 10) #should be copied to the clipboard on a Mac or Windows machine. # }
Run the code above in your browser using DataLab