test_that("translate_SQRT returns the expected string", {
expect_equal(translate_SQRT("SQRT(x)"), "sqrt(x)")
})
test_that("translate_EXP returns the expected string", {
eq <- "EXP(-par_alpha*P)"
actual <- translate_EXP(eq)
expected <- "exp(-par_alpha*P)"
expect_equal(actual, expected)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.