context("classes")
test_that("Python class variables are accessible via $", {
skip_if_no_python()
expect_equal(test$PythonClass$FOO, 1)
})
test_that("Python class members can be called via $", {
skip_if_no_python()
expect_equal(test$PythonClass$class_method(), 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.