blob: 31675d21e51916e95a79753a2b47107d29c843de [file] [log] [blame]
brentthorne8ee00762019-04-24 12:57:51 -04001#' Posterdown HTML format (using pagedown::poster_relaxed)
Luke W Johnston79329cc2019-04-24 17:14:04 +02002#'
brentthorne275dbbe2019-02-05 13:31:30 -05003#' @inheritParams pagedown::poster_relaxed
Luke W Johnston79329cc2019-04-24 17:14:04 +02004#' @param ... Additional arguments to `rmarkdown::html_document`
brentthorne275dbbe2019-02-05 13:31:30 -05005#'
6#' @return R Markdown output format to pass to
brentthorne8ee00762019-04-24 12:57:51 -04007#' [rmarkdown::render()]
brentthorne275dbbe2019-02-05 13:31:30 -05008#'
9#' @examples
10#'
11#' \dontrun{
12#' library(rmarkdown)
13#' draft("MyArticle.Rmd", template = "posterdown_html", package = "posterdown")
14#' }
15#' @export
16posterdown_html <- function(...,
17 template = find_resource("posterdown_html", "template.html"),
18 css = NULL) {
19 pagedown::poster_relaxed(..., css = css, template = template)
20}
Luke W Johnston79329cc2019-04-24 17:14:04 +020021
22#' @description The output format `poster_betterland()` mimics the style of the
brentthorne8ee00762019-04-24 12:57:51 -040023#' BetterPoster movement from twitter.
brentthorne75828bf2019-04-07 23:37:15 -040024#' @rdname posterdown_html
25#' @export
26posterdown_betterland <- function(...,
27 template = find_resource("posterdown_betterland", "template.html"),
28 css = NULL) {
29 pagedown::poster_relaxed(..., css = css, template = template)
30}
Luke W Johnston79329cc2019-04-24 17:14:04 +020031
32#' @description The output format `poster_betterport()` mimics the style of the
brentthorne8ee00762019-04-24 12:57:51 -040033#' BetterPoster movement from twitter.
Luke W Johnston79329cc2019-04-24 17:14:04 +020034#' @rdname posterdown_html
35#' @export
36posterdown_betterport <- function(...,
37 template = find_resource("posterdown_betterport", "template.html"),
38 css = NULL) {
39 pagedown::poster_relaxed(..., css = css, template = template)
40}