mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-21 13:29:06 +02:00
feat: added version check and banner. verbose version can be activated with global variabel on launch.
This commit is contained in:
parent
c23570ca54
commit
cfbee14dcb
8 changed files with 495 additions and 0 deletions
27
man/dot-resolve_app_version.Rd
Normal file
27
man/dot-resolve_app_version.Rd
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/version_check.R
|
||||
\name{.resolve_app_version}
|
||||
\alias{.resolve_app_version}
|
||||
\title{Resolve the current app version}
|
||||
\usage{
|
||||
.resolve_app_version(package_name, app_version = NULL)
|
||||
}
|
||||
\arguments{
|
||||
\item{package_name}{Name of the package / repository.}
|
||||
|
||||
\item{app_version}{Optional fallback version string.}
|
||||
}
|
||||
\value{
|
||||
A character string with the version (e.g. "1.1.0"), or NULL if
|
||||
neither strategy succeeds.
|
||||
}
|
||||
\description{
|
||||
Tries two strategies in order:
|
||||
\enumerate{
|
||||
\item \code{utils::packageVersion(package_name)} -- works when the package
|
||||
is installed locally (development, local \code{runApp()}).
|
||||
\item \code{app_version} argument -- an explicit version string supplied by
|
||||
the caller, e.g. from an \code{app_version()} function bundled with the
|
||||
app. Used on shinyapps.io where the package is not installed.
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue