#' Open a connection to the system clipboard
#'
#' @export
clipboard <- function () {
if (Sys.info()[["sysname"]] == "Darwin") {
return(pipe("pbcopy", "w"))
} else {
stop("Help by contributing support for more platforms! :-D")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.