app_check: Check Shiny Application Readiness for Export

View source: R/app_check.R

app_checkR Documentation

Check Shiny Application Readiness for Export

Description

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.

Usage

app_check(
  appdir = ".",
  app_type = NULL,
  runtime_strategy = NULL,
  platform = NULL,
  sign = NULL,
  verbose = TRUE
)

Arguments

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 appdir.

runtime_strategy

Character string or NULL. Runtime strategy override.

platform

Character vector or NULL. Target platforms override. If NULL, uses build.platforms from ⁠_shinyelectron.yml⁠, then the current platform, as export() does. The architectures come from build.architectures, then the current architecture.

sign

Logical or NULL. Signing override.

verbose

Logical. Whether to print the report. Default TRUE.

Details

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.

Value

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.

Examples


# 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")



shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.