#' Generate Pipeline Template
#'
#' Generate an R script template for running the Sharpton Lab dada2 pipeline
#' @param filename A string to name the resulting template. If the .R extension is not included in the filename, it will be appended. Default is "dada2_processing.R"
#' @export
#' @examples
#' generate.template()
#' file.show("dada2_processing.R")
generate.template <- function(filename = "dada2_processing.R") {
if (!grepl("\\.R$", filename)) { filename <- paste0(filename, ".R")}
writeLines(template.code, con = filename)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.