check_generic_update_url: Check the address of a generic update server

View source: R/updates.R

check_generic_update_urlR Documentation

Check the address of a generic update server

Description

The generic provider reads latest.yml and the installers from a folder on a static web server. The address must be an ⁠http://⁠ or ⁠https://⁠ URL. Plain ⁠http://⁠ lets anyone on the network change what the app downloads, so it warns unless the host is localhost or ⁠127.0.0.1⁠. An address with a backslash, whitespace or a control character is refused, because the updater would read it differently from how it looks.

Usage

check_generic_update_url(url, arg = "updates.generic.url")

Arguments

url

Value of updates.generic.url.

arg

Name of the setting, used in messages.

Details

enable_auto_updates() calls it for its url argument, and check_update_settings() for updates.generic.url.

Value

url, invisibly. Aborts with class shinyelectron_invalid_update_url when url is not a single ⁠http://⁠ or ⁠https://⁠ address, and warns with class shinyelectron_insecure_update_url for ⁠http://⁠ to any other host.


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