Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame^] | 1 | |
brentthorne | 275dbbe | 2019-02-05 13:31:30 -0500 | [diff] [blame] | 2 | #' Posterdown HTML format (using bookdown::html_document2) |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame^] | 3 | #' |
brentthorne | 275dbbe | 2019-02-05 13:31:30 -0500 | [diff] [blame] | 4 | #' @inheritParams pagedown::poster_relaxed |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame^] | 5 | #' @param ... Additional arguments to `rmarkdown::html_document` |
brentthorne | 275dbbe | 2019-02-05 13:31:30 -0500 | [diff] [blame] | 6 | #' |
| 7 | #' @return R Markdown output format to pass to |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame^] | 8 | #' [rmarkdown:render::render()] |
brentthorne | 275dbbe | 2019-02-05 13:31:30 -0500 | [diff] [blame] | 9 | #' |
| 10 | #' @examples |
| 11 | #' |
| 12 | #' \dontrun{ |
| 13 | #' library(rmarkdown) |
| 14 | #' draft("MyArticle.Rmd", template = "posterdown_html", package = "posterdown") |
| 15 | #' } |
| 16 | #' @export |
| 17 | posterdown_html <- function(..., |
| 18 | template = find_resource("posterdown_html", "template.html"), |
| 19 | css = NULL) { |
| 20 | pagedown::poster_relaxed(..., css = css, template = template) |
| 21 | } |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame^] | 22 | |
| 23 | #' @description The output format `poster_betterland()` mimics the style of the |
brentthorne | 75828bf | 2019-04-07 23:37:15 -0400 | [diff] [blame] | 24 | #' \dQuote{BetterPoster} movement from twitter. |
| 25 | #' @rdname posterdown_html |
| 26 | #' @export |
| 27 | posterdown_betterland <- function(..., |
| 28 | template = find_resource("posterdown_betterland", "template.html"), |
| 29 | css = NULL) { |
| 30 | pagedown::poster_relaxed(..., css = css, template = template) |
| 31 | } |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame^] | 32 | |
| 33 | #' @description The output format `poster_betterport()` mimics the style of the |
| 34 | #' \dQuote{BetterPoster} movement from twitter. |
| 35 | #' @rdname posterdown_html |
| 36 | #' @export |
| 37 | posterdown_betterport <- function(..., |
| 38 | template = find_resource("posterdown_betterport", "template.html"), |
| 39 | css = NULL) { |
| 40 | pagedown::poster_relaxed(..., css = css, template = template) |
| 41 | } |