#' @method "<" semver
#' @rdname compare
`<.semver` <- function(lhs, rhs) {
lhs$compare(rhs) < 0
}
#' @method ">" semver
#' @rdname compare
`>.semver` <- function(lhs, rhs) {
lhs$compare(rhs) > 0
}
#' @method "<=" semver
#' @rdname compare
`<=.semver` <- function(lhs, rhs) {
lhs$compare(rhs) <= 0
}
#' @method ">=" semver
#' @rdname compare
`>=.semver` <- function(lhs, rhs) {
lhs$compare(rhs) >= 0
}
#' @method "==" semver
#' @rdname compare
`==.semver` <- function(lhs, rhs) {
lhs$compare(rhs) == 0
}
#' @method "!=" semver
#' @rdname compare
`!=.semver` <- function(lhs, rhs) {
lhs$compare(rhs) != 0
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.