Nothing
#' Remove Comments
#'
#' Removes markdown comments from an R Markdown file.
#'
#' @param x Character. Path to an R Markdown file.
#' @param file Character. Name of the new R Markdown file without comments.
#' @return No return value, called to write text to `file`.
#' @export
remove_comments <- function(x, file) {
x <- readLines_utf8(x)
x <- x[!grepl("^<!--((?!-->).)+-->$", x, useBytes = TRUE, perl = TRUE)]
x <- x[!grepl("^<@~\\{#.+\\}$", x, useBytes = TRUE)]
x <- x[!grepl("^~@>$", x, useBytes = TRUE)]
x <- gsub("<!--((?!-->).+)-->", "", x, useBytes = TRUE, perl = TRUE)
writeLines(x, con = file, useBytes = TRUE)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.