Nothing
Code
callbacks$add("foo")
Condition
Error:
! `callback` must be a function, not the string "foo".
Code
callbacks$add(function(foo) NULL)
Condition
Error:
! `callback` must have the argument `data`; it currently has `foo`.
Code
callbacks$add(function(x, y) x + y)
Condition
Error:
! `callback` must have the argument `data`; it currently has `x` and `y`.
Code
callbacks$invoke()
Condition
Error in `private$callbacks[[as.character(id)]]()`:
! argument "data" is missing, with no default
Code
callbacks$invoke(1, 2)
Condition
Error in `private$callbacks[[as.character(id)]]()`:
! unused argument (2)
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.