# Functions ====
#' @importFrom XML compareXMLDocs
#'
#' @export
identicalXML <- function(A, B) {
stopifnot(
class(A) == "XMLInternalDocument" &&
class(B) == "XMLInternalDocument"
)
comp <- XML::compareXMLDocs(A, B)
test <- !any(sapply(comp, length) > 0)
if (isFALSE(test)) {
warning(comp)
}
return(test)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.