Questions tagged [shiny]
Shiny is an R package that makes it easy to build interactive web applications using only R.
25,840
questions
0
votes
0
answers
16
views
adding graphics to if and else statements in shiny
I am getting an error message when trying to display a 'third' graphic on the app. I went around and changed curly brackets but still can't make it work. Could someone point out what am I missing?
...
0
votes
1
answer
16
views
How do I combine scale elements by discrete color on ggplot heatmap?
output$fairness_heatmap <- renderPlot({
# Check the user's selection
heatmap_data <- NULL
groups <- NULL
values <- NULL
color <- NULL
if (input$fairness_metric =...
0
votes
1
answer
11
views
R shiny modules, reactive expression returned from server is unknown
In my "master app" i want to handle the reactives that are returned by included shiny modules. My problem is that I don't find a way to "catch" the returned reactive.
There is an ...
2
votes
1
answer
15
views
R Shiny: Using numeric output variable as the initial value of slider
My shiny app looks like this:
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(title = "Basic dashboard"),
dashboardSidebar(),
dashboardBody(
...
0
votes
0
answers
12
views
How do I get the index of an xlsx file that I input in Shiny?
I want to get the index of a xlsx sheet that I input.
I tried using
fulldata<-reactive({
file <- input$file1
ext <- tools::file_ext(file$datapath)
req(file)
validate(need(...
0
votes
0
answers
19
views
Shiny app changing layout when embed in Wordpress
I'm having a weird problem with Shiny. If displayed on its own the app looks fine (see attached screenshot "correct.png"), but when embedded in Wordpress, the right column below the tabs ...
0
votes
1
answer
22
views
Error: argument "body" is missing, with no default
I am dealing with an issue for several hours, please do not punish me on points. tried pretty much everything was suggested on stack overflow. I use golem library to build up the app, thus please be ...
-1
votes
0
answers
32
views
how to execute selectinput inside a loop?
In fact my problem is bigger than that.I built an app which deals with big excel files .The objective is to load two excel files and using shinywidgets we can filter that data based on choices in the ...
0
votes
0
answers
24
views
Importing excel data from multiple sheets
I have a excel file that contains 2 sheets (Sheet1 and Sheet2).
Both the sheets contains same data (with same column names)
Sheet 1 - 10rows and 5 columns
Sheet 2 - 20rows and 5 columns
Now, I need to ...
0
votes
0
answers
10
views
How to use callbackJS in shinyWidgets?
I used to use in Shinyalert, but because there are some bugs I try to use in shinyWidgets (ask_confirmation).
In Shinyalert I used callbackJS to know if the user click on OK or on Cancel, but it is ...
1
vote
1
answer
24
views
Scroll automatically to the right side of a datatable
Is there any way, in R Shiny, to set the scroll bar from a datatable automatically to the right side when rendered (i.e. to the last column), instead of the left side as it is set by default ?
Base ...
1
vote
0
answers
19
views
Configure subdomain shinyproxy
First things first, I'm quite a beginner at hosting shiny apps on docker and shinyproxy. The terms I use might be a bit layman and incorrect.
I have my application running well on shinyproxy and can ...
0
votes
1
answer
34
views
R Shiny checkboxGroupInput - check boxes for dynamic column display options
I want to create a Shiny page that displays a data frame with an associated check box input that can be used to specify columns to display.
I have managed it successfully with each check box ...
0
votes
0
answers
14
views
Having Trouble Changing the Dashboard Header Background Color in Shiny [duplicate]
Like the title says, I am having trouble changing the background color to blue for my shiny dashboard header. I have an image aligned at the right side of my header and was able to change that ...
0
votes
1
answer
34
views
Drawing Polygons with leaflet in shiny?
I have a geospatial dataset of monthly average temperatures in the US. I want to display this as a leaflet map in a Shiny app. With a time-slider, users should be able to select a visualisation of ...
0
votes
0
answers
15
views
how to filter data using "selectizeGroupServer_modified" but inside a loop of many files?
i am trying to filter my data based on multiple settings residing in a certain folder (settings are in form of excel files).Since i am using shinywidget in order to filter my data and then plot that ...
0
votes
0
answers
30
views
Checking class of selectInput in Rshiny
I would like to ask if it is possible to check the class of the selectedinput generated by the datatable. Is it possible to check the class of the selectedinput? (It will be the x axis) I want to plot ...
1
vote
2
answers
31
views
Shiny : impossible to do a mutate on a reactive data source (reactiveFileReader / reactivePoll)
I'm trying to build a shiny application that gets live data from a .csv file named "test.csv". Here is a example of the data :
name age timestamp
Paul 23 1654095025
Michael 23 ...
0
votes
1
answer
23
views
Icon not appearing in shinydashboardPlus::boxDropdown()
I was trying to implement the below icon into the shiny app.
But the icon is appearing. I was trying with the below shiny code.
library(shiny)
library(shinydashboard)
shinyApp(fluidPage(
# ...
0
votes
1
answer
16
views
shinydashboard error message "Expected an object with class 'shiny.tag"
I am trying to create a dynamic notification on header on a shinyapp, and get an error message as Warning: Error in FUN: Expected an object with class 'shiny.tag'.
The code is as below,
library(shiny)
...
1
vote
0
answers
34
views
Hiding Imported Methods in R Package
If I am making a package, let's call it "P," that imports methods from packages "Q" and "R," is there an effective way to manage the methods accessible to users when the ...
0
votes
0
answers
18
views
Why can't I update my manifest.json file?
I try to update the manifest file of my shiny app to include a new package.
> rsconnect::writeManifest()
Error in file(con, "w") : cannot open the connection
In addition: There were 50 or ...
0
votes
1
answer
23
views
Add dependencies of shinydashboardplus in shiny
Below is the code for shiny app that I am using.
shiny::shinyApp(fluidPage(
# Give the page a title
titlePanel("Telephones by region"),
# Generate a row with a sidebar
...
0
votes
1
answer
30
views
Select current plot and download to file
How can I save the current plot that is displayed on the mainPanel? I am having trouble pointing the correct graphic to the download Handler. This is what I have:
library(shiny)
library(ggplot2)
...
0
votes
1
answer
20
views
Shiny priority of related inputs
Consider this app with three inputs and all are related to each other...
library(tidyverse)
library(shiny)
df <- mtcars %>%
split(.$vs)
ui <- fluidPage(
sidebarPanel(
radioButtons(&...
1
vote
1
answer
27
views
Shiny - switch between fields by tab
I use this Shinyalert in my Shiny app:
library(shiny)
library(shinyalert)
ui <- fluidPage(
useShinyalert()
)
server <- function(input, output) {
shinyalert(
title = " ",
...
0
votes
0
answers
20
views
deployment on shinyapps.io failing
Hi I'm trying to deploy an app on the server, however, I get the following errors
* May be unable to deploy package dependency "rClr" could not
determine a repository URL for the source CRAN....
0
votes
1
answer
38
views
R Shiny change color of text elements above and below the table
I have a simple Shiny app that displays the uploaded file as a table. The code works fine, it's just that I would like to the change the color of the text in the screenshots below to white or ...
0
votes
1
answer
15
views
Problems with reactive ggplot in Shiny
I have the following data frame
> dput(df)
structure(list(Species = structure(c(2L, 2L, 5L, 5L, 2L, 2L,
2L, 2L, 5L, 5L, 2L, 2L, 2L, 2L, 2L, 5L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 5L, 2L, ...
0
votes
0
answers
20
views
Can't make sticky columns in an R shiny app using reactable
Hope you are doing great today.
I have an issue trying to make some columns sticky.
Here is a piece of code that highlights the error I get: Error in colDef: unused argument (sticky = "left")...
3
votes
2
answers
39
views
reactable R shiny conditional color columns on updateData
I have a shiny app which uses reactable to display the status of a task. The information is color-coded for a status column, the data is updated using updateReactable().
Initially the color-background ...
2
votes
1
answer
16
views
Textinput in Shiny - How to cancel autocomplete
I use textinput:
textInput("password_input", label=h4(":pass"),value = "", width = "50%")
and I want to cancel the autocomplete that show me the last choices
...
1
vote
0
answers
33
views
Filter datatable using slider input in Rshiny
I am trying to filter my database to project the correct location of the apartments based on rental cost in Rshiny. But I keep receiving an error Error in if: missing value where TRUE/FALSE needed.
I ...
2
votes
1
answer
35
views
Shiny is undefined in iframe
I am currently trying to develop a minimal working CustomMessageHandling dashbord in R. What I am doing is simply sending a message from my R client side to my Javascript file, which is then run in ...
1
vote
0
answers
26
views
R shiny: Get table to only display the top x rows
Context: I'm trying to make a R shiny server which takes file uploads and displays it in a table in the UI. The file can either be in csv, txt or tsv, meaning read.csv() is not appropriate. Also the ...
1
vote
1
answer
41
views
How to separate shiny app to two files: UI and SERVER
I've this app:
library(shiny)
ui = function(req) {
fluidPage(
textInput("caption", "Caption", "Data Summary"),
verbatimTextOutput("value")
)
}
...
1
vote
1
answer
29
views
Shiny App name in browser tab not correct
The name of My Shiny app on the web tab (be it chrome or edge) is not appearing correctly. This started after I used this piece of code to change the colour of the title. The following is the way I've ...
2
votes
1
answer
30
views
switch graphics with checkboxInput
Consider the toy example below. I am trying to display a different graphic when the checkbox is = TRUE but appears to have no effect. I am using 'switch' to display the graphics based on its label. ...
1
vote
1
answer
45
views
How do I resolve this R shiny server looping if condition issue?
Context:
I am trying to make a shiny feature where the user can upload txt files and view the content of the files as a table. To account for the different types of delimiters I have placed radio ...
0
votes
0
answers
71
views
Button to ggsave graphics to a file
I have multiple graphics to render but for this example I am just showing two. I am trying to save the current graphic to a file.
How can I create a button on my shiny app to save the current graphic ...
1
vote
1
answer
46
views
Rcpp function takes a long time to compile
I wrote my first Rcpp function and am sourcing it with sourceCpp. It takes a long time, but not always (sometimes a couple seconds, but this is the typical):
system.time(sourceCpp('04_Rcpp_loads.cpp'))...
1
vote
1
answer
26
views
Highlight a specific cell based on the criteria in Shiny
I have a data table and I would like to highlight the cells when the value is in between the slider range. red if the value is between 100 - 75, yellow if it is btw 75 - 50, and green if it is btw &...
0
votes
0
answers
26
views
filter by multiple options in Shiny
I have a code below and I would like to show the filtered table based on all the criteria. How to get around with this, many thanks in advance.
library(shiny)
library(tibble)
library(dplyr)
library(...
0
votes
0
answers
16
views
How to convert a long checkbox to slider checkbox with search option in shiny?
I wanted to have a checkbox in my shiny app. But it has a lot of items. I wanted to have a slider with checkbox items with an option to search, too. Is there any way to do this in shiny?
0
votes
1
answer
18
views
How to get a path to generate dataset as an input in shiny
I'm new to shiny, so don't mind me if my question is simple.
I want to take a path as an input from the user and generate the data frame. I've done this so far:
library(shiny)
ui <- fluidPage(
...
0
votes
1
answer
41
views
Include multiple different graphics in shiny app
I am attempting to build my first shiny app. I need to include multiple graphics (about 50) and I am having problems selecting them based on their label from the dropdown control. I am able to show ...
0
votes
1
answer
30
views
Rshiny Unable to Output ggstatsplot
I attempt to plot a boxviolin plot using ggstats in Rshiny. I received an error Can't convert to a symbol. Although I already pass the input as a symbol, I still face this error. The data table has no ...
0
votes
0
answers
25
views
Update Input Triggers itself
I would like the observer update input date to not trigger itself so the table does not render twice. Is there a solution for it? At the moment, when the date range is changed, the observer gets ...
1
vote
1
answer
27
views
R Shiny renderDT is returning a blank table
I am creating another shiny app that allows the user to upload a CSV file and then display the data as table. The app works just fine however the table is blank even though it is picking up the column ...
0
votes
0
answers
15
views
Is it possible to start a shinyWidgets' awesomeRatio input with no option selected?
I would like to use the selected = character(0) parameter in awesomeRatio() input from shinyWidgets package, just as I would use it in radioButtons() input (Shiny's default), but the option does not ...