Skip to content

Instantly share code, notes, and snippets.

View bezany's full-sized avatar

Anton Bezkrovnyi bezany

View GitHub Profile
@bezany
bezany / app.R
Last active April 10, 2017 09:46 — forked from daattali/app.R
Basic form-submission shiny app used in "Persistent data storage in shiny apps" article http://deanattali.com/blog/shiny-persistent-data-storage/ Upd: add mobgolite example
library(shiny)
library(mongolite)
# Define the fields we want to save from the form
fields <- c("name", "used_shiny", "r_num_years")
# Save a response
# ---- This is one of the two functions we will change for every storage type ----
saveData <- function(data) {
data <- as.data.frame(t(data))