download_pdf_server: Implement the download button for a pdf report.

View source: R/download.R

download_pdf_serverR Documentation

Implement the download button for a pdf report.

Description

The server component of the Shiny module for creating a pretty pdf download button.

Usage

download_pdf_server(id, template_fname, fname = "report", ...)

Arguments

id

String. The input slot that will be used to access the value.

template_fname

String. The file name of the Rmd template for rendering the report.

fname

String. Name of the file under which to save the object.

...

Arguments that can be passed into the 'params' argument inside 'rmarkdown::render()'.

Value

A module server function that can be called in a reactive env.

See Also

download_ui for the UI.

Examples

inst/examples/ex-download.R

cabaceo/shinymod documentation built on Sept. 8, 2023, 12:23 p.m.