View source: R/har_online_sources.R
| har_source_callback | R Documentation |
Creates a pull-style source that retrieves observations by calling an R
function. The callback must return either NULL when no observation is
available or an observation compatible with the online observation contract.
In practice this means a scalar, a one-row data.frame, or a list
containing at least a value field and optionally idx, timestamp, and
payload.
har_source_callback(poll_fn, name = "callback")
poll_fn |
Function called to request the next observation. |
name |
Source name. |
A har_source_callback object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.