650 questions
0
votes
1
answer
133
views
How to fire an event on edit only, not on update in Shiny
I want to enable a Save button when a control is edited by the user, but not when its state is loaded by update.... I know of js functions shiny:updateinput and shiny:inputchanged: the latter fires on ...
0
votes
1
answer
209
views
Is it possible to export a div having an id with all its contents using R & Shiny as done for example in javascript with JsPdf?
I know the question is a bit silly but hey it's worth it. Usually, when exporting files with datatables in R and Shiny it's quite easy but today I would like to be able to export all the content of a ...
0
votes
1
answer
201
views
ShinyJS toggle applied to shinydashboard box
I'm having issues using shinyjs::toggle.
I have a box displaying selected inputs which I want to show when the user has selected an input and hide when they haven't selected an input.
shinyUI <- ...
0
votes
1
answer
498
views
Shiny - reactive UI & inputs
I have a Shiny dashboard where I would like the tab to depend upon certain data and then the dropdown input to determine what output is presented (i.e. table, boxplot, line graph). I have 3 tabs and 3 ...
0
votes
1
answer
188
views
can't make ShinyJS disable a checkbox in Shiny DT
I am rendering the full column with checkboxes, each checkbox has its individual id so I can play with the different options and catch the relative states.
in the example below as you can see all the ...
0
votes
1
answer
171
views
Remove/hide or update a Bootstrap panel from shinyWidget
In order to make an app where panels are created dynamically, I would like to remove, hide and/or update panels from the package shinyWidgets.
I didn't find any function to do so nor way to add IDs to ...
1
vote
1
answer
212
views
Remove the click trigger from flipbox
I use the function flipBox from shinydashboardPlus to create flip box and I add a button. The user have to clik on it to flip the box. But the box also flip when we click on it and I would like to ...
0
votes
1
answer
2k
views
R shiny shinyjs toggle output on/off
In a Shiny app, I would like to be able to use check boxes or radio buttons to toggle on and off the visible output.
Currently, I can achieve this only by creating separate check box ui items and ...
0
votes
2
answers
397
views
In Shiny/R app - why plotly charts are flickering?
I having a trouble here, this is my code:
library(gapminder)
library(shiny)
library(plotly)
library(shinyWidgets)
df_first_mexico <- gapminder %>% filter(country == "Mexico")%>% ...
2
votes
1
answer
2k
views
Remove an input from a session in Shiny
I am facing the following problem: I have a shiny app where a user is going through a planning process (there is a lot of user input). When the process is complete, I'd like to implement an ...
0
votes
0
answers
311
views
R Shiny: Hiding and showing verbatimTextOutput
I am currently trying to create an R Shiny app with multiple tab panels.
On one tab panel I would like to enter some numbers and then depending on a button show and hide the numbers entered.
I use ...
0
votes
1
answer
145
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)
...
2
votes
1
answer
499
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 ...
0
votes
1
answer
405
views
How to use Shiny.setInputValue() with the shinyjs package?
With a Javascript snippet in Chrome devtools, I can use Shiny.setInputValue('input',0) while my Shiny app is running to reset the value of an actionButton. It works well and I only need that one line.
...
1
vote
1
answer
339
views
How to show just the legend in R?
I want to create a legend to depict what different colors mean. Like the image below:
I'm able to achieve this by passing Null values to plot but the plot takes up a lot more white space around it. (...
3
votes
1
answer
1k
views
Disable pickerInput in Shiny
I use pickerInput from shinyWidgets and I would like to disable it. For this purpose, I used the function disable form shinyjs package but it's doesn't work. But when I use selectInput it's work. This ...
0
votes
1
answer
42
views
Enable/disable selectInput based on value in another selectInput
In my shiny app, I need to disable selectInput Season and selectInput Mesh if the value selected for selectInput Species is "Kemps". Those same two selectInput objects should be enabled for ...
2
votes
0
answers
64
views
Editable Table functionality in R-Mobile Shiny
I see that datatable works well with Shiny web to have editable cells or rows/columns. They are caught using cell_edit events. But I cant find a similar thing for mobileShiny in f7table. rhandsontable ...
0
votes
1
answer
257
views
disable downloadButton when no shiny checkboxGroupInput item selected
I would like the download button in the below shiny app to become enabled ONLY when at least one check box is selected. Following this guidance, the below app disables the button upon page load and ...
0
votes
1
answer
240
views
How to disable tabpanel in the app deployed on shinyapps.io?
I have a problem disabling tabpanel in my shiny app. To do so, I tried the following code:
library(shiny)
library(shinyjs)
ui <- navbarPage("Hello",
tabPanel("...
0
votes
2
answers
351
views
Dynamic border colors
I want to have a set of dynamic textboxes that have border colors that match the color that's described by it. If the text of the textbox is "red", I want a red border. Here is how I am ...
0
votes
0
answers
342
views
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....
1
vote
0
answers
367
views
How to disable all Shiny UI elements, including a downloadButton
This answer explains how can one disable/enable all UI elements in a Shiny app.
Among the two solutions given, the one I am interested in uses the shinyjs package (I'd rather not play with javascript ...
3
votes
1
answer
794
views
How to modify class of multiple elements using shinyjs
I have a shiny dashboard that displays various elements (highchart and ggplot plots, datatables). Users can filter by some variables to create a "groupA" and groupB" of data. GroupA is ...
0
votes
0
answers
240
views
R Shiny shinyjs window.scrollTo scroll distance limited to active tab
I have a shiny app with a sidebar menue and several different tabs. Within each tab, there is a lot of content that is supposed to be seen together, so the tabs are quite lengthy and navigating can be ...
1
vote
0
answers
199
views
How to create our own spinner in r for the initial load
I am trying to display the percentage load spinner while loading the shiny app but in there is no default percentage load is spinner then i tried to google it i got the code in HTML, CSS, js code (...
2
votes
1
answer
381
views
toggle controlbar based on tab and action button
I'm trying to toggle the control bar using an actionLink in the top right (to basically copy what the gears icon is doing, and later I will remove the gears icon to just have one actionLink) and also ...
0
votes
1
answer
303
views
shinyjs::toggleState does not work with input produced in renderUI
In the following app, users are supposed to upload a csv dataset file and select a column for further processing. The columns to choose from will of course depend on the uploaded file. Therefore, the ...
1
vote
3
answers
1k
views
Import the icon of TabPanel from file in R Shiny
I have a simple app and want to add custom icons to my TabPanels
See code
library(shiny)
ui <- fluidPage(
br(),
navlistPanel(
tabPanel('Menu1', icon = icon("bar-chart-o"),
...
0
votes
1
answer
661
views
R Shiny: Clicking button in tab hides button/questions/radio buttons and displays results in the same tab instead
I have a tab with n questions, each associated with Likert style radio buttons. I would like to display the selected answers in a number of different ways (plots etc.) without switching to or creating ...
1
vote
2
answers
934
views
Problem with combination of hide(), show() and reset() in shiny
I have been having problems combining the hide(), show() and reset() functions from the shinyjs package.
I have two divs. One div collects data using multiple user inputs and ends with a submit button....
0
votes
1
answer
292
views
want to put the focus and edit the first cell of my dynamic table
I want to put the focus and edit the first cell of my dynamic table when the user clicks a button.
the problem is that the id of the table tag is dynamic. actually, the name I put in dtoutput is a div ...
0
votes
1
answer
276
views
Use shinyjs to trigger an event based on the current active bsplus carousel slide
I'm trying to trigger an event in my shiny application, based on the slide that is active in a bsplus carousel that's housed within a modalDialog, i feel that using shinyjs is the way forward, given ...
0
votes
1
answer
178
views
Hide image in modularized shiny app after hitting actionButton()
In the shiny app below I want an image to be displayed upon app loading for first time and then be hidden after clicking the actionButton().
library(shiny)
library(shinyjs)
library(shinydashboard)
...
1
vote
1
answer
214
views
Display box with plot after hitting actionButton() in modularized shiny app
In the modularized shiny app below Im trying to display both the plot and its box when I hit the actionButton(). Although it was working for the plot when I tried to do the same logic for the box both ...
0
votes
1
answer
1k
views
Show and hide text in modularized shiny app based on actionButton() and shinyJS()
In the modularized shiny app below Im trying to display a message when the app is loaded for first time and then when I click the actionButton() this message is being hidden using shinyJs() and the ...
1
vote
2
answers
245
views
Extract the duration of hosted audio files in R (without downloading the file)
I have a list of hosted audio files for which I would like to get the duration of, without having to download the files themselves.
I can do this by creating a html DOM element <audio> and ...
2
votes
0
answers
383
views
All but one downloadHandler with shiny.fluent not working, just opens new tab running new instance of application instead of download
We have a very complex app which contains 20 downloadHandler instances that serve either .csvs, .rmds, or .zip files. Until this past week they all worked, we've been doing a lot of work on other ...
1
vote
1
answer
2k
views
Shiny seesion object is not found when trying to use shinyJS()
In the shiny app below Im trying to use shinyJS() to hide and display text but I get:
Error: shinyjs: could not find the Shiny session object. This usually happens when a shinyjs function is called ...
1
vote
1
answer
316
views
Why the selectInput() does not work correctly when multipe = TRUE?
I want to get the items that were selected from selectInput(). However, it seems only the first item could be transferred to server().
The UI:
sidebarLayout(
sidebarPanel(width = 4,
...
0
votes
1
answer
504
views
How to get user information from Shiny server inside Azure web apps using EasyAuth?
I've got a shiny app inside azure app service using Azure's EasyAuth. I can successfully authenticate to open a page. However, I'd like to get the user information which isn't automatic since Shiny ...
1
vote
0
answers
135
views
Moveable Splitter bar in Shiny (split.js, react.js splitter, etc.)
I was wondering if anyone has ever successfully implemented a moveable splitter bar/pane in their Shiny App before? I am curious on whether these JS libraries have ever been implemented in Shiny:
...
7
votes
1
answer
3k
views
How do you use addResourcepath() in R Shiny?
I'm struggling to understand how to use the addResourcePath() function from R shiny (https://shiny.rstudio.com/reference/shiny/latest/resourcePaths.html), even despite this apparent solution to ...
1
vote
2
answers
176
views
How to use checkbox:nth-child with inline checkboxGroupInput? [closed]
In following this question if the checkboxGroupInput has inline=TRUE then disable(selector="#a .checkbox:nth-child(1) label") will no longer disable the option. Is there a tweak to the ...
1
vote
1
answer
1k
views
How I can hide a tab with shinyjs?
Hi and thanks for reading me
I am working with an application that has a password layer and I would like to know how I could hide a tab item based on the person entering the application. So far it is ...
0
votes
2
answers
280
views
In R Shiny, how to eliminate the flashing of observeEvent conditionals when first invoking the App?
In the below MWE code, the object input2 is optionally called by the user by clicking the "Show" radio button for Input 2. Default setting is to hide input2. However, when first invoking the ...
0
votes
1
answer
158
views
Reset conditionalPanel fileInputs with rshiny and shinyjs()
In my application the user can select a number of sessions, which determines how many files widgets the user has available where they can upload files.
What I would like to happen is that when the ...
0
votes
2
answers
342
views
How to disable a button based on input condition?
Im trying to create a condition on a push button so it only works when my input is not empty AND is numeric .
My code partially works as the button starts in a disabled gets enables when an input is ...
0
votes
0
answers
118
views
Prevent refreshing SelectInput while changeing data
I have used reactiveVal for the data, I have actionbuttons where I am using for filling N/A's, Square UP values of columns etc. While using actionbuttons the selectin put is resetting and goes to its ...
1
vote
2
answers
540
views
How to auto redirect to tab in shiny without blocked by chrome by auto clicking link in shiny?
I would like the shiny app to auto redirect to the url in a new tab. I tried to use window.open(), but the popup will be blocked by chrome
I also notice if the very first thing after clicking button ...