check_config_icon: Check the app icon named in the configuration

View source: R/config-paths.R

check_config_iconR Documentation

Check the app icon named in the configuration

Description

A configured icon that does not exist stops the export, as a missing icon argument does in validate_icon(): a build that quietly fell back to the default Electron icon would be easy to ship by mistake.

Usage

check_config_icon(config, platform, base_dir, call = parent.frame())

Arguments

config

List. The configuration.

platform

Character. The target platform: "mac", "win" or "linux".

base_dir

Character. The directory relative paths in ⁠_shinyelectron.yml⁠ were resolved against, named in the error.

call

Environment. The function the error is reported from.

Value

The icon path, or NULL when no icon is configured.


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