Copies an R object to the clipboard so it can be pasted in elsewhere.

clipit(x)

Arguments

x

object to copy

Value

Nothing but will put the R object into the clipboard as a side effect

Details

Returns nothing but will place the object in the clipboard

Author

Jonas LindeLøv posted on twitter https://twitter.com/jonaslindeloev/status/1539182627554570240. Copied shamelessly by Claus Ekstrom claus@rprimer.dk

Examples


clipit(mtcars$mpg)
#> Error in error_interactive(): To run write_clip() in non-interactive mode, either call write_clip() with allow_non_interactive = TRUE, or set the environment variable CLIPR_ALLOW=TRUE