Testing an R application deployed in Shiny Server - r

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.

Related

shiny app unreachable by shinyloadtest library

I am trying to load-test a shiny app on RStudio Connect. The shinyloadtest library claims to be able to load-test shiny apps on Rstudio Connect. I have installed this library and the shinnycannon app/library. I try to run
shinyloadtest::record_session("https://rsconnect-dev.the_rest.io/of/my/url/")
and receive the following error:
Target URL https://rsconnect-dev.the_rest.io/of/my/url/ does not appear to be a Shiny application.
The actual url is different but starts with https://rsconnect-dev. It appears that one of the internal functions ( detect.R) is saying that the url is the incorrect format. Have you found a way to bypass this?
You probably found a solution but for future shinyloadtest users it could help.
Shiny applications hosted on shinyapps.io can't be reached with shinyloadtest package.
Try with this shiny example url = "https://daattali.com/shiny/mimic-google-form/" it should works.

R - Shiny App : How to host a Shiny App without interruption? If possible on Github or Shiny Server

So my shiny app goes to sleep since it is running locally on my computer, I want people to be able to access it even when my computer is turned off, i.e I want it to be hosted somewhere online so that it can continuously run. Any help would be great

Shiny app that opens other shiny apps

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!

Is shiny dependent on having Rstudio?

I am trying to develop an shiny app, it works on my PC and not on my office server. The IT person at my office said that it is because the shiny depends on having Rstudio which they cannot install.
Therefore, I uninstalled my Rsudio to test if it works without the Rstudio. It did work and now I am asking to make sure that shiny is not dependent on having Rstudio.
Also, I can't find the R dependency of the shiny also. Does it need to be >R.3.2.5?
edited:
To clarify, this is the simple example from the shiny tutorial. It looks like this in my PC (without having shiny). I don't know how to check if I have any shiny server installed?!!!
And this is how it looks like when I try the same code on our server (R version is R/3.2.2)
Thanks

Publish Rstudio Shiny App in intranet

I am trying to build a Rstudio/Shiny App and post it in our intranet so that everyone else in our office could see it. I am a windows guy, and the instructions online about how to setup a shiny server within Linux environment is a bit difficult for me. Is there an easy way that I can could accomplish this goal without messing up with Linux. Even if I have to do so, is there an easy way to just have my webpage available to people within our company, not everyone on the internet. Thanks!
you don't need shiny server for this, you just need to run an R instance with shiny
http://rstudio.github.io/shiny/tutorial/#ui-and-server
http://shiny.rstudio.com/
shiny automatically runs it at local host...
you need to change it to your own ip if you want your colleges be able to access it..
ip="192.168.178.10" # change this!
runApp("../microplate",host=ip) # change microplate to the name of your shiny package/app
RStudio also has a hosted Shiny option that is currently in Alpha. You can sign up here https://www.shinyapps.io/admin/#/signup
With hosted Shiny the intention is to let developers focus on building applications while RStudio will worry about managing servers, monitoring performance, and ensuring uptime.
I am sharing apps using the following:
runApp(list(ui=ui, server=server), host="0.0.0.0", port=1234)
(if your ui.R and server.R are in the same file)
runApp("C:/shinyapp", host="0.0.0.0", port=1234)
(if you have an ui.R and a server.R files as 2 files in the shinyapp folder)
After, I send my IP followed by the port that I set up as an hyperlink. Assuming that my IP is 192.168.178.10, I will send:
http://192.168.178.10:1234
Monitoring a shiny app shared in my internal network

Resources