#' Read multiline text files
#'
#' Read multiline text files, e.g. SQL query, JAGS code etc.
#'
#' @param file a connection to file, see \code{\link{readLines}}
#' @param sep a character string to separate the lines read
#' from the file
#' @param encoding encoding to be assumed for input strings,
#' see \code{\link{readLines}}
#'
#' @export
readMultiline <- function(file, sep = "\n", encoding = "unknown") {
paste(readLines(file, encoding = encoding), collapse = sep)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.