strWrap(text = "clipboard", width = 70, copy2clip = interactive())
as.character
.TRUE
attempts to copy the output to the
clipboard.Prints a wrapped text vector to the console and copies the wrapped text to the clipboard on a Mac or Windows machine.
A wrapper for as.character
that writes to the Mac/Windows
clipboard.
## <strong>Not run</strong>: # x <- paste2(DATA$state, sep = " " ) # strWrap(x) # strWrap(x, 10) # #should be copied to the clipboard on a Mac or Windows machine. # ## <strong>End(Not run)</strong>
strwrap