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 | 164b9a8 | 2019-10-09 10:08:13 -0400 | [diff] [blame] | 9 | #'@examples |
| 10 | #'\donttest{ |
| 11 | #'file <- file.path(tempdir(),"foo.rmd") |
| 12 | #'rmarkdown::draft(file, template="posterdown_html", package="posterdown") |
| 13 | #'} |
| 14 | #' |
brentthorne | 275dbbe | 2019-02-05 13:31:30 -0500 | [diff] [blame] | 15 | #' @export |
| 16 | posterdown_html <- function(..., |
| 17 | template = find_resource("posterdown_html", "template.html"), |
| 18 | css = NULL) { |
| 19 | pagedown::poster_relaxed(..., css = css, template = template) |
| 20 | } |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame] | 21 | |
| 22 | #' @description The output format `poster_betterland()` mimics the style of the |
brentthorne | 8ee0076 | 2019-04-24 12:57:51 -0400 | [diff] [blame] | 23 | #' BetterPoster movement from twitter. |
brentthorne | 75828bf | 2019-04-07 23:37:15 -0400 | [diff] [blame] | 24 | #' @rdname posterdown_html |
| 25 | #' @export |
| 26 | posterdown_betterland <- function(..., |
| 27 | template = find_resource("posterdown_betterland", "template.html"), |
| 28 | css = NULL) { |
| 29 | pagedown::poster_relaxed(..., css = css, template = template) |
| 30 | } |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame] | 31 | |
| 32 | #' @description The output format `poster_betterport()` mimics the style of the |
brentthorne | 8ee0076 | 2019-04-24 12:57:51 -0400 | [diff] [blame] | 33 | #' BetterPoster movement from twitter. |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame] | 34 | #' @rdname posterdown_html |
| 35 | #' @export |
| 36 | posterdown_betterport <- function(..., |
| 37 | template = find_resource("posterdown_betterport", "template.html"), |
| 38 | css = NULL) { |
| 39 | pagedown::poster_relaxed(..., css = css, template = template) |
| 40 | } |