DataStream | R Documentation |
DataStream Class
DataStream Class
A R6 class to manage data streams.
next_value
The next data value from the DataStream or an error message.
new()
Initialize the DataStream object
DataStream$new(requery, num = 2)
requery
The requery object, usually of class 'curl'
num
Numeric. Defines the number of lines to read from the data source.
close()
Close the DataStream
This method tries to destroy the object, and closes the requery if opened.
DataStream$close()
A character message indicating the status of the close operation.
get_state()
Get the status of the DataStream
DataStream$get_state()
A character string indicating the current status of the DataStream.
clone()
The objects of this class are cloneable with this method.
DataStream$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.