Return cmtk version or test for presence of at least a specific version

cmtk.version(minimum = NULL)

Arguments

minimum

If specified checks that the cmtk version

Value

returns numeric_version representation of CMTK version or if minimum is not NULL, returns a logical indicating whether the installed version exceeds the current version. If CMTK is not installed returns NA.

Details

NB this function has the side effect of setting an option nat.cmtk.version the first time that it is run in the current R session.

Examples

if (FALSE) {
cmtk.version()
cmtk.version('3.2.2')
}