Learn R Programming

polished (version 0.4.0)

secure_static: Secure a static HTML page

Description

secure_static() can be used to secure any HTML page using polished. It is often used to add polished to .Rmd htmloutput and flexdashboards.

Usage

secure_static(
  html_file_path,
  global_sessions_config_args,
  sign_out_button = shiny::actionLink("sign_out", "Sign Out", icon =
    shiny::icon("sign-out-alt"), class = "polished_sign_out_link")
)

Arguments

html_file_path

the path the to HTML file. See the details for more info.

global_sessions_config_args

arguments to be passed to global_sessions_config.

sign_out_button

action button or link with inputId = "sign_out". Set to NULL to not include a sign out button.

Value

a Shiny app object

Details

To secure a static HTML page, place the HTML page in a folder named "www" and call secure_static() from a file named app.R. The file structure should look like:

  • app.R

  • www/

    • index.html

See an example here: https://github.com/Tychobra/polished_example_apps/tree/master/05_flex_dashboard