CSVConnection | R Documentation |
CSVConnection R6 Class
CSVConnection R6 Class
An R6 class representing a connection to a CSV file for the chat module.
The full dataset
Save a message to data source
csv_path
The path to the CSV file.
nlast
The number of messages to be read in and displayed.
Initialize the R6 Object
new()
CSVConnection$new(csv_path, nlast = NULL)
csv_path
The path to the csv file.
nlast
The number of messages to be read-in.
get_data()
Reads the full dataset
CSVConnection$get_data()
insert_message()
CSVConnection$insert_message(message, user, time)
message
The message to be stores
user
The user who entered the message
time
The time when message was submitted
clone()
The objects of this class are cloneable with this method.
CSVConnection$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.