R/card.R

Defines functions business_card

Documented in business_card

#' Create business cards
#'
#' This output format is based on an example in the Github repo
#' \url{https://github.com/RelaxedJS/ReLaXed-examples}. See
#' \url{https://pagedown.rbind.io/business-card/} for an example.
#'
#' @return An R Markdown output format.
#' @export
#' @examples pagedown::business_card()
#' @inheritParams html_paged
business_card = function(template = pkg_resource('html', 'card.html')) {
  rmarkdown::output_format(
    list(opts_chunk = list(echo = FALSE)),
    rmarkdown::pandoc_options('html', 'markdown', args = c(
      '--template', rmarkdown::pandoc_path_arg(template),
      '--variable', 'pagetitle=Business Card'
    ))
  )
}

Try the pagedown package in your browser

Any scripts or data that you put into this service are public.

pagedown documentation built on Oct. 11, 2024, 9:08 a.m.