Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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

Value

a Shiny app object


polished

Authentication, User Administration, and Hosting for 'shiny' Apps

v0.3.0
MIT + file LICENSE
Authors
Andy Merlino [aut, cre], Patrick Howard [aut], Jimmy Briggs [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.