shiny-server

Deploy Shiny App with a scheduled script

拟墨画扇 提交于 2019-12-07 13:32:32
问题 I have a simple script that in Rstudio works to deploy app: rsconnect::setAccountInfo(name='xx', token='xx', secret='xx/xx') library(rsconnect) deployApp("xxx",launch.browser = FALSE) After this prompt appears: Update application currently deployed at https://xxx.shinyapps.io/xx/? that block my scheduled script. There's a way to skip this request and update the shiny app without manually type "Y" in the Console? 回答1: Adding to what waskuf said, try adding forceUpdate = T to your code.

R - Shiny | Error in cat(list(…), file, sep, fill, labels, append) : argument 1 (type 'list') cannot be handled by 'cat'

巧了我就是萌 提交于 2019-12-07 04:39:51
问题 I am trying to write a Shiny app and need to first manipulate my data before I begin visualizing it. I have three inputs to manipulate the data. 1. Channel 2. Exclude a word 3. Find all comments with this word in it I am able to accomplish the first two but when it comes to making using the grep() function to find all rows that contain a certain word I am running into the following error "Error in cat(list(...), file, sep, fill, labels, append) : argument 1 (type 'list') cannot be handled by

R Shiny server not rendering correct ggplot font family

末鹿安然 提交于 2019-12-07 01:52:26
问题 I'm trying to apply a nice font to a ggplot rendered in a Shiny app. Setting the desired font in RStudio (on the same server) using family="[fontname]" works correctly. Here a "serif" font family has been requested: Image of correct ggplot font family rendering in rstudio However, when ggplot is then embedded in the Shiny renderPlot({}) function, the font family doesn't change from the default. Here the same "serif" font family has been requested: Image of incorrect ggplot font family

Selecting record date with selectInput in shiny R

孤街醉人 提交于 2019-12-06 06:07:31
I am very new to R programming and I am trying to build an shiny r app that takes in data on shark attack data and builds a bar chart that specifies the frequency of a kind of attack e.g. Provoked, Unprovoked, Boating etc. I want to be able to filter by the region however. Here is a sample of the dataset. CaseNumber Year Type Country Area OriginalOrder Region 1642.00.00 1642 Unprovoked USA New York 136 Northeast 1779.00.00 1779 Unprovoked USA Hawaii 152 West 1805.09.00 1805 Invalid USA New York 160 Northeast 1816.09.03 1816 Unprovoked USA Rhode Island 164 Northeast 1817.06.24 1817 Unprovoked

Use multiple R Markdown files in Shiny tabs

这一生的挚爱 提交于 2019-12-06 06:05:55
问题 I am building a Shiny App and I'd like to have multiple tabsets. The code I've got so far gives me that: shinyUI(navbarPage("OEI Grant", tabPanel("Part 1 - Organization", tabsetPanel("1.x", tabPanel("1.1"), tabPanel("1.2"), tabPanel("1.3") )))) The part I cannot figure out is how to get a separate interactive document (R markdown .Rmd file) for each tab (1.1, 1.2, etc.). I am looking for the equivalent of the includeMarkdown() function but for R Markdown files that themselves contain Shiny

How to access the R+Shiny code for the applications on shinyapps.io?

狂风中的少年 提交于 2019-12-06 06:05:06
I have found a very well-design shiny app on shinyapps.io website but I am not sure how to access its R code or say the github directory for its code. I find it very instructive if we could have access to its code. Anyways, in the worst case, can someone help me to know how can I have nice sidebarPanels and mainPanels like this website? I know some CSS is involved but I am new to CSS and not sure how to get some neat design like that in shiny. I don't exactly know how the app looked (the app is down) but I guess you should take a look at " shinydashboard ". That gives you a very nice side and

How to cache data in shiny server?

橙三吉。 提交于 2019-12-06 03:57:21
问题 I am using R to deploy an app over the web but the url from which my app takes data is where my app takes time so is there a way where i can cache that data? Because i tried to install the packages memoise,R.cache and a few more that were all unsupported by the server 回答1: I recommend trying the DataCache package by Jason Bryer. The package is available through GitHub and I was successful in using it today for a Shiny app that I am developing. The main function from that package is data.cache

Adding/removing icon in downloadButton() and fileInput()

帅比萌擦擦* 提交于 2019-12-06 03:12:42
In Shiny, we have downloadButton() and fileInput() buttons for downloading and uploading data respectively. However it happens that, with downloadButton() there is download icon, and however with fileInput() no icon is attached. In my Shiny app, I have both buttons. However since one of them has icon attached, it brings some kind of visual inconsistency in my App. So, I either want to remove such icon from downloadButton() , or add some upload button with fileInput() to bring consistency. However, it appears that there is not any direct approach to perform either of them. So can anybody

How to extract the values of dynamically generated inputs in Shiny?

别等时光非礼了梦想. 提交于 2019-12-06 01:04:37
I am creating a shiny app which will generate the score for clients based on their different features. In my shiny app, I have provided the checkboxGroupInput to select the required features. Based on the selected features app will dynamically add numericInput to the web ui so that user can assign the weight for the selected features and further the weights will be used in score calculation. I have tried different ways to get the selected features and wanted to save them in a vector. So that I can use the elements of the vector to calculate the score. Please someone show me a solution to save

Shiny R Action Button Controls Reactive Elements

笑着哭i 提交于 2019-12-05 19:33:36
Not sure if I should use this term. Basically, I have a reactive function which displays user uploaded CSV file and I would like to use a action button to fire a plot generation process. At this moment, the plot is always generated on the fly. So I am wondering, in the renderPlot function, how to let a action button override a reactive element. Thanks! ui.R library(shiny) shinyUI(fluidPage( titlePanel("Test"), sidebarLayout( sidebarPanel( fileInput('file1', 'Choose CSV File', accept=c('text/csv', 'text/comma-separated-values,text/plain', '.csv')), checkboxGroupInput('show_vars', 'Columns to