check-vector-isPackageVersion | R Documentation |
Is the package installed and a specific version?
isPackageVersion(x, op = ">=")
x |
|
op |
|
isPackageVersion()
: Vectorized.
Updated 2023-10-06.
## TRUE ====
isPackageVersion(
x = c(
"base" = utils::packageVersion("base"),
"utils" = utils::packageVersion("utils")
),
op = "=="
)
## FALSE ====
isPackageVersion(
x = c(
"base" = utils::packageVersion("base"),
"utils" = utils::packageVersion("utils")
),
op = ">"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.