read_clip | R Documentation |
Read the contents of the system clipboard into a character vector.
read_clip(allow_non_interactive = Sys.getenv("CLIPR_ALLOW", interactive()))
allow_non_interactive |
By default, clipr will throw an error if run in
a non-interactive session. Set the environment variable
|
A character vector with the contents of the clipboard. If the system clipboard is empty, returns NULL
read_clip()
will not try to guess at how to parse copied text. If
you are copying tabular data, it is suggested that you use
read_clip_tbl()
.
## Not run: clip_text <- read_clip() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.