context("setServer")
test_that("Sets the baseURL pkg variable", {
setServer("https://my.server.com")
expect_equal(pkg.env$baseURL, "https://my.server.com")
})
test_that("Trims trailing /", {
setServer("https://my.server.com/")
expect_equal(pkg.env$baseURL, "https://my.server.com")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.