blob: 477c95d6e24590308826814398e8be0c6eb9778c [file] [log] [blame]
brentthorne275dbbe2019-02-05 13:31:30 -05001#' Posterdown HTML format (using bookdown::html_document2)
brentthorne275dbbe2019-02-05 13:31:30 -05002#' @inheritParams pagedown::poster_relaxed
3#' @param ... Additional arguments to \code{rmarkdown::html_document}
4#'
5#' @return R Markdown output format to pass to
6#' \code{\link[rmarkdown:render]{render}}
7#'
8#' @examples
9#'
10#' \dontrun{
11#' library(rmarkdown)
12#' draft("MyArticle.Rmd", template = "posterdown_html", package = "posterdown")
13#' }
14#' @export
15posterdown_html <- function(...,
16 template = find_resource("posterdown_html", "template.html"),
17 css = NULL) {
18 pagedown::poster_relaxed(..., css = css, template = template)
19}
brentthorne75828bf2019-04-07 23:37:15 -040020#' @description The output format \code{poster_betterland()} mimics the style of the
21#' \dQuote{BetterPoster} movement from twitter.
22#' @rdname posterdown_html
23#' @export
24posterdown_betterland <- function(...,
25 template = find_resource("posterdown_betterland", "template.html"),
26 css = NULL) {
27 pagedown::poster_relaxed(..., css = css, template = template)
28}