test_that("init", {
skip_if_no_sympy()
ver <- sympy_version()
expect_true(ver >= "1.4")
})
test_that("smoke", {
skip_if_no_sympy()
sympy <- get_sympy()
ans <- sympy$solve("x**2-1", "x")
expect_equal(length(ans), 2L)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.