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
Related
I have a basic shiny app (ui.r and server.r) that I am able to run in RStudio.
But seems like I can't run it in IntelliJ.
I have installed the R language support plug-in and I can run r scripts.
But when I try to run ui.r, the only thing I get is html output in the console.
Does anyone recognise this? I probably forgot to configure something?
I do have experience running java (web) apps with IntelliJ. With tomcat setup e.g.
In the run configurations, I didn't see anything specific for a shiny server or something R related. So I guess that is not where I should search ...
Any idea? Is more information needed?
Thx in adavance.
edit:
The answer is here: https://youtrack.jetbrains.com/issue/R-895
To run a shiny App (R framework) on PyCharm you must enable R first and indicate where is the R interpreter located:
R options appears on the bar status. One of them is R Console. Click on it. Write getwd() command to see if you are in the root directory of the project. If not, set it with setwd() command:
Next, write runApp() and DO NOT press enter yet. You must press alt+enter and then click on load Shiny:
I am trying to learn Shiny in RStudio. Yesterday, I was going through some tutorials on the Shiny website and I could access all the example applications in the package and run them on RStudio locally. Today, when I go into RStudio and try and run the examples in Shiny, it shows Listening on http....(ip here) in the console but nothing opens. I can't find the answer anywhere.
The code is as follows:
library(shiny)
runExample("01_hello")
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.
Is there a known issue with Red Hat Enterprise Linux 5.8 and shiny install? I have R and shiny code working on multiple PCs and Mac OS. My Linux farm IT/SysAdmin person says the R and shiny packages installed properly (I'm at his mercy for installs.) I can run other R packages he installed.
But when I
runApp()
from a R prompt, the browser fires-up and input widgets and non-reactive things show up, but output from reactive and render blocks do not appear. There are no traceback or error messages in R console.
This behavior is the same for demonstration shiny code from Rstudio.
I can't try URL examples served from shiny-server sites to see if those work because external webpage browsing is turned off in this system. Thanks.
My support IT person did not give me full details, but he said he needed to recompile some of the base OS packages and install in a separate location, then upgrade to Firefox 12. It now works.
I apologize for this extremely noobish question, but I can't find the answer. I just finished writing my R Shiny app and am preparing to send it off to my network guy so he can load it on my company server.
However, to run my app, I currently have to do the commands:
>library("shiny")
>runApp("myApp")
I don't want the network guy to have to deal with running library("shiny"), so how can I put this in my code? I already have
library(shiny)
in my server.R
In addition, I have many packages implemented, including googleVis, ggplot2, and reshape2. I have these as
library(reshape2)
library(googleVis)
library(ggplot2)
But when using my app on a new computer I have to use 'install.packages()'. Will my network guy or app users have to worry about this?
Thanks.
Assuming you have shiny package installed on the company's server, you can just call
shiny::runApp()
What :: does is bringing a symbol from a package that hasn't being imported yet.
I have the following shell script runapp which lets me run shiny apps from the command line:
#!/bin/bash
R -e "shiny::runApp('$1')"
So I can say runapp directory-with-shiny-script/ and it runs the app.
You can't. It's like asking how to run R without R.
And yes, to run the code on a new computer, you will have to provide its dependencies.