Shiny

Shiny tab displays in ALL other tabs

放肆的年华 提交于 2020-04-30 09:19:05
问题 This might not be a reproducible sample kind of question but I'm looking for some lead if this has happened to somebody else before and how did they fix it. I hope I make myself clear! I've tried using what this article says with no luck. Must be that I'm getting it wrong but I can't fix this: I've got a 5 tab Shiny App and all of the sudden the last one, 'Guideline' tab started displaying below all other tabs, meaning that tab 1 displays 'Home' coding and it shows full 'Guideline' tab below,

Shiny tab displays in ALL other tabs

六月ゝ 毕业季﹏ 提交于 2020-04-30 09:18:40
问题 This might not be a reproducible sample kind of question but I'm looking for some lead if this has happened to somebody else before and how did they fix it. I hope I make myself clear! I've tried using what this article says with no luck. Must be that I'm getting it wrong but I can't fix this: I've got a 5 tab Shiny App and all of the sudden the last one, 'Guideline' tab started displaying below all other tabs, meaning that tab 1 displays 'Home' coding and it shows full 'Guideline' tab below,

Updating the InsertUI elements

怎甘沉沦 提交于 2020-04-30 09:09:39
问题 Suppose I have a Data frame as given below and I created multiple panels using the insert UI elements. How do I, in my case update the values in these multiple panels. I could update the inputs for the first panel but things get messier as I try to update the other added panels. Suppose in one panel I need data for Earthquake in 1985 and in the other panel I need data for Earthquake in 1990. How do I do that? For the first panel it works fine and I could toggle between 1985 and 1990 data, but

Updating the InsertUI elements

爷,独闯天下 提交于 2020-04-30 09:08:07
问题 Suppose I have a Data frame as given below and I created multiple panels using the insert UI elements. How do I, in my case update the values in these multiple panels. I could update the inputs for the first panel but things get messier as I try to update the other added panels. Suppose in one panel I need data for Earthquake in 1985 and in the other panel I need data for Earthquake in 1990. How do I do that? For the first panel it works fine and I could toggle between 1985 and 1990 data, but

How to read the only valid observations in the range of sliderInput in Shiny in R

随声附和 提交于 2020-04-30 09:06:06
问题 I have a list (in .csv file) from 1 to 100, but with difference between the every term is not the same. For example, 1, 2, 4, 7, 8, 11, 13, 17, 18, 19,..., 95, 99, 100. After that, the range I selected will store in the selected_value (Global Environment). And here is my code : library(shiny) ui <- fluidPage( fluidRow( column(4, sliderInput("slider","Slider Range", min = 0, max = 100, value = c(40, 60)))), fluidRow( column(4, verbatimTextOutput("range")))) server <- function(input, output) {

Understanding the structure and dependencies of my application in R shiny

佐手、 提交于 2020-04-30 08:45:40
问题 Hope you all are good and safe. I have a very useful and informative concept to share with you and also need some inputs as well. I have almost read many R studio articles but did not find anything The reason why I am trying to solve this problem is, Say we have a application with 10 tabs and many reactivity (Like clicking a button is Tab1 renders a table/output in Tab10 and so on. The user wants to understand the dependcies) From the below application (ui.R) can we list all labels, Id and

Plot a graph from a function in shiny

こ雲淡風輕ζ 提交于 2020-04-30 07:12:26
问题 I want to insert a graph that is generated from the function.LetControl <-function (coverage). I couldn't show this graphic on my shiny, the others worked. I believe it may be because this function is within another function. Could someone help me solve this problem please. The executable code is below: library(shiny) library(ggplot2) library(rdist) library(geosphere) library(kableExtra) library(readxl) library(tidyverse) #database df<-structure(list(Properties = c(1,2,3,4,5,6,7,8,9,10,11,12

Is there a way to list the objects(dataframes, functions, args(funtions), inputs, outputs of a shiny app

心已入冬 提交于 2020-04-30 07:04:06
问题 Is there a way to list the objects(dataframes, functions, args(funtions), inputs, outputs of a shiny app. In the below app, there are inputs likes actionButton(), numericInput() etc, and outputs like renderText(). Is there a way to list these along with there ID'd (eg action Button has "goButton") and so on. Also, there is a function declared here called "asd" with arguments (3,4). Can we also list these information ? please guide ui.R source("fun.R") pageWithSidebar( headerPanel(

Combining renderUI, dataTableOutput, renderDataTable, and reactive

怎甘沉沦 提交于 2020-04-30 06:28:21
问题 This is somewhat of an expansion of this post: I would like to have the DT::renderDataTable inside the renderUI and then have the output of the renderUI used in the reactive . This is what I'm doing: suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(plotly)) suppressPackageStartupMessages(library(shiny)) #data.frames to be used in the server set.seed(1) coordinate.df <- data.frame(coordinate_id = paste0("c", 1:1000),x = rnorm(1000), y = rnorm(1000),

Isolate() is not working when used inside an if statement in a shiny app

…衆ロ難τιáo~ 提交于 2020-04-30 06:26:19
问题 I have the shiny app below in which I have 3 file inputs and 2 actionbuttons. The 1st submit button 'submit' is used to trigger the tree plot and the 2nd 'reset' to reset every file input. When the 1st actionbutton is empty I get a warning message. The tree is displayed only when the all of the files are loaded or 1st and 2nd are loaded or only 1st is loaded. Based on this I have crated an if statement which you can find in line 120. The issue is that while the app works fine it does not