shiny-server

pandoc version 1.12.3 or higher is required and was not found (R shiny)

你说的曾经没有我的故事 提交于 2019-11-28 05:13:34
I have a problem generating a pdf report from my app shiny which is hosted on a server. the app works fine but when I press the button to download the report, I get this error : pandoc version 1.12.3 or higher is required and was not found. The proble is that if I type pandoc -v I get: pandoc 1.12.3.3 Compiled with texmath 0.6.6, highlighting-kate 0.5.6.1. Syntax highlighting is supported for the following languages: actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d, diff, djangotemplate, doxygen,

developing shiny app as a package and deploying it to shiny server

我们两清 提交于 2019-11-28 02:51:48
I am developing a shiny app and since I wanted to use automated testing and documentation of the function, I started to develop the interface within a package (as recommended here ). I develop this shiny app within RStudio and I have a server.R file which I can click on the Run App button within RStudio and everything works. I commit my package to a github repository and from this point I want to install it on my R shiny server using devtools and install_github function. Now I am wondering how to start my app within the server. I was naively thinking to install the package and pointing to the

Hosting and setting up own shiny apps without shiny server

戏子无情 提交于 2019-11-28 02:38:25
I'm trying to make shiny apps available to my coworkers without them having to run or even have R installed. So I read this webpage and found this sentence: If you are familiar with web hosting or have access to an IT department, you can host your Shiny apps yourself. under the ' Share as a web page '-section. How can I do this? The problem is that my company is bound to certain restrictions regarding web hosting and security and so on, and will not (for now) pay for a shiny-server-pro. But the sentence above gives me hope to set up something ourselves to convince them. If your PC and your

Does R-Server or Shiny Server create a new R process/instance for each user?

时间秒杀一切 提交于 2019-11-28 02:32:49
问题 I'm considering different solutions for creating a Web application that shows some data analytics to the user. I want to use R with shiny server but I'm not certain how it is gonna scale for large number of users. Questions: Can shiny server support 100 or 1000 or in even the extreme case of 10000 simultaneous users? In other words how well does shiny server scale with the number of users? Does shiny server create a new instance of R for each user or do the users share one R instance? 回答1:

How to embed an image in a cell a table using DT, R and Shiny

不打扰是莪最后的温柔 提交于 2019-11-27 20:14:54
How can I embed an image in a cell that is generated using the DT package so that it is displayed in an app using shiny? My example is based of this question R shiny: How do I put local images in shiny tables The example code below doesn't display the image, but rather just the url. # ui.R require(shiny) library(DT) shinyUI( DT::dataTableOutput('mytable') ) # Server.R library(shiny) library(DT) dat <- data.frame( country = c('USA', 'China'), flag = c('<img src="test.png" height="52"></img>', '<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Flag_of_the_People%27s_Republic_of

Reading javascript variable into shiny/R on app load

强颜欢笑 提交于 2019-11-27 15:23:25
问题 What I want to do is get the user ID from a wordpress logged-in user when I load a shiny app in an iframe. This variable could then be used to save and modify user-specific data. I have gotten some of the way by adding the following code to the wordpress page: <?php global $current_user; get_currentuserinfo(); $user_name = $current_user->user_login; $user_ID = get_current_user_id(); ?> And then this to make it a javascript variable: <script type="text/javascript"> var username = <?php echo

Shiny + ggplot: How to subset reactive data object?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 14:13:50
问题 I am making a shiny app, that shows the user a ggplot after he selects the daterange he is interested in (= the range for the x-axis). So I guess I need to define a reactive data object (correct?). The ggplot has some subsetting in it. R tells me that reactive data object is not subsettable . In my rookie understanding of ggplot, the subsetting has to be done inside the geom_bar(), geom_line() statements in order to obtain the graph that I want. Can anyone suggest me how to proceed with the

displaying TRUE when shiny files are split into different folders

纵饮孤独 提交于 2019-11-27 13:48:55
I have a shiny app using the package shinydashboard. At first, I had all the files as 3 files - global.R, server.R, ui.R. As files got bigger and messy, I took out the codes for each menus, and placed them in a separate folder. (splitting shiny files - http://shiny.rstudio.com/articles/scoping.html ) everything works, but there's something annoying happening - it displays 'TRUE' at the bottom of the ui of the menus I split into separate folder. If everything is just in one big file, it doesn't display TRUE. anyone know why this is happening? functionally, everything is same. What's happening

How do you pass parameters to a shiny app via URL

你。 提交于 2019-11-27 07:27:03
In web browsers you pass parameters to a website like www.mysite.com/?parameter=1 I have a shiny app and I would like to use the parameter passed in to the site in calculations as an input. So is it possible to do something like www.mysite.com/?parameter=1 and then use input!parameter? Can you provide any sample code or links? Thank you You'd have to update the input yourself when the app initializes based on the URL. You would use the session$clientData$url_search variable to get the query parameters. Here's an example, you can easily expand this into your needs library(shiny) shinyApp( ui =

Accept HTTP Request in R shiny application

感情迁移 提交于 2019-11-27 06:55:39
I have a shiny app that I have made that needs to get its data from another server, i.e. the other server when the shiny app is opened sends a request to the shiny app to open the app and feed it the data that it needs. To simulate this I can send the following to the R shiny app when I open the app in firefox: http://localhost:3838/benchmark-module/?transformerData=data/TransformerDataSampleForShiny.json This is a simple get request that sends the sting called : "Transformer Data" with contents "data/TransformerDataSampleForShing.json" to the shiny app. When I use the code it works fine: #