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