is_current_version <- function(version) {
check_version <- function(component) {
cfg$version_info[[component]] == version[[component]]
}
matching_versions <- vapply(names(version), check_version, logical(1))
all(matching_versions) && length(version) == length(cfg$version_info)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.