clip | R Documentation |
fclip
put x in the clipboard with forward slashes.
bclip
put x in the clipboard with backward slashes.
These are designed to allow you to export a path used in R to the clipboard.
I suspect bclip()
to be more useful, and example would be after
exporting a file you could then call bclip() on the same path to
subsequently paste that path in another windows application. In my case this
is often GIS data that I want to load into an interactive GIS application.
bclip(x) fclip(x)
x |
A character string of a path to be exported |
f <- tempfile(fileext = ".png") ## Not run: png(f) plot(1, 1) dev.off() ## End(Not run) bclip(f) # back slash version of the file path is now in the clipboard
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.