This is a convenience function that returns a Dash
R6 object.
For advanced usage, you can use the object as an R6 object directly instead
of the functions provided by the {dash}
package.
dash_app(
title = NULL,
update_title = "Updating...",
assets_folder = "assets",
assets_url_path = "/assets",
assets_ignore = NULL,
eager_loading = FALSE,
serve_locally = TRUE,
pathname_url_base = "/",
pathname_routes_prefix = NULL,
pathname_requests_prefix = NULL,
compress = TRUE,
suppress_callback_exceptions = FALSE,
show_undo_redo = FALSE
)
(character) The browser window title.
(character) The browser window title while a callback
is being processed. Set to NULL
or ""
if you don't want Dash to
automatically update the window title.
(character) Path (relative to the current working
directory) containing extra files to be served by the browser. All files
with ".js" or ".css" extensions will automatically be included on the page,
unless excluded with assets_ignore
. Any other files, such as images, will
only be served if explicitly requested.
(character) URL path for serving assets. For
example, a value of "www" means that any request path that begins with
"/www" will be mapped to the assets_folder
. If your assets are hosted
online, you can provide a CDN URL, such as "http://your-assets-website".
(character) Regular expression for ".js" and ".css" files that should not be automatically included. Ignored files will still be served if explicitly requested. Note that you cannot use this to prevent access to sensitive files since ignored files are accessible by users.
(logical) Whether asynchronous resources are
prefetched (TRUE
) or loaded on-demand (FALSE
).
(logical) Whether to serve HTML dependencies locally or remotely (via URL).
(character) Local URL prefix to use app-wide.
(character) Prefix applied to the backend
routes. Defaults to pathname_url_base
.
(character) Prefix applied to request
endpoints made by Dash's front-end. Defaults to pathname_url_base
.
(logical) Whether to try to compress files and data. If
TRUE
, then brotli
compression is attempted first, then gzip
, then the
deflate
algorithm, before falling back to identity.
(logical) Whether to relay warnings about possible layout mis-specifications when registering a callback.
(logical) If TRUE
, the app will have undo and redo
buttons for stepping through the history of the app state.