shiny_events_to_dbi: Record Shiny events on a database

Description Usage Arguments Value

View source: R/shiny_events.R

Description

Uses the 'DBI' package to record events. Here are a couple of highlights of how it works: uses the 'dbWriteTable()' function, this allows it to work on most databases 'DBI' is able to interact with, and the 'append = TRUE' argument is used. This allows the table to be created if it doesn't exists yet, and only to add new records to the table, instead of overriding its content

Usage

1
2
shiny_events_to_dbi(app = basename(getwd()), table = "shinyevents",
  connection = NULL)

Arguments

app

The name of the app. Defaults to the name of the script's containing folder.

table

The name of the database table to use. Defautls to "shinyevents". If the table does not exist, it will created. If it does exist, it will expect the fields to be: 'guid', 'app', 'datetime', 'activity', 'value'

connection

The name of the database connection

Value

An environment variable containing: a GUID, the name of the app, entry() function and event() function.


edgararuiz/shinyevents documentation built on Nov. 4, 2019, 11:33 a.m.