## Testing pyDict
context("pyDict")
test_that("pyDict", {
pyExec('myPyDict = {"a":1, "b":2, "c":3}')
myDict <- pyDict("myPyDict")
expect_equal(myDict$get("a"), 1)
expect_equal(myDict$pop("a"), 1)
expect_equal(myDict$setdefault("a", "A") , "A")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.