version_satisfies <- function(ver, op, cond) {
ver <- package_version(ver)
switch(
op,
"<" = ver < cond,
"<=" = ver <= cond,
"==" = ver == cond,
">=" = ver >= cond,
">" = ver > cond,
"!=" = ver != cond
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.