cairoVersion()
cairoVersionString()
Snapshots --------- 1.1.2 - A snapshot (working toward the 1.2.0 release)
In-progress development (eg. from git) -------------------------------------- 1.0.1 - Development on a maintenance branch (toward 1.0.2 release) 1.1.1 - Development on head (toward 1.1.2 snapshot and 1.2.0 release)
cairoVersionEncode()
) to perform the encoding.
Compile-time
--------
R users should not be concerned with compile-time version checking.Run-time -------- cairoVersionString() Human-readable, use compareVersion() for comparison cairoVersion() Encoded, not very useful in R For example, checking that the cairo version is greater than or equal to 1.0.0 could be achieved at compile-time or run-time as follows:
# R users should not be concerned with compile-time checking, but at runtime:
if (compareVersion(cairoVersionString(), "1.0.0") == 1) cat("Running with suitable cairo version:", cairoVersionString(), "\n")