View source: R/A_swGenericMethods.R
check_version | R Documentation |
Check that version of an input or output object is up-to-date
check_version(
object,
expected_version = rSW2_version(),
level = c("minor", "major", "patch", "devel")
)
object |
An object of class |
expected_version |
A numeric version. The |
level |
A character string. The level at which to detect changes in the version number major.minor.patch.devel. For instance, a value of "minor" would ignore patch-level changes. |
A logical value.
validObject
# Should pass
check_version(rSOILWAT2::sw_exampleData, level = "minor")
check_version(rSOILWAT2::sw_exampleData, "1.0.0", level = "patch")
# May fail due to a recent patch
try(check_version(rSOILWAT2::sw_exampleData, level = "patch"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.