Git Product home page Git Product logo

shiny-server's Introduction

Dean Attali's Shiny Server

Copyright 2016 Dean Attali. Licensed under the MIT license.

This repo contains the setup of my Shiny server. It is a git repo under /srv/shiny-server on my server.

To learn how you can get your own Shiny Server in a similar way, read my tutorial about how to set up Shiny Server.

Shiny servers can host shiny apps and R markdown documents.

The config directory contains a few configuration files that are used on the server.


Original author: Dean Attali deanattali.com

shiny-server's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shiny-server's Issues

persistent storage app not working

Nice tutorial on persistent data storage in Shiny. I have been trying to get some a dropbox storage to go, with no luck. I checked your app https://daattali.com/shiny/persistent-data-storage/ and they don't seem to run either for any of the remote storage options. Leads me to think there is a larger authentication issue or that your demo apps for remote storage are purposely disabled which in this case is a non-issue. Any Ideas?

Below is a screen shot with the error from your demo app
image

dateInput parsed into multiple columns in table

Hi,

Excellent and much needed implementation.

I found an issue with date and time inputs when using local tables as storage system: their posix elements are spread across multiple columns. Small example below.

library(shiny)

outputDir <- "RESPONSES"

fields <- c("Date", "Time")

saveData <- function(data) {
data <- t(data)
fileName <- sprintf("%s_%s.csv", as.integer(Sys.time()), digest::digest(data))
write.csv(
x = data,
file = file.path(outputDir, fileName),
row.names = FALSE, quote = TRUE
)
}

loadData <- function() {
files <- list.files(outputDir, full.names = TRUE)
data <- lapply(files, read.csv, stringsAsFactors = FALSE)
data <- do.call(rbind, data)
data
}

ui <- fluidPage(
dateInput("Date", "Date",
format = "ddmmyyyy",
value = ""),
timeInput("Time", "Time",
seconds = F),
actionButton("Submit", "Submit", width = "280px"),
hr(),
DT::dataTableOutput("responses", width = 300), tags$hr()
)

server = function(input, output, session) {
formData <- reactive({
data <- sapply(fields, function(x) input[[x]])
data
})

observeEvent(input$Submeter, {
saveData(formData())
})
output$responses <- DT::renderDataTable({
input$Submeter
loadData()
})
}

shinyApp(ui, server)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.