test_that(
"extract_root_hash",
{
expect_snapshot_error(
extract_proof("ddd"),
cran = FALSE
)
expect_snapshot(
x = extract_root_hash(system.file("certificate.Bitcoin.pdf", package = "ROriginStamp")),
cran = TRUE
)
expect_snapshot(
x = extract_root_hash(system.file("proof.Bitcoin.xml", package = "ROriginStamp")),
cran = TRUE
)
expect_snapshot(
x = extract_root_hash(system.file("proof.Bitcoin.xml", package = "ROriginStamp")),
cran = TRUE
)
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.