R/html_article.R

Defines functions templ_html_article html_article

Documented in html_article templ_html_article

#' Steve's HTML Article Template
#'
#' This is the R Markdown template I added in support of another package, which facilitates
#' the conversion of academic articles to HTML format.
#'
#'
#' @inheritParams rmarkdown::html_document
#' @param ... Arguments to [`rmarkdown::word_document`].
#' @md
#' @export
#'
html_article <- function(...){
  templ <- system.file("rmarkdown", "templates", "html_article", "resources", "template.html", package = "stevetemplates")
  rmarkdown::html_document(template = templ,
                           ...)
}

#' @rdname html_article
#' @export
templ_html_article <- function(){
  print(system.file("rmarkdown", "templates", "html_article", "resources", "template.html", package = "stevetemplates"))
}

Try the stevetemplates package in your browser

Any scripts or data that you put into this service are public.

stevetemplates documentation built on Feb. 16, 2023, 6:17 p.m.