This package provides a reusable chat module for R Shiny apps. The module allows multiple users to connect to a common chat and send messages to each other in real-time.
The messages can either be stored in a database or a rds data. Here is an example of the UI: FeaturesTo use the chat module in your own Shiny app, follow these steps:
library("shinyChatR")
The details of the different steps can be found below:
Database connection for storing chat dataIf you are using a database connection to store the chat messages, you will need to initialize the database table before using the chat module. The following example shows an example how to do this using the DBI
and RSQLite
packages. Replace db_file
with the path to your database file. The data will be saved in the table chat_data
.
If the table does not yet exist, it will be created in the specified connection. Now you can add the chat module to your app:
RDS file for storing chat dataA similar approach is required for rds data.
It is not necessary to initiate the rds file. It will be created if it does not exist. Now you can add the chat module to your app:
InstallationInstall from CRAN with
You can install the development version of shinyChatR from GitHub with:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4