Questions tagged [shiny]
Shiny is an R package that makes it easy to build interactive web applications using only R.
25,066
questions
0votes
0answers
9views
Mutually dependent user Inputs in R shiny (user Inputs are not known in advance and they are chracters not numeric)
I wwant to have in my user input drill lists only the choices which connected with the others choices in the other user input list.In fact in this example when i use my data ,i get a large number of ...
0votes
0answers
6views
Deleting always the first row in a shiny CRUD app only after adding preexsitent data
I am stuck and need help.
I am working with this gist https://gist.github.com/gluc/d39cea3d11f03542970b
Basically in a shiny app it provides the possibility to make CRUD maneuvers and it works perfect....
0votes
0answers
16views
Why is my effort in transposing a data table not working?
When running the reproducible code at the bottom, I get an error message when I try transposing the reactive data table. In the image below I show the error message when attempting to transpose (via ...
0votes
1answer
15views
replicate shiny verbatimTextOutput as htmlOutput in order to markup inline text with <span> tag
I need to produce an output of medical notes, monospace format, and the verbatimTextOutput is ideal... EXCEPT that I can't dynamically highlight terms. Some of these notes are pages long, and people ...
0votes
0answers
6views
Attempting to create a Shiny Web App that lets the user upload a CSV and then select a plot method. However, I can't get any plots to show up
Struggling with being able to get plots to actually output. I am able to upload a CSV file but then when I try to select a model for it to actually output, It doesn't quite work? Any help would be ...
0votes
0answers
6views
Image parameter in withSpinner() in R Shiny
We can use a picture instead of the spinner in R Shiny i.e: withSpinner(image="logo.gif"), but if there are many places where we are calling the spinner in the code, we'll have to pass the ...
0votes
1answer
21views
Use of conditionalPanel with flexdashboard and runtime shiny
I am trying to conditionally swith shiny output render types in a flexdashboard tab using conditionalPanel as outlined in the Shiny documentation here, by using a reactive output object and making ...
1vote
1answer
21views
How can I trigger an output when a value changes in a different output?
I have an output that takes user input to select which of a number of calculations to use and results in 5 numbers. That output pushes out the results of this and other calculations as an HTML table. ...
1vote
0answers
14views
Is there a way to request a Shiny app via GET?
I'd like to execute a Shiny application via GET request, i.e. all scripts that are triggered when the Shiny app is initially called via a browser should be executed by the GET request.
Is there a good ...
0votes
0answers
20views
Shiny Widgets SwitchInput
According to the technical documentation here, the switchinput I'm using should default to TRUE at start. I'm just copying in the code from example. In the example code below, it defaults to FALSE.
...
0votes
1answer
32views
Error message in emmeans function output in Shiny : "object 'factor' not found"
I am very new shiny user. I wanted to show the results of post-hoc test using emmeans function. Here's the code of my shiny app.
ui <- shinyUI(fluidPage(
# Application title
titlePanel("...
0votes
0answers
11views
How do I dynamically change label text color of R Shiny radioButtons widget when users select an option?
I am building a Shiny App where users have to complete several mandatory questions in the form of radioButtons, numericInputs, and textInputs in order to generate an output. To highlight which ...
0votes
0answers
15views
Shiny beginner: selectInput is not working properly in case of sql db load
For my first shiny application, I want to load data from sql and display it in a table. This works fine, when I only use text input in the sidePanel menu. I want to display all available databases in ...
1vote
0answers
17views
Connecting a R shiny app to dropbox with httr::Oauth
I am trying to use Dropbox for remote storage for a R shiny app. In the good old days you used to be able to get a long-lasting token via the rdrop2 package, but sadly that has not kept up with ...
0votes
0answers
40views
How can I add icon at the end of the text using CSS in shiny?
How can I place icon at the end of the text like in the image and based on the percentage the text will hide and shown instead of that, is it possible to keep the text in the screen?
File myloader....
0votes
0answers
13views
R shiny: one day difference between date selected on widget and returned date
The date returned by shinyMobile's f7DatePicker widget is one day before the actual date selected by the user.
I am based in France and everything works fine locally.
The issue arises when deploying ...
1vote
1answer
13views
R Shiny. Change colors on a scatterplot based on selected input categorical variable
I am trying to make a shiny app that will allow to color the points of the scatterplot based on the selected categorical variables.
library(shiny)
data<-data.frame(iris)
ui <- navbarPage("...
0votes
0answers
23views
Problems generating route between two coordinates in a shiny app
I will present 3 codes, the first two working properly, and the third is a junction of the first with the second, which is what I want to adjust. I'll explain in detail so it's easier to understand.
...
0votes
1answer
34views
More speed for BigQuery data in Shiny
I don't like to access a complete public BigQuery dataset in my case geo_us_boundaries. But I'd like to choose the data by state using the query glue::glue_sql("SELECT * FROM states WHERE state =...
0votes
1answer
23views
How to have shiny app that allows users to identify the key column and then filter based off columns and rows inputs?
I have the following shiny app that almost does what I want. My goal is to have a user be able to upload a csv file into my app and have it output as a table. I would also want my users to be able to ...
0votes
0answers
5views
r2d3 visual does not resize automatically
I have been able to get an r2d3 visual to resize the width automatically but nothing is working in terms of resizing the height e.g. when changing to a bigger screen.
tagList(
mainPanel(width=&...
0votes
0answers
10views
R Shiny close only embedded modaldialog
This is a follow-up question to this question from 4 years ago: How to close embedded modalDialog
library(shiny)
library(DT)
library(shinyWidgets)
library(shinyalert)
ui = fluidPage(
fluidRow(
...
0votes
0answers
20views
R Shiny - Get import file location to make sure the upload file is correct
I am trying to print a message in the R shiny app right after the File import section in order to make sure every time we imported the file as expected.
Does anyone know how to realize it without ...
0votes
1answer
11views
in learnr, how to make external links open in new tab
I am using the r package learnr and would like all links (to external material) to open in a new tab. I could probably just add
<base target="_blank">
but I don't know how to add ...
0votes
1answer
19views
How to modify text "Showing x to x of x entries" in RShiny?
I'm trying to change text: "Showing x to x of x entries" to "Showing x to x of x rows".
I'm using
options = list(language = list(info = "Showing _START_ to _END_ of _TOTAL_ ...
0votes
0answers
16views
R Shiny Cannot Download Html Report in Server
I created an RShiny app and it works in my local computer without any error. However, when I published it, I cannot download a html report. When I publish my code, I come up with following error.
You ...
0votes
1answer
26views
Update a variable in R Shiny
I would need some help with the missing code here:
selectInput("portfolio",
"Portfolio:",
c("p1","p2"))
## missing code:
## if input$...
3votes
1answer
38views
How to merge 2 row cells in data table?
This is the next step in my attempt to build a user-friendly transition matrix in R, a follow-on to post How to add a vertical line to the first column header in a data table?.
Running the MWE code at ...
0votes
1answer
22views
How to fill in the variables into the stat_funciton() programmatically?
I saw the answer to the question to "filling in the variables into ggplot": R - How do I use selectInput in shiny to change the x and fill variables in a ggplot renderPlot?
How can I do ...
1vote
0answers
10views
Is there a way to just read an edited DT?
I'm trying to make an app where users can edit some tables and run a calculation, and using DT. Is there a way to just read in what's currently in a DT table? This would simplify things a lot for me. ...
0votes
0answers
8views
R shiny: rpivottable, how to make a reactive table from it
I have a rpivottable but from that pivottable output table I want to make a table. And when I change the filters in the pivottable it should change the other table i.e reactive.
I have a rpivottable ...
0votes
0answers
16views
Shiny App Not Displaying with No Error or Warning
I just want to start off by saying that this is my first day working with R Shiny package, so please bear with me if I ask really trivial questions etc.
I am trying to create a UI where it supports ...
2votes
1answer
27views
How to merge 2 row headers in a single column in a data table and insert a reactive object?
This is the next step in my attempt to build a user-friendly transition matrix in R, a follow-on to post How to add a vertical line to the first column header in a data table?. I have been spoiled by ...
0votes
1answer
13views
Apply a filter once from a checkbox to many reactive objects in Shiny in R
I am building a shiny app in R where I have a multiple checkbox at the top to filter levels of a factor. I then display various tables/plots of the filtered data.
However, in Shiny I only know how to ...
0votes
0answers
17views
Adding a theme to shiny
I try to follow https://rstudio.github.io/shinythemes/ to add a certain theme to my shinyUI but it doesn't work:
library(shiny)
library(shinythemes)
shinyUI(fluidPage(theme = shinytheme("...
0votes
0answers
9views
Update dateRangeInput with button using shiny module in flexdashboard
I have the following flexdashboard written in R markdown.
---
title: "Untitled"
runtime: shiny
output:
flexdashboard::flex_dashboard:
orientation: rows
---
```{r global, include=...
0votes
1answer
17views
Docker container failing to start with connection to database from shinyproxy
I want to connect an individual app within shiny proxy to a docker network.
I have a few apps on shinyproxy, only one needs to connect to the database.
It is a postgresql DB running on the same ...
0votes
0answers
32views
How to place box title and Info box next to each other in shiny using CSS
I have shiny application with box in the body as shown below:
library(shiny)
library(shinydashboard)
body <- dashboardBody(
fluidRow(box(
title = "My header1",
...
0votes
0answers
11views
Change height of value boxes - shinyDashboard [duplicate]
I have a simple shinyDashboard with some simple valueBox, but I can't adjust the size to have what I want. To be clear, I would like to do that :
What I want
I can't show my code because I'm working ...
0votes
0answers
15views
shiny: gt tables with shinyscreenshot: numeric columns get cropped
I'm trying to use {{gt}} in conjunction with {{shinyscreenshot}}. The resulting screenshot seems to crop numeric columns:
Is this due to rendering in the gt package or caused by shinyscreenshot and ...
0votes
2answers
29views
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 <- ...
1vote
1answer
26views
DT::renderDT not working when more than one tabPanel
This code fails to produce a table in the tabPanel "table", however, when I comment one of the other tabPanel (e.g. "Overview") it works fine. Any idea why that might be?
library(...
2votes
1answer
35views
How to add a vertical line to the first column header in a data table?
I would like to add a vertical line to a DT table column header. There is guidance for adding this line in post How can I add a vertical line to a datatable?, but it applies to a static table where ...
0votes
0answers
22views
Why is reactive dataset, in RShiny, with NA value considered as "empty" dataset in validation?
Can somebody help me please? In my application, the user can upload a file from the device. The application has a number of features that do not matter now. The point is that when performing ...
0votes
1answer
29views
Deploying a development version of a shiny app to shinyapps.io
I developed an app that I have deployed to shinyapps.io. It's been decided that there should be two deployed versions - one for testing purposes, and one stable release. Is there any way to do this ...
0votes
0answers
20views
Shiny render glm.fit is not working, the categorical-response cannot be truly readable
I created a shiny app for logistic regression model.
My idea is allow user define formular by typing in textInput box ex. 'Response ~ Pred1 + Pred2' and then convert to formula by function 'as.formula(...
0votes
1answer
36views
multiple conditions observeEvent - R Shiny
I am trying to do a Shiny app with an interactive map displaying marine animal tags. Currently, I have three possible inputs : (1) The tag numbers, (2) the size of the animals and (3) the month I want ...
0votes
0answers
6views
R shiny: Cannot implement website with authentication like shinyapp.io using Polished
I'm working on an app that could potentially be used to coordinate information at many statistics bureaus in many countries around the world. Today has installed Polished and studied very good case ...
0votes
1answer
22views
Shiny: delete columns from a reactive variable
I would like to use shiny to read a CSV file, and then allow the user to be able to delete selected columns.
Below is my example. But I kept getting no applicable method for 'select' applied to an ...
0votes
0answers
30views
Shiny filtering adoptation for rendering data tables [duplicate]
I'm an intermediate level R user and there is a problem that I couldn't find any answers anywhere. I'm simply rendering a data table like the picture below:
I changed all the columns as the factor so ...