Convenience function to create and run a browser in one step.
Usage
browser_launch(
config,
port = .DEFAULT_PORT,
host = .DEFAULT_HOST,
profile = NULL,
profiling = FALSE,
disk_cache = FALSE,
cache_dir = NULL
)
Arguments
- config
Path to YAML configuration file
- port
Port number
- host
Host to bind to
- profile
Profile name to use
- profiling
Enable profiling output (default: FALSE)
- disk_cache
Enable disk caching (default: FALSE)
- cache_dir
Directory for disk cache
Examples
if (FALSE) { # \dontrun{
browser_launch("my_browser.yaml")
# With profiling enabled
browser_launch("my_browser.yaml", profiling = TRUE)
} # }