Shiny app that opens other shiny apps - r

Currently I have a pretty big modularized Shiny applications. It basically consists of 6 modules that do different things and I access them through a dashboard sidebar.
However, as a result everything in the Shiny app has to be wrapped in ns() in order to work properly. This results in a lot of difficulties in some cases.
Thus, I wanted to ask whether it is possible to create one starting shiny application, which has buttons that open other shiny applications. My idea is to put each module in a standalone application (or group them in 3 standalone applications with 2 modules inside each). The starting app being a Markdown file works fine as well.
Thanks!

Related

Why doesn't anything happen after copying Shiny App files to Shiny Server?

I have encountered problems when trying to upload Shiny apps onto a Shiny Server that is already up and running.
I copied a folder containing the ui.R and server.R files on to the server.
When I try to open the app in the browser by accessing webpage /servername/myUser/folderName, nothing happens. I remain on the front page.
I have tried with several different small example programs, that all run in R when I try.
I also tried to gather my ui.R and server.R to one file "app.R", but the problem persists.
There is another Shiny App on the server, and that one works fine by accessing /servername/otherUser/folderName, so I am not sure what the problem is.
It is the first time I am trying this so it might be something simple that I am overlooking.
I figured it out, the server I was using hadn't installed the packages necessary to run the App.

Lock FlexDashboard Markdown for edits

I am trying to find a way to make a FlexDashboard (using Shiny runtime) accessible to a colleague without access to the internet.
To provide my colleague with the full interactive experience (drop-down menus etc), I was thinking of simply installing R on my colleagues laptop and share the markdown script with them but does anyone know a way to lock the script for edits?
I just want to make sure that there is no accidental edits which might mess up the running of the markdown.
Look forward to hearing any inputs!
I would create a shiny application tweak it perfectly and then write a docker script to run they shiny application as an independent entity,
Your friend can use that docker container to run the dashboard and interact with it, but has no need of opening the script or anything else, just bake all the functionality into the shiny application and call the docker container and the flexdashboard will publish to a console.

Deploying a shiny app gives different results compared to when I run it locally

I have a shiny app that runs smoothly locally. It also runs very well after I deployed it as a web app.
It gets multiple .CSV input files that I use for different analysis. In one case, I notice significant difference in the results I get (returned as table output) between the app and when I run it locally. The one that runs locally being correct.
What could be creating this difference? This is a bit baffling for me and any help would be so much appreciated.
Thanks,
Yonas
---------------Additional comments
It is very hard for me to show the code as it is a big one and a bit difficult to pin point where the issue is happening. I am attaching the same output table with different outputs when run locally and right after I deployed it. The error is localized to the two columns in most cases. (https://i.stack.imgur.com/Jfuwx.png)

Deployed Shiny app not showing any UI elements

I had a fully functional Shiny App (both locally and on Shiny.io). Recently, I made a very small change to the ui: all I did was change the order of one of the panels, a purely cosmetic change.
Afterwards, I published the updated app and all hell broke lose. The deployed app does not have any of the UI elements such as the tabs and sidebar. Not wanting to spend too much time debugging, I pulled up the original working script and tried to publish the old (previously working version), and still, everything is broken. See: https://imgur.com/a/SRYIVLL... local version on right, deployed on left.
What could have been the problem? Thanks!

Testing an R application deployed in Shiny Server

I have a shiny app that works locally even as a shiny app. However when I deploy it in a Shiny Server(free) running on RedHat 5 within my organization, there are strange issues with gsub. To debug this, I would like to see the data at different instances in the shiny code. So, is there something like console.log as in javascript?
I checked the documentations like the one here http://shiny.rstudio.com/articles/debugging.html, but they talk only about a shiny app running within RStudio which is not my case.
Note:
1. The code that I want to use is not within the server function of the shiny app.
2. I cannot install new packages, because of IT restrictions
3. I don't have access to shiny server logs
Hope the question is clear.

Resources