mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@2d062e0ac5 🚀
This commit is contained in:
parent
8d56d197d6
commit
66780fc453
44 changed files with 1145 additions and 190 deletions
32
reference/dot-resolve_app_version.md
Normal file
32
reference/dot-resolve_app_version.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Resolve the current app version
|
||||
|
||||
Tries two strategies in order:
|
||||
|
||||
1. `utils::packageVersion(package_name)` – works when the package is
|
||||
installed locally (development, local
|
||||
[`runApp()`](https://rdrr.io/pkg/shiny/man/runApp.html)).
|
||||
|
||||
2. `app_version` argument – an explicit version string supplied by the
|
||||
caller, e.g. from an `app_version()` function bundled with the app.
|
||||
Used on shinyapps.io where the package is not installed.
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
.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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue