shiny-server

ShinyApp Google Login

你说的曾经没有我的故事 提交于 2019-12-01 04:24:34
问题 I have a shinyapp and I want to enable certain features to the members who login to the app using google login. I am not able to implement the Google login and authentication process within my app using the GoogleAuthR package. Does anyone has an example of a sample ShinyApp which allows the audience to login through either google or any other social forum authorizations Appreciate a demo with code. PS: I have no intention of running statistics on Google data but I only want to do away with

observeEvent Shiny function used in a module does not work

眉间皱痕 提交于 2019-11-30 16:29:36
I'm developing an app in which I use modules to display different tab's ui content. However it seems like the module does not communicate with the main (or parent) app. It displays the proper ui but is not able to execute the observeEvent function when an actionButton is clicked, it should update the current tab and display the second one. In my code I have created a namespace function and wrapped the actionButton 's id in ns() , however it still does not work. Does anyone knows what's wrong? library(shiny) moduleUI <- function(id){ ns <- NS(id) sidebarPanel( actionButton(ns("action1"), label

R - How to set the path of install.packages() for shiny server ? - Ubuntu

与世无争的帅哥 提交于 2019-11-30 15:16:09
For my system: Ubuntu 12.04 and R 3.03 , whenever I install a custom package in R via >install.packages() the package is installed by default to /home/USER/R/x86_64-pc-linus-gnu-library/3.0/ as opposed to system-wide in /usr/local/lib/R/site-library/ which is needed for shiny-server to work with that package. My temporary solution is to copy the packages to the correct folder after the fact. Question: How can I set the default install path from the start to avoid this problem? Yes -- I consider this to be a misfeature and disable my per-user directory. Moreover, I mostly use a script install.r

Accessing Error log in shiny-server deployed on AWS instance

谁说我不能喝 提交于 2019-11-30 14:51:07
I have a shiny app that runs fine on my local machine in RStudio. I have launched an AWS EC2 Ubuntu instance and installed R and shiny-server on it. When I access the app via browser, the app crashes at a (seemingly) arbitrary point. Where can I access the R console log in order to be able to debug the code? There is no file in /var/log/shiny-server. Furthermore, the console in the browser simply states: The application unexpectedly exited. Diagnostic information is private. Please ask your system admin for permission if you need to check the R logs. I have tried working with options(shiny

Accessing Error log in shiny-server deployed on AWS instance

对着背影说爱祢 提交于 2019-11-29 20:51:42
问题 I have a shiny app that runs fine on my local machine in RStudio. I have launched an AWS EC2 Ubuntu instance and installed R and shiny-server on it. When I access the app via browser, the app crashes at a (seemingly) arbitrary point. Where can I access the R console log in order to be able to debug the code? There is no file in /var/log/shiny-server. Furthermore, the console in the browser simply states: The application unexpectedly exited. Diagnostic information is private. Please ask your

Shiny: What is the option setting to display in the console the messages between server and ui

会有一股神秘感。 提交于 2019-11-29 20:43:27
I remember having used an option setting that enable to print in the R console the messages between the server and ui while a shiny app is running. This option is really useful to understand what is happening in the app. However I cant remember the name of that option and can not find it anymore in the documentation. Can someone can tell what is that option ? Thanks! I finally found it : options(shiny.trace=TRUE) Before running the app. I find it extremely useful to understand what is appending. I don't know why it is not more documented. SteveMW R Studio lists a nice summary of R Shiny global

ERROR: An error has occurred. Check your logs or contact the app author for clarification

拜拜、爱过 提交于 2019-11-29 15:52:06
Error Screen2 Error Screen1 while publishing app on web getting error called: check your log or contact the app auther.please find above image links ERROR: An error has occurred. Check your logs or contact the app author for clarification. if anyone can help me to resolve this error I'd be grateful. There are multiple reasons for this error. Rstudio has provided multiple reasons (link below) but most common are: Environment variables not the same in shiny web vs. local (make sure working directory is set to ~/, start a new rsession and run only the ui.R, server.R or app.R and see if you can

Creating Shiny reactive variable that indicates which widget was last modified

删除回忆录丶 提交于 2019-11-29 14:23:33
Let's say we have a set of widgets each with their own input label. How do we create a reactive object whose value is the character that represents the input ID of the last widget that was modified? For example, if we have ui.R shinyUI(fluidPage( textInput('txt_a', 'Input Text A'), textInput('txt_b', 'Input Text B") )) server.R shinyServer(function(input, output) { last_updated_widget <- reactive({ #hypothetical code that indicates ID value of last updated widget }) }) The desired result is as follows. If the user modifies the first text box, then the value of last_updated_widget() would be

User session is getting interrupted after approx. 45 seconds

拟墨画扇 提交于 2019-11-29 12:38:08
I have the shiny application deployed on the Rshiny pro server(1.5.2) . Application does some heavy computations and generates the report without any problem if it gets completed before approximately 45 seconds . If the computation and report generation goes beyond approximately 45 seconds, user's session / connection to the server is getting interrupted. Then automatically server is reconnecting the disconnected users almost immediately. After few seconds of re-connection the user session is getting reaped and user is presented with the notwork error. From above observations we know that the

Packages missing in shiny-server

£可爱£侵袭症+ 提交于 2019-11-29 08:16:08
I am trying to create a web application using shiny. It requires me to load a package I have installed on my computer. For example: ## Contents ui.R: library(shiny) library(plyr) shinyUI(pageWithSidebar( headerPanel("Hello Shiny!"), sidebarPanel( sliderInput("obs", "Number of observations:", min = 0, max = 1000, value = 500) ), mainPanel( plotOutput("distPlot") ) )) ## Contents server.R: library(shiny) library(plyr) shinyServer(function(input, output) { output$distPlot <- renderPlot({ # generate an rnorm distribution and plot it dist <- rnorm(input$obs) hist(dist) }) }) This works fine if I