View source: R/modify_backgroundjs.R
modify_background_js | R Documentation |
Modify background.js to include the call to the shiny app
modify_background_js(background_js_path, my_package_name, function_name, r_path)
background_js_path |
path to the final background.js, not the one in inst/... |
my_package_name |
package name, will be used for namespacing- (e.g. 'dplyr' in 'dplyr::filter()') |
function_name |
function that runs your shiny app - (e.g. 'filter' in 'dplyr::filter()') |
r_path |
path from "r_lang" folder to the R/Rscript executable |
none, side effect
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.