secure_rmd | R Documentation |
secure_rmd()
can be used to render (or run) and secure many
types of R Markdown documents. Rendering is handled either by rmarkdown::render
or, if using shiny
, a shiny
app is constructed, and the then
the output is secured with polished
authentication.
secure_rmd( rmd_file_path, polished_config_args = list(), sign_in_page_args = list(), sign_out_button = NULL )
rmd_file_path |
the path the to .Rmd file. |
polished_config_args |
arguments to be passed to |
sign_in_page_args |
a named |
sign_out_button |
A |
a Shiny app object
## Not run: secure_rmd(system.file("examples/rmds/flexdashboard.Rmd", package = "polished")) secure_rmd( system.file("examples/rmds/flexdashboard.Rmd", package = "polished"), polished_config_args = list( # any values in this list will override values in YAML header app_name = "different_name" ), sign_in_page_args = list( color = "#FF5700" ) ) secure_rmd(system.file("examples/rmds/flexdashboard_shiny.Rmd", package = "polished")) secure_rmd(system.file("examples/rmds/html_document.Rmd", package = "polished")) secure_rmd(system.file("examples/rmds/pdf_document.Rmd", package = "polished")) io_file_path <- system.file( "examples/rmds/ioslides/ioslides_presentation.Rmd", package = "polished" ) secure_rmd(io_file_path) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.