#' Reads dataframe copied to clipboard
#' @param dataframe in clipboard
#' @return dataframe
#' @export
#'
read_clipboard <- function(header = TRUE) {
if (header == TRUE) {
read.table(pipe("pbpaste"), sep= "\t", header= TRUE)
} else {
read.table(pipe("pbpaste"), sep= "\t", header= FALSE)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.