Learn R Programming

polished (version 0.1.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)

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.

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