| ClosestVersion | R Documentation |
API changes happen at set versions, and knowing how a current running version
relates to versions introducing API changes is important.
ClosestVersion approximages both “rounding down” (eg. to
determine minimum version with new API addition) and “rounding up”
(eg. to determine maximum version before API deletion) for semantic versions.
ClosestVersion(
query,
targets,
direction = c("min", "max"),
inclusive = direction == "min"
)
query |
A query version ( |
targets |
A vector of target versions ( |
direction |
Which way should we check for closest version? Choose from:
|
inclusive |
Perform an inclusive comparison (eg. |
The version from targets that is closest to query as a
character vector
numeric_version
SeuratDisk:::ClosestVersion('3.1.0', targets = c('3.0.0', '1.4.9', '4.3.2'))
SeuratDisk:::ClosestVersion('3.1.0', targets = c('3.0.0', '1.4.9', '4.3.2'), direction = 'max')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.