setGeneric(
name = "foo",
signature = c(
"input"
),
def = function(
input = NULL,
id = character(),
value = NULL,
where = parent.frame(), ## TODO: verify this!!!
...
) {
standardGeneric("foo")
}
)
setMethod(
f = "foo",
signature = signature(
input = "missing"
),
definition = function(
input,
value,
where,
...
) {
print(ls(where))
}
)
foo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.