Shiny

shiny downgrade fontawesome 5 to 4

南楼画角 提交于 2020-01-06 03:44:07
问题 I work on a shiny project quite entangled with fontawesome 4.7, and it has brought us great value. As a free user of fontawesome, I don't see we have any advantage of upgrading to 5.3.1. Many of the free icons have become uglier/cruder, and one would have to pay for the pro version to get the icon styles similar to 4.7. Example table available in 4.7 with 9 cells in 5.3 table is onle free as 4 cells and rather chubby lines. The old 9 cell format is only available for pro users From my own

Making a plot with Shiny in R

余生颓废 提交于 2020-01-06 03:26:08
问题 I'm learning Shiny and am trying to plot the quantitative data from the iris dataset. My selectizeinput in the ui.R appears to work but I can't get it to plot. Any advice? Code below ui.R irisx<-read.csv("iris.csv",header=T) library(shiny) shinyUI(fluidPage( titlePanel("Assignment 11"), sidebarLayout( sidebarPanel( selectizeInput("x","X:",choices = c("Sepal Length"="Sepal.Length","Sepal Width"="Sepal.Width","Petal Length"="Petal.Length", "Petal Width"="Petal.Width")), selectizeInput("y","Y:"

Modify shiny action button once it is clicked

陌路散爱 提交于 2020-01-06 02:49:25
问题 I have the following in server.R shinyServer(function(input, output) { # builds a reactive expression that only invalidates # when the value of input$goButton becomes out of date # (i.e., when the button is pressed) ntext <- eventReactive(input$goButton, { input$n }) output$nText <- renderText({ ntext() }) }) and the following in ui.R shinyUI(pageWithSidebar( headerPanel("actionButton test"), sidebarPanel( numericInput("n", "N:", min = 0, max = 100, value = 50), br(), actionButton("goButton",

reactive tabPanel in a navbarMenu in Shiny

我是研究僧i 提交于 2020-01-06 02:48:07
问题 I am a beginner in this forum. I have a question on R shiny. I looked at some discussions about it in this forum but answers (R Shiny - add tabPanel to tabsetPanel dynamically (with the use of renderUI)) don't fit exactly what i am looking for. I try to add some tabPalnels in navbarMenu with interaction: example I choose a directory and I list how many files are in and what are their names. then I would like to make tabPanel in navbarMenu which have the name of the files in the directory ex

Can I have multiple submit buttons in R shiny?

故事扮演 提交于 2020-01-06 02:47:07
问题 In my R shiny application, I would like to have one button to submit one set of inputs (which affect one portion of the output) and another one to submit the remaining inputs (which affect a different portion of the output). The code in the widgets example of the Shiny tutorial uses a submitButton but it seems like all the inputs are delivered when that single button is pressed? Thanks in advance for your help. 回答1: Here is an example showing actionButtons controlling reactive components:

R Shiny: Latex equations are not properly rendered

我与影子孤独终老i 提交于 2020-01-06 02:27:07
问题 I can't get ioslides to render latex equation. A simple example is: --- title: "Title" author: "Author" date: "Tuesday, November 03, 2015" output: ioslides_presentation runtime: shiny --- ## slide 1 $\sum_{i=1}^n X_i$ The equation is rendered as \(\sum_{i=1}^n X_i\ Note that I'm able to get the proper rendering if I create the file as RPresentation but not as ioslides. 回答1: ioslides needs to know that it has to use mathjax --- title: "Title" author: "Author" date: "Tuesday, November 03, 2015"

Shiny Error: arguments imply differing number of rows

女生的网名这么多〃 提交于 2020-01-06 02:15:05
问题 I'm trying to develop a simple app that fetches local classified ads from Kijiji website. I have made a similar app with pretty much the same exact script but I'm not getting the error described below so I don't know what has gone wrong with this script. I tried everything I could think of, but couldn't get it to work. the structure of the df dataframe in server.R is as follows: (note that I have truncated the values to make it more readable) 'data.frame': 38 obs. of 7 variables: $ Title :

How can I connect R Script with Shiny app in R?

不问归期 提交于 2020-01-05 10:09:15
问题 I have developed an R Script and now I want to connect this R Script with Shiny app. i.e., I am developing my GUI in Shiny but I am facing the problems in connecting the RScript and Shiny. I want to call the output of the RScript using the Shiny app. I have looked around the RStudio Shiny app development tutorials but it didn't help me in connectivity. Is there any way I solve this problem? If possible can you give me the code for "How can I call RScript on button click using shiny app".

Save changes to sqlite db via shiny

强颜欢笑 提交于 2020-01-05 08:54:51
问题 Is it possible to run a Shiny app that connects to a sqlite database, and that can make changes and save to that database? My question is similar to this questions - R script do not write in sqlite db if I run the script in shiny but there was no accepted answer, so not sure if it works or not. 回答1: Yes. It is possible and here is an example: Create a simple db: library(RSQLite) con <- dbConnect(SQLite(), dbname="sample.sqlite") dbWriteTable(con, "test", data.frame(value1 = letters[1:4],

Progress Bar for Model Training in Shiny R

陌路散爱 提交于 2020-01-05 08:45:13
问题 I am making a Shiny App in which, at the click of the actionButton, a model is trained using the caret package. As this training takes time - approximately 4-5 minutes - I wanted to display a progress bar which progresses as the model is trained. Thanks 回答1: To display progress bar in shiny app, you need to use withProgress function in server as below: withProgress(message = "Model is Training", value = 1.0, { ## Your code }) So, you put your code inside this function and it will display the