Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

ShinyApps.io disconnected when shared file on server is updated

$
0
0

I have an app which runs with a permanent .xlsx file loaded to the server. This file serves the purpose of storing various data points in the app for each user, each time the app is run. In other word, the file is modified when the app is run.

My intention is that all users should see the same data set stored in this file. Whenever someone edits it, it should be refreshed in other session.

When I run the app on my local computer (of course with just one session), this file is updated and reflected in the app. However, when I deploy it on ShinyApps.io, and try running 2 sessions simultaneously, if I modify this file in one session, within a few seconds, both sessions get disconnected. Before they get disconnected, neither of them displays an updated data set. However, after being disconnected and rerun, they both display the updated data set.

I suppose the disconnection was due to the shared file being updated. Is there anyway to circumvent this? Or is this situation unavoidable with ShinyApps.io.

My .xlsx has less than 20 rows of data, each row has about 100 data points.

Below is what I see in the ShinyApps.io log:

2020-01-12T12:18:28.005361+00:00 shinyapps[1648453]: LANG: en_US.UTF-8
2020-01-12T12:18:28.005363+00:00 shinyapps[1648453]: R version: 3.6.1
2020-01-12T12:18:28.005584+00:00 shinyapps[1648453]: Using pandoc at /opt/connect/ext/pandoc2
2020-01-12T12:18:28.133962+00:00 shinyapps[1648453]: Using jsonlite for JSON processing
2020-01-12T12:18:28.005364+00:00 shinyapps[1648453]: shiny version: 1.3.2
2020-01-12T12:18:28.138413+00:00 shinyapps[1648453]: Starting R with process ID: '315'
2020-01-12T12:18:28.005390+00:00 shinyapps[1648453]: httpuv version: 1.5.1
2020-01-12T12:18:28.005391+00:00 shinyapps[1648453]: rmarkdown version: (none)
2020-01-12T12:18:28.005419+00:00 shinyapps[1648453]: knitr version: (none)
2020-01-12T12:18:28.005421+00:00 shinyapps[1648453]: jsonlite version: 1.6
2020-01-12T12:18:28.005432+00:00 shinyapps[1648453]: RJSONIO version: (none)
2020-01-12T12:18:28.005433+00:00 shinyapps[1648453]: htmltools version: 0.3.6
2020-01-12T12:18:28.138411+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.451058+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.451060+00:00 shinyapps[1648453]: Attaching package: ‘dplyr’
2020-01-12T12:18:28.451061+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.452439+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.661505+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.452049+00:00 shinyapps[1648453]: The following objects are masked from ‘package:stats’:
2020-01-12T12:18:28.452050+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.452050+00:00 shinyapps[1648453]:     filter, lag
2020-01-12T12:18:28.452437+00:00 shinyapps[1648453]: The following objects are masked from ‘package:base’:
2020-01-12T12:18:28.452438+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.452051+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.452438+00:00 shinyapps[1648453]:     intersect, setdiff, setequal, union
2020-01-12T12:18:28.661507+00:00 shinyapps[1648453]: Listening on http://127.0.0.1:45452
2020-01-12T12:18:28.731886+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.731899+00:00 shinyapps[1648453]: Attaching package: ‘shinydashboard’
2020-01-12T12:18:28.731900+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.732314+00:00 shinyapps[1648453]: The following object is masked from ‘package:graphics’:
2020-01-12T12:18:28.732316+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.732317+00:00 shinyapps[1648453]:     box
2020-01-12T12:18:28.732317+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.813658+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.813659+00:00 shinyapps[1648453]: Attaching package: ‘shinyjs’
2020-01-12T12:18:28.813660+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.814063+00:00 shinyapps[1648453]: The following object is masked from ‘package:shiny’:
2020-01-12T12:18:28.814063+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.814064+00:00 shinyapps[1648453]:     runExample
2020-01-12T12:18:28.814064+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.814458+00:00 shinyapps[1648453]: The following objects are masked from ‘package:methods’:
2020-01-12T12:18:28.814458+00:00 shinyapps[1648453]: 
2020-01-12T12:18:28.814459+00:00 shinyapps[1648453]:     removeClass, show
2020-01-12T12:18:28.814460+00:00 shinyapps[1648453]: 
2020-01-12T12:18:32.698982+00:00 shinyapps[1648453]: 
2020-01-12T12:18:32.698984+00:00 shinyapps[1648453]: Attaching package: ‘DT’
2020-01-12T12:18:32.698985+00:00 shinyapps[1648453]: 
2020-01-12T12:18:32.699400+00:00 shinyapps[1648453]: The following objects are masked from ‘package:shiny’:
2020-01-12T12:18:32.699400+00:00 shinyapps[1648453]: 
2020-01-12T12:18:32.699401+00:00 shinyapps[1648453]:     dataTableOutput, renderDataTable

Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>