All Questions
69 questions
0
votes
0
answers
73
views
Use of "else if" to alternate between lists
I am trying to create a rhandsontable with variables Col1 and Col2.
Col1 has factor levels = c("A", "B").
Col2 has two alternating factor levels = c("a1", "a2") ...
1
vote
1
answer
29
views
How to sum up checkboxgroupinput objects in R shiny?
Given is a checkbox in an R Shiny app. The shown choices represent numeric values. If one or more choices are selected the numeric values should be summed up to the end result.
If checkbox choices ...
0
votes
1
answer
32
views
Adding labels when chosen selectInput changes pos and neg height of labels
I have an app that has options to show p-value levels as asterisks and confidence intervals as error bars.
When all the observations are positive, it works as intended: the asterisks are positioned ...
1
vote
1
answer
46
views
Adjust plot according to whether one or two of three checkboxes are selected
I have this app.
Individually checking "Show p-value levels" or "Show 95% confidence levels" works fine. However, when both are checked, I need the asterisks to be positioned ...
1
vote
1
answer
78
views
How can I use conditional to choose between two options or both?
I am building a shiny app and in a selectInput widget I want user to choose between options:
HRR, LRR, Both
The plot will change depending on user input and to correctly function:
if HRR -> ...
1
vote
1
answer
43
views
How to control an argument of a function depending on a radiobutton choice in R shiny
This is a follow-up to this Dynamic change in vtree within shiny: How to deselect
With this code below, I try to switch the arguments prunesmaller and prunebigger of the vtree package. I am quite sure ...
0
votes
2
answers
292
views
How to make one of the filter functions conditional in a reactive function for a shiny flexdashboard?
I have a dataset and am building a shiny flexdashboard with multiple user inputs which filter the data down to a subset. I am struggling with just one of the filters, where if the user chooses 'ALL' ...
1
vote
1
answer
496
views
Use If clauses in shiny output depending on the existence of input
I'm relatively new to shiny and have been encountering the following problem :
I want to display a map (using mapview) with a checkboxinput (filtering stuff) and a different map when all the boxes ...
0
votes
0
answers
27
views
How to write multiple condifitonal functions in Shiny app R?
gim really new to coding and have no idea about it. a help would be really appreciated.
in Shiny R, if i were to have multiple conditional functions, how do i write it? is this correct?
## Function to ...
0
votes
1
answer
1k
views
R - shiny's downloadHandler() returns an empty HTML file if a condition is not met
I want users to download a file from my shiny app. However, if they don't input correctly certain parameters inside a textInput() widget (e.g. a correct e-mail), I want to stop the download and ...
0
votes
1
answer
80
views
How to select a different argument list based on a radio button and if statements
I have a 96 well plate made from a datatable, with certain cells or rows being colored in, and a radio button that I want to control whether it is the rows or the columns that are colored.
This is ...
0
votes
0
answers
25
views
Trying to incorporate a selectInput and then an IF statemant into shinny app to display the updated value in a datatable
I have been trying to get the if statement working so that I can convert the selectInputs into values that can be displayed into my DataTable but have not been able to achieve this. I tried by making ...
1
vote
2
answers
454
views
Shiny input as default value for another input
Is it possible to have the product from two inputs as a default value for another input?
Even, more complex, is it possible to include an if cycle in the computation?
Example:
library(shiny)
ui <-...
0
votes
1
answer
1k
views
Shiny if statement on conditional inputs
I have created a series of conditional panels in the UI that make available some additional inputs. I want now to check if the inputs have been accessed or not and then return a value accordingly.
To ...
0
votes
2
answers
993
views
R SHINY CHECK TEXT INPUT AS NUMERIC
I would like to check if the input that the user write in the user interface is numeric and in case return a SafeError. I wrote the following code but it gives me error, could you help me?
ui <- ...