test_that("set_currency works", {
# Input checks
expect_error(set_currency(1))
# Test set currency
set_currency("CHF")
expect_equal(Sys.getenv("HERE_CURRENCY"), "CHF")
# Test unset currency
set_currency()
expect_equal(Sys.getenv("HERE_CURRENCY"), "")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.