resolve_runtime_version: Resolve the runtime version to use for a build

View source: R/runtime-versions.R

resolve_runtime_versionR Documentation

Resolve the runtime version to use for a build

Description

An explicit ⁠dependencies.<runtime>.version⁠ in config wins. For R, unset and the literal "latest" both give the newest portable R for the platform, from r_portable_latest_version(), which falls back to the version in SHINYELECTRON_DEFAULTS$runtime_versions when the lookup fails. For Python and Electron, "latest" calls the live resolver and unset gives the maintained pin in SHINYELECTRON_DEFAULTS$runtime_versions.

Usage

resolve_runtime_version(runtime, config, platform = NULL)

Arguments

runtime

One of "r", "python", "electron".

config

Full app configuration list.

platform

Character string or NULL. Target platform of the R lookup, NULL for the build machine. Python and Electron ignore it.

Value

Character version string.


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