Nothing
context("closures")
test_that("R functions are converted to Python closures", {
skip_if_no_python()
func <- function(x, y) x - y
pyfunc <- test$reflect(func)
expect_equal(func(10,15), test$callFunc(pyfunc, 10,15))
})
test_that("R functions can accept named arguments from Python", {
skip_if_no_python()
func <- function(x, y) x - y
pyfunc <- test$reflect(func)
expect_equal(func(x = 15, y = 10), test$callFunc(pyfunc, y = 10, x = 15))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.