View source: R/interface-source_file.R
| source_js | R Documentation | 
Serve a compiled 'sketch' JavaScript file
source_js(file, debug = FALSE, asset_tags = default_tags(), launch_browser)
file | 
 A character string; path to the compiled JS file.  | 
debug | 
 TRUE or FALSE; if TRUE, a console for debugging is attached to your app.  | 
asset_tags | 
 An optional list of 'shiny.tag' objects to be added to the html
template. The list must have signature / structure of a named list:
  | 
launch_browser | 
 A character string; "viewer" or "browser", which calls 'rstudioapi::viewer' and 'utils::browseURL' respectively; use NULL to suppress display.  | 
## Not run: 
file <- system.file("test_files/test_source.js", package = "sketch")
# The next line launches the default HTML browser
source_js(file, debug = TRUE, launch_browser = "browser")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.