#' # pyImport
require(testthat)
require(PythonEmbedInR)
invisible(capture.output(pyConnect()))
expect_that(pyExec("import os"), equals(0))
fun <- pyFunction("os.getcwd")
expect_that(class(fun), equals("pyFunction"))
expect_that(fun(), equals(getwd()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.