shiny-server | Host Shiny applications over the web | Data Visualization library
kandi X-RAY | shiny-server Summary
kandi X-RAY | shiny-server Summary
Shiny Server is a server program that makes Shiny applications available over the web.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of shiny-server
shiny-server Key Features
shiny-server Examples and Code Snippets
Community Discussions
Trending Discussions on shiny-server
QUESTION
I have a shinyApp running on cloud that runs for long (lots of computation taking about 25 minutes) leading to timeout. However, If I keep interacting with the page as the app runs (e.g. navigating the navbar or moving a slider..), timeout does not happen. A possible solution is to keep the web-socket active by updating a value on the current page every 5 seconds or so. I borrowed the idea here https://community.rstudio.com/t/keep-shiny-app-running-in-shiny-server-no-greying-out/27784/4.
...ANSWER
Answered 2021-May-26 at 06:29I managed to find a workaround that keeps the R/Shiny web page active even as intensive workloads run in server.R. I would like to share my working solution.
The first step is to create a div tag or object inside shiny's UI, fluidPage() section. I have a assigned "time_stamp" id to it.
QUESTION
Say that I have this code (which is modified from OpenStreetMaps autoplot error in RStudio Server and Shiny Server in R4.0.0):
...ANSWER
Answered 2021-May-25 at 10:17I obtained the bbox information from the mp object as follows:
QUESTION
I'm building a WebApp with a SQL DB as Backend. I'm Deploying the both parts on Azure, as Azure Webapp and SQL Server.
The SQL server is sercured with Azure AD (AAD). So only Users in a Group can access the DB.
So I'm trying to setup a workflow where the Webapp login the user and collect his Access token. And then uses the token to Query the SQL server.
I've registreted the App in AAD, where it is authorized to read the user ID and impersonate as the user.
I've the following code which is working local. But I can't get it to work deployed locally in a Docker Image.
...ANSWER
Answered 2021-May-17 at 16:06Connecting to SQL Server with an OAuth token requires use of a pre-connection attribute (basically a pointer to the token string). There is an open feature request at the odbc Github repo for this. I encourage you to upvote it, hopefully if it's popular enough it will get implemented.
QUESTION
Trying to have a pie (or preferably, donut) chart that displays totals per category and that allows a drilldown to display specifics per category when clicked. Make sense?
I think I might not have every system setting correct, since also copy/paste standard examples render an empty page. Unless that's somehow outdated or something. My system: Ubuntu 20.04, R 4.0.5, packageVersion("shiny") 1.6.0, shiny-server --version 1.5.16.958 Blank examples: https://plotly-r.com/linking-views-with-shiny.html#drill-down and Creating drill down report in R Shiny (amongst others)
My current attempt (not reactive yet because I can't for the life of me figure it out):
...ANSWER
Answered 2021-May-11 at 07:19The key is to use input$donut_selected
, the automatically generated _selected
-suffixed input, see https://davidgohel.github.io/ggiraph/articles/offcran/shiny.html#access-the-selected-values.
Like so:
QUESTION
I am deploying Shiny-server in container. By default Shiny-server listens on port 3838, here is piece from shiny-server.conf
...ANSWER
Answered 2021-Feb-26 at 20:52Add
QUESTION
I am building app where a user can make edits to a datatable and the hit a button to reflect the changes in a non-editable copy of this datatable (in the final project, I will need to have two datasets that need to be matched manually), but for now this small MWE shows the problem I have with making a copy of the reactive table in which changes can be made, without changing the data of the original reactive table. I would like to make this app work, where you click edit a cell in the table dat_joined$data/output$mytable and that those changes do reflect in a new table mydf$data/output$table2. To do mydf$data initially (before any changes are made) needs to be a copy of dat_joined$data This is a follow up on this question and answer: how to make a copy of a reactive value in shiny server function
...ANSWER
Answered 2021-Feb-23 at 17:36Any changes you make in the top table is reflected in the bottom table after you press the button "Process". Try this
QUESTION
I am trying to develop a shiny app to predict the price of diamonds based on carats using the "diamonds" data on R. Everything works except the plot section which returns an error: object "carat" not found. the code seems to work outside of shiny so I am guessing the problem is with reading in the dataset into the shiny-server. I am a novice with regards to shiny and I have explored similar problems on here and came up short, I would like to know what I'm doing wrong. I tried to attach the images of the error and the expected output in this query. Thank you!
...ANSWER
Answered 2021-Feb-15 at 13:44The problem is how you define the new data for the prediction. As you've specified carat
in the formula of the model, the new data.frame also needs to contain this column.
Try
QUESTION
I have a shiny application that uses a csv file to generate different figures. I upload my application in my personal linux server using shiny-server. I use this structure for my application
- global.R
- ui.R
- server.R
Inside my global.R file I have this line, which help me to load and read my csv file
...ANSWER
Answered 2021-Feb-17 at 03:12In addition to the comments from Gregor and HubertL:
To load large CSV files can slow down. I had the same issue and changed to r binary file (rds) with saveRDS()
and readRDS()
. As a first step you can try rds file and see if the issue is solved.
To check whether there is a performance difference you can use system.time(). Returns the time taken to evaluate any R expression.
In your case:
QUESTION
I am trying to run a ShinyApp via R studio. The R Studio is on my work computer and I am accessing it from my home computer via remote access.
I tried changing the host argument in runApp to "0.0.0.0" (as suggested:here ) and even then all i get is a dark blank screen.
Any help, appreciated.
...ANSWER
Answered 2021-Feb-13 at 01:38Thanks to a few colleagues at work, I figured that there could be an issue with accessing the shiny output via R studio in built browser when accessing it remotely. The workaround which works for me is to open a new browser via runApp(shinyobject<-shinyApp(ui, server), launch.browser=T)
QUESTION
When I use the plotly
library in a shiny-server I have the following issue:
The app will work correctly using "Run App" command in RStudio Server, but when deployed on the shiny-server:3838 it gives the following error Error in library(plotly) : there is no package called ‘plotly’ Calls: runApp ... sourceUTF8 -> eval -> eval -> ..stacktraceon.. -> library Execution halted
It seems that plotly
library for some reason is not installed in shiny-server although it is installed and working for RStudio Server. Does anyone know how to fix it.
I initially thought it could be an issue with my code, but I can actually replicate the exact same issue if I use a code sample provided by plotly-r website here
The code to replicate is below:
...ANSWER
Answered 2021-Jan-24 at 13:43Run this on the machine where the shiny server is installed. This installs the plotly package.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shiny-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page