foo = function(x,...) {
stopNull()
x
}
foo("1")
foo(x = 1, b = 1)
foo(x = 1, b = NULL)
foo(x = list(a = 1))
foo(x = NA)
foo2 = function(x, .f, y = NULL, ...) {
stopNull(except = "y")
.f(x)
}
foo2(2,function(x)x^2,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.