#' CRISP-DM Report
#'
#' Format for creating a CRISP-DM report. Adapted from \url{https://www.the-modeling-agency.com/crisp-dm.pdf}.
#'
#' @param language Language in which to generate the template.
#' @inheritParams rmarkdown::draft
#'
#' @return R Markdown output format to pass to [render][rmarkdown::render]
#'
#' @examples
#'
#' \dontrun{
#' library(rmarkdown)
#' crispdm_report(name = "MyReport.Rmd",edit=TRUE,create_dir = FALSE)
#' }
#'
#' @seealso [draft][rmarkdown::draft], [render][rmarkdown::render]
#'
#' @export
crispdm_report <- function(file, language = c("en","es"), edit = FALSE, create_dir = FALSE) {
lang <- match.arg(language)
if(lang == "en") {
rmarkdown::draft(file, system.file("rmarkdown", "templates", "crispdm_report",package = "rmddm"), edit=edit,create_dir = create_dir)
}
if(lang == "es") {
rmarkdown::draft(file, system.file("rmarkdown", "templates", "crispdm_report_es",package = "rmddm"), edit=edit,create_dir = create_dir)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.