#' saveData
#'
#' @description used in shiny app
#'
#' @param data
#'
#' @return
#' @export
#'
saveData <- function(data) {
library(Cairo)
library(ggplot2)
library(shiny)
library(shinythemes)
library(viridis)
data <- as.data.frame(t(data))
if (exists("responses")) {
responses <<- rbind(responses, data)
} else {
responses <<- data
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.