Description Usage Arguments Examples
View source: R/mod_view_renderedpdfUI.R
A shiny module that displays a PDF file rendered from a Rmd file
1 2 3 4 5 | mod_view_renderedpdfUI(id)
mod_view_renderedpdf(input, output, session, path,
filename = "template_report", paramsUI = reactive(NULL),
style_css = reactive(NULL))
|
id |
shiny id |
input |
internal |
output |
internal |
session |
inernal |
path |
character. Path to the file to render |
filename |
string value. Name without extension of the file to render |
paramsUI |
reactive. A list of named parameters that override custom params
specified within the YAML front-matter (see argument |
style_css |
css file |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
library(shiny)
if (interactive()) {
ui <- fluidPage(
mod_view_renderedpdfUI("my_pdf")
)
server <- function(input, output, session) {
callModule(mod_view_renderedpdf, "my_pdf", path = system.file("www", package = "wimpress"),
filename = "template_report")
}
shinyApp(ui, server)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.