Skip to contents

CSVConnection R6 Class

CSVConnection R6 Class

Value

The full dataset

Save a message to data source

Details

An R6 class representing a connection to a CSV file for the chat module.

Public fields

csv_path

The path to the CSV file.

nlast

The number of messages to be read in and displayed.

Initialize the R6 Object

Methods


Method new()

Usage

CSVConnection$new(csv_path, nlast = NULL)

Arguments

csv_path

The path to the csv file.

nlast

The number of messages to be read-in.


Method get_data()

Reads the full dataset

Usage

CSVConnection$get_data()


Method insert_message()

Usage

CSVConnection$insert_message(message, user, time)

Arguments

message

The message to be stores

user

The user who entered the message

time

The time when message was submitted


Method clone()

The objects of this class are cloneable with this method.

Usage

CSVConnection$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.