Skip to contents

RDSConnection R6 Class

RDSConnection R6 Class

Value

The full dataset

Save a message to data source

Details

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

Public fields

rds_path

The path to the rds file.

Initialize the R6 Object

Methods


Method new()

Usage

RDSConnection$new(rds_path)

Arguments

rds_path

The path to the rds file.


Method get_data()

Reads the full dataset

Usage

RDSConnection$get_data()


Method insert_message()

Usage

RDSConnection$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

RDSConnection$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.