test_that("authentication works", {
# Input checks
expect_error(set_key(1))
# Test set and unset API key
set_key("apiKey")
expect_equal(Sys.getenv("HERE_API_KEY"), "apiKey")
unset_key()
expect_equal(Sys.getenv("HERE_API_KEY"), "")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.