| app_check | R Documentation |
Validates that a Shiny application can be built as an Electron app. Checks app structure, configuration, build targets, runtime availability, dependencies, and signing credentials. Reports issues without aborting.
app_check(
appdir = ".",
app_type = NULL,
runtime_strategy = NULL,
platform = NULL,
sign = NULL,
verbose = TRUE
)
appdir |
Character string. Path to the app directory. Default ".". |
app_type |
Character string or NULL. App type override.
If NULL, reads from config or autodetects from files in |
runtime_strategy |
Character string or NULL. Runtime strategy override. |
platform |
Character vector or NULL. Target platforms override. If
NULL, uses |
sign |
Logical or NULL. Signing override. |
verbose |
Logical. Whether to print the report. Default TRUE. |
Files named in _shinyelectron.yml, such as icon or splash.image, are
looked up relative to appdir, as export() does. A missing icon is an
error, because export() stops on it; other missing files are warnings.
So is an icon that a target platform cannot use, because of its format or
the size of its image, since that platform's build shows the default
Electron icon, and an icons entry that the build leaves out, since it
gives one icon to every target platform.
An R package the app uses that is not on dependencies.r.repos, or a
Python requirement that points at a URL, a git repository, or a path, is an
error too, since export() stops on it. Other dependency problems are
warnings.
Invisible list with:
pass |
Logical. TRUE if no errors found. |
errors |
Character vector of fatal issues. |
warnings |
Character vector of non-fatal issues. |
info |
Character vector of informational notes. |
# Check a bundled example app
app_check(example_app("r"))
# Check with explicit overrides
app_check(example_app("r"), app_type = "r-shiny", runtime_strategy = "system")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.