mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
749 B
749 B
Resolve the current app version
Tries two strategies in order:
-
utils::packageVersion(package_name)– works when the package is installed locally (development, localrunApp()). -
app_versionargument – an explicit version string supplied by the caller, e.g. from anapp_version()function bundled with the app. Used on shinyapps.io where the package is not installed.
Usage
.resolve_app_version(package_name, app_version = NULL)
Arguments
-
package_name:
Name of the package / repository.
-
app_version:
Optional fallback version string.
Value
A character string with the version (e.g. "1.1.0"), or NULL if neither strategy succeeds.