Questions tagged [shiny]
Shiny is an R package that makes it easy to build interactive web applications using only R. For the Python Shiny package, use the tag [py-shiny] instead.
28,725
questions
0
votes
0
answers
7
views
How to setup nginx and shiny-server to support separate webpage(s) and multiple shiny apps?
Goals:
My goals are to host a normal html/php website along side a shiny-server that hosts multiple apps.
I also want automatic http to https redirect for all pages.
For example I want the pages ...
0
votes
0
answers
8
views
Use edited value from DataTable in a reactive() function in Shiny
How do I pass a datatable cell edit into a reactiveVal(), then use it in calculations in a reactive() function?
When I change the number in the Goals Column, I expect the color columns to change. For ...
0
votes
2
answers
17
views
R shiny dashboard, show conditionalPanel only when a specific tabPanel within a specific sidebar menuItem is selected
Below I have provided the skeleton of a Shiny Dashboard that I am trying to create. I've fought with this for quite a while and cannot figure out how to make it work.
App Current Behavior: Right now ...
0
votes
0
answers
13
views
Assign stable color to every unique value of another column of a dynamic dataset that is subsetted in a shiny app
In my shiny app a below I upload every time a dataset with a dynamic number of topicLabel. Furthermore I choose to display also a dynamic number of topicLabel im my plot. Im trying to assign standard ...
0
votes
0
answers
17
views
How to create an rhandsontable with fixed headers?
Can someone advise me on how to fix column headers in an rhandsontable? Below there is a sample script I have written, but it does not work. It seems that I could not use hot_cols() in a proper way. I ...
0
votes
0
answers
7
views
shiny.fluent or shiny.blueprint with bslib in R
I am developing an application in R with the bslib library, I want to incorporate components (inputs) from shiny.fluent or shiny.blueprint, I wonder if this is possible?
Thank you so much.
I tried ...
-1
votes
0
answers
25
views
ReactValues does not get updated based on the if clauses
I have a reactvalues that get updated when changing the cleanMethod or passoption but for Dataversion ,it is always considering the Dataversion equals ja .I checked that many times with the raw data, ...
1
vote
0
answers
52
views
Strange delimiters when copy-pasting out of Excel sheet
I've been working on an R Shiny app which allows you to paste in datasets as text, then separates them out into data frames and highlights the differences between them. Generally, it works well, but I ...
-1
votes
0
answers
20
views
Problem deploying my dashboard on shinyapps.io
I made a dataviz on r shiny but when I want to deploy with shinyapp.io I get errors (I think it's because my database is local on my RStudio).
But I don't know how to do this.
Thank you in advance for ...
0
votes
0
answers
17
views
Seeking Assistance with Node Renaming in Shiny Flowchart
I'm encountering a challenge with my Shiny application. Whenever I select the option to rename a node in my flowchart, it triggers the generation of a table for input. However, once I input a new name,...
0
votes
1
answer
19
views
Show modal when user try to reupload file in shiny
Is it possible to show a modal when user try to reupload file in shiny, I want to alert user, but the modal always appear after the fileupload finished, and it seem that when I first upload file, the ...
0
votes
1
answer
24
views
Color dynamic points in plotly scatterplot permanently based on color argument
I have this shiny app and I want to color the points in the 3d scatterplot based on the date selected by giving them a speicific color every time and not a random color which will change when I hide ...
0
votes
1
answer
13
views
Shiny in R: apply self-defined function in scale_color_manual() to change the colour of plots based on user-selected variable
I used Shiny application to create scatter plots or box plots based on their selection of variables. I got an error with the usage of ggplot2::scale_color_manual() within the renderPlot() function and ...
0
votes
0
answers
33
views
R Shiny writing data to google sheets
I have problem where my Submit button won't write data to googlesheets. It will work if I run it as normal data (outside of reactive) but I think it needs to be reactive so I can change values and it ...
0
votes
0
answers
23
views
When I published my app.R to https://www.shinyapps.io/ I get this error
I get this error:
The application failed to start. exit status 1
but in my local app.R is run and load pages without any error.
This is the log 2
I tried to install dependency packages, but that ...
-3
votes
2
answers
37
views
Seeking clues for packages to generate the example R Shiny outputs [closed]
I am an R Shiny learner, I am just wondering if you have seen this user interface before? If so, do you know:
What's the plotting package used here to allow the hover effect?
What's the UI package ...
1
vote
1
answer
36
views
How to switch to a particular navigation panel with the click of a button in a shiny app?
Goal
Click on a button to switch to a particular tab in shiny.
Working example
This works:
library(bslib)
library(shiny)
ui <- bslib::page_navbar(
title = "App Title",
id = "...
0
votes
1
answer
31
views
Why I cannot get my shiny app when adding golem framework?
Why I cannot get my shiny app when adding golem framework?
I am managing nevertheless to get my shiny elements without any golem framework:
Here is the shiny without golem:
library(shiny)
# Define ...
0
votes
0
answers
19
views
Open a context menu on datatable right click
I would like to open, on right click on a row of a datatable, a context menu.
The context menu would then propose to the user the option of opening a file whose path is stored in the corresponding row ...
0
votes
1
answer
15
views
using reactive data in flexdashboard to get specific data
I'm creating a dashboard using flexdashboard and shiny in R. I'm trying to make it so that after clicking the name you want to get data for from dropdown list, you will also need to select a date from ...
0
votes
1
answer
15
views
How do I use Shinyjs onclick and toggle functionality in a Shiny module?
I'm trying to create a shiny module to toggle (show/hide) a wellPanel with some inputs. When I add the shinyjs::onclick() piece of code in the server side of the module, the toggle does not work. ...
1
vote
2
answers
40
views
How to display the active tabs' name in a Shiny app when tabs where generated in the server using bslib::nav_insert()?
(MRE is shown below)
Given a Shiny application with a tabset (bslib::navset_tab) containing one static tab created in the UI, and some dynamic tabs created in the server, using bslib::insert(), and ...
1
vote
0
answers
42
views
"shinycssloaders" don't work with a button in observeEvent
I'm new with shiny, but I would want to make a loader work while the action of a button is running.
My code is something like what is shown below:
library(shiny)
library(ggplot2)
library(bslib)
...
0
votes
0
answers
20
views
Create a shiny app that plots one of two plots depending on an input
I'm trying to create a shiny app that will plot something if a user selects one input and plots something entirely different if the user selects something else. Below is a very basic reproduction of ...
-1
votes
0
answers
31
views
Why isn't my shiny app recognizing a choice to limit the number of options displayed?
I'll show you a subset of the code I am working with. Basically, I want my app to show data for a certain number of people. The user should have the option to see data for 1, 2, or 3 people at the ...
0
votes
0
answers
44
views
Save dropdown menu choices in csv
I have a problem with my server code, I can't extract my dropdown menu choices in a table with the information of the clicked polygons.
I don't know if I'm using the right table/ list or if it's a ...
0
votes
0
answers
50
views
How to use different `step` and breaks in a sliderInput in shiny?
I have this sliderInput:
library(shiny)
sliderInput("year",
label = "In what year were you born?",
min = 1920,
max = 2010,
...
0
votes
1
answer
35
views
Performing an action in Shiny after an output is rendered
I am attempting to perform an action in Shiny after an output is rendered. Since I try to scroll to the output's location, it is crucial the output exists before I try to do so. How can I check for ...
1
vote
1
answer
32
views
How do I keep a grouped column from moving down or disappearing when using gt?
I'm using the gt and gtExtras packages to create a grouped table where the minimum and maximum values for each group is highlighted. The end goal is to make it interactive and put it in a Shiny app. ...
0
votes
0
answers
66
views
Protects dplyr against SQL injections?
I would like to use R-Shiny to develop a web app that accesses an SQL database with sensitive data.
So far I have written the database query as a pure SQL string.
However, this approach is very ...
1
vote
1
answer
20
views
Shiny renderPrint don't capture all console output
I am trying to display the results from a JAGS model in my Shiny app. The functions show a progress bar in the console when called. I would like to display a summary of the results only and not the ...
0
votes
1
answer
48
views
When editing a R shiny datatable cell the font color of the value is white. How to change the font color in the editable box to black
I am editing datatable cells. When I click on the cell to edit the values, I don't see the value as the font color is white same as the background of the edit box. Here is a screenshot to show the ...
0
votes
0
answers
25
views
Trouble Hosting RSelenium on shinyapps.io
Hey amazing community!
I hope you're all doing great. 🌟 I'm currently facing a bit of a roadblock with hosting RSelenium on shinyapps.io, and I'm reaching out to the brilliant minds here for some ...
0
votes
0
answers
19
views
Error in filtering out records for creating gauge chart in R shiny
I am trying to create a gauge chart which takes as input 4 variables each with 4 options and if there is/are any records in the dataframe that matches the 4 variables, the corresponding output columns ...
0
votes
1
answer
47
views
Names of a numeric vector with HTML
Explaining the code first:
I'm programming an app in RStudio with Shiny, and I have an observer that makes a lot of loops to find some results in a vector and, I don't know why, the vector is ...
0
votes
0
answers
15
views
R shiny app interactive photo gallery - not able to access multiple files at once?
I am trying to write an R shiny app that, given a directory of image files, takes user input and decides which images to display on the page. The number of images may vary depending on the user's ...
0
votes
1
answer
37
views
Why are the two plots in a tab panel not visible?
I need to display in one of the tabPanels two plots (sim_plot), I have added a tabPanel with fluidRow but it does not display any plot as I want.
But when I run it, it does not display anything in the ...
0
votes
0
answers
23
views
Display Excel file in R Shiny
I am trying to display an excel file using R shiny. I couldn't manage to get the cell colors from the excel. How can I do it? Here is an examples excel file enter image description here. Also, I tried ...
1
vote
1
answer
44
views
How to draw and erase and change the brush size and color?
Colors should appear and change when dragging the slider button but nothing happens, there is just a blank canvas in the right hand side of the screen. I changed some things before it was not even a ...
0
votes
1
answer
43
views
Problem with SelectInput and SliderInput in changing axis in scatterplot, R Shiny
I am trying to create a scatterplot where we can change the axis, and if a certain axis is selected, we have a sliderInput that permit to change the max and min of the axis. But I can't manage to do ...
0
votes
1
answer
19
views
checkboxInput within mainPanel to display different images
I'd like to use a checkbox to select the image to output in a mainPanel() or tabPanel() in RShiny.
A reproducible example:
(to make it easier to run anywhere, we can replace "image1.png" ...
0
votes
1
answer
20
views
Next reactive button for selectInput in shiny
My code so far:
library(shiny)
plot_choices_temp <- c(
"1. Overview" = "1. Overview",
"2. Overview (2)" = "2. Overview (2)",
"3. Daily cumulative ...
0
votes
1
answer
30
views
How to center align the title and buttons inside a modalDialog in shiny?
I tried the following which centers the action button only:
modalDialog(
style = "text-align:center;",
title = div("Welcome!", style = "text-align: center;"),
...
0
votes
1
answer
37
views
How to connect MariaDB with shinny application in R studio
I am trying to connect Mariadb with my R shinny application in Rstudio. I created a Mariadb using docker-compose.yml and now I am trying to access the mariadb container using
library(RMariaDB)
library(...
0
votes
0
answers
22
views
How to specify order of a categorical variable in highcharts using R?
I have created a factor variable in R using:
dat$Response <- ifelse((dat$questions2 == "Q1" | dat$questions2 == "Q8" | dat$questions2 == "Q9" | dat$questions2 == &...
-1
votes
0
answers
23
views
r : including a spidergraph to an interactive map with shiny
I am trying to add a spidergraph that would appears everytime I would click on a polygone of my interactive map. everything I have tryed either crash, either simply does not work at all.
Does anyone ...
0
votes
1
answer
26
views
Best way to change bslib value_box title text size?
I'm putting a few a bslib value_box on my shiny page and have it working well but the font size for the title is smaller than I would like and can be hard to read. I have read through the bslib and ...
0
votes
0
answers
29
views
Synchronizing and panning to different point in Leaflet maps
I am trying to create a shiny application that presents three-star maps simulating urban and rural night skies with a drop-down sector that will allow you to choose constellations (right now it is ...
0
votes
0
answers
19
views
My shiny app will not display any plots/words but will still run
My shiny app will not display anything except the dropdown menus (none of the text, images, plots, are showing). The app will run, however It will not display anything. I have gone through and checked ...
0
votes
1
answer
32
views
shinyapps.io won't read environment variables from .Renviron
I have created a package containing a run_app function (which calls a Shiny app with runApp) and uploaded it to a private GitHub repository.
The package folder is like this:
project_name/
...