650 questions
0
votes
1
answer
69
views
Toggling a conditionalPanel within rintrojs
I would like an introduction using rintrojs that highlights a button that toggles between showing and not showing a conditionalpanel. If the conditional panel is not showing, when the intro gets to ...
0
votes
1
answer
247
views
Shiny: initialize a tabPanel() as disabled
I have an app where a certain tabPanel() must be initialised as disabled.
Solutions seen elsewhere (e.g. Shiny: Disable tabPanel() using shinyjs) address the problem by disabling the tabPanel() after ...
1
vote
1
answer
260
views
Modularized Shiny app: How to download dataset passed between modules
Background
I want to pass a dataset (iris in the below reprex) between modules. Once passed, I want to click a button to download the dataset. I'm not able to download the dataset. It's part of a ...
1
vote
1
answer
60
views
How do I reset input$variable in the Shiny Server code block?
In the Shiny App below, I have added a few buttons to my DT and with every click I would like to +/- 1 to the number column in the DT. This works, but when a button is clicked twice the second time it ...
2
votes
1
answer
560
views
Shiny app: how to go one step/entry back (with a back button) after multiple data entry/series of radio radiobutton entry
I have written a shiny app that presents different radio buttons to the user. Depending on the input, numbers will be added to a score/counter and other radio buttons will pop up (and the previous ...
0
votes
2
answers
325
views
How to clear fileInput data and corresponding objects in R Shiny?
After looking at some exisiting solutions I still could not solve the problem.
I want to delete every data that was uploaded in my shiny app after pressing the sign_out button (which of course also ...
2
votes
1
answer
56
views
How to disable an actionbutton until embedded video is complete in Shiny
I'm building an app which includes embedded video and audio files. I've got action buttons that let users navigate forwards, but I need them to be greyed out until the embedded video/audio is complete....
3
votes
1
answer
221
views
Observe fileInput button click even when no file loaded in R shiny app
I have a short and seemingly naive question :
How can I detect that fileInput button has been clicked, even if no file is selected ?
Indeed, I would like to do something in observeEvent when a ...
0
votes
1
answer
347
views
r shiny - communication of inputId between shiny modules in order to use shinyjs functions like disable/enable/toggle
I've been delving into Shiny modules, and so far, everything has been going well. However, I'm having trouble manipulating inputIds that come from another module. Specifically, I want to use functions ...
1
vote
1
answer
133
views
Disable inputs while server is busy
What is the best way to disable all inputs while the server is busy computing?
I have several inputs whose changes trigger small computations and the rendering of an output. Usually everything works ...
1
vote
0
answers
97
views
Reactive values not updating when actionButton is clicked with shinyjs
I have a Shiny app in which a pickerInput() is updated based on the value selected in another pickerInput().
library("shiny")
library("shinyWidgets")
ui <- fluidPage(
shinyjs:...
1
vote
0
answers
400
views
QR code scanning using Mobile Camera in Shiny Web App
I am trying to develop a shiny webapp where users can scan the QR codes from their mobile phones.
I have written the below code for scanning the QR codes using javascript and shiny. The code is ...
1
vote
1
answer
556
views
Hot to use shinyjs to get the id of a clickable <div> element?
I'm making a ShinyApp that uses plain HTML to order clickable <div> sub-elements inside another <div> element.
I want the click event on the sub-elements to trigger a reactiveVal() in my ...
0
votes
0
answers
402
views
How to return the filtered rows in a reactable table in a Shiny app module
I am looking for some help please to develop a solution to return the filtered rows in a reactable table in a Shiny app module.
I am looking to identify which rows are the subset of mtcars after the ...
0
votes
1
answer
49
views
redirect console log to verbatimTextOutput and autoscroll to the bottom with custom css
given a verbatimTextOutput("consoleOutput") in the ui of a shiny app, what is needed to redirect the console log output to the verbatimTextOutput, autoscroll to the bottom when a new message ...
0
votes
1
answer
105
views
update menuanchor of fullPage.js in R Shiny App from server side
I am using the fullPage package to create a Shiny App and I am facing the following issue : I would like to update from the server side the labels of the menu that are first defined in the pagePiling ...
1
vote
0
answers
93
views
R Shiny App access variables from embedded Jotform HTML code with javascript
I have created a form with Jotform that I would like to embed in my R Shiny App.
Using shinyjs (?), I would like to access the information filled in the form by the user for using it somewhere else in ...
1
vote
1
answer
55
views
Why does shinyjs::reset clobber subsequent updateTextInput commands?
The new name value is not getting set after the reset when "Fill example name" is hit
library(shiny)
shinyApp(
ui = fluidPage(
shinyjs::useShinyjs(),
shinyjs::inlineCSS(list(.big = ...
2
votes
1
answer
118
views
generate right click and select custom menu R shiny JS automatically
I have created the following App using R Shiny
library(shiny)
library(rhandsontable)
library(shinyjs)
ui <- fluidPage(
sidebarLayout(sidebarPanel = "Inputparameter",
...
1
vote
1
answer
123
views
I need JS code to collapse a box in Shiny/bs4Dash
I try to collapse a box with an action. This code works in shinydashboard how should I change jscode for doing same thing in bs4Dash ? Any idea?
library(shiny)
library(shinydashboard)
library(shinyjs)
...
1
vote
1
answer
79
views
Shiny actionbutton to set a customized default
In this shiny App (code below), I need that the button labeled 'Customized' returns:
Select var X: disp
Select var Y: drat
Point size: 1.0
This necessity is a bit similar to the reset button ...
0
votes
1
answer
180
views
Change html with an animation effect in a shiny app
I am having a shiny app with some ui elements.
Is there a way to replace some HTML (e.g. div / div content) with an animation effect, similar to what shinyjs::show(anim=T) does?
library(shiny)
library(...
1
vote
1
answer
107
views
Deactivate shiny selectInput() choices from being selected
In the shiny app below I have a selectInput() in which I want only the choices to be displayed but it will not be possible to select another one of the choices than the selected one. In a few words I ...
0
votes
1
answer
101
views
R flexdashboard Error in disabling the submit button even if there is no radio button option is selected or when any option is selected
In my flexdashboard code, what I am trying to do is:
initially, no radio button is selected, and there are two options only
option (radio button) one is to upload the data, option two is to connect ...
3
votes
0
answers
109
views
Shinyjs hide and show not properly working
I have a problem with shinyjs hide() and show(). I use this to hide and show different data anyalysis that can be choosen from a side bar.
If I do one part of my code it works fine but when I hide() ...
2
votes
0
answers
234
views
sequence of events in shiny r when simulating button clicks by javascript in a loop
I am simulating several clicks on an action button by doing javascript calls document.getElementById('btn').click(); in a loop.
The issue is that the loop runs first to the end (say 3 times as in ...
2
votes
1
answer
591
views
In Shiny click event is not working when using modules
why when Im using modules the clickable feature in my highchart treemap is not working.
I tried this without module and worked well.
Probably is something related no namespace, right , but I can not ...
0
votes
1
answer
31
views
Shiny : keep the value in the mainpanel
This app shows a radiobutton choice between 3 lists : lower, upper, digit items
To test it, save the following code below in a directory "shiny" and in an app.R file. Then launch R and type :...
1
vote
1
answer
530
views
How can I toggle the Action Button on/off using ShinyJS?
I have built a simple Shiny App with a plotly drilldown chart.
I want the Action Button to appear only when the plotly click event occurs (this is working), but then I want the Action Button to ...
1
vote
2
answers
601
views
R shiny: how to clear an input field with a default value using shinyjs?
I'm trying to use the shinyjs package to clear and disable an input field that has a default value in my shiny app. The clear/disable button seems to work. However, when I click submit, the default ...
0
votes
1
answer
118
views
VisNetwork visEvents javascript to uncollapse box
I am trying to use visEvents() selectNode and deselectNode arguments from the visNetwork R package to run a javascript code that would collapse/uncollapse a Shiny box (within fluidRow) based on ...
3
votes
1
answer
2k
views
How to use shiny.setInputValue within a module?
I am using the shinyjs::runjs("Shiny.setInputValue(...)) command to get the innerText value of the 'calendar_renderRange' span of the toastui calendar widget. The command is working in a non ...
0
votes
1
answer
463
views
How to center *reactive* box in RShiny?
I am trying to have an explanatory image and text box appear after a user presses an action button. Ideally, Id like the box to be centered and directly below the image without too much space in ...
0
votes
1
answer
238
views
R addEasyButton - mouse hover label for a new button
I am using R leaflet and I added a custom button to the map using 'addEasyButton'. I have trawled any conceivable source and can not find a suggested way to create a mouse-hover label to pop up for my ...
1
vote
0
answers
92
views
Why the next_condition parameter in shinyglide::screenOutput() function doesn't work the first time the screen is rendered?
Questions
Why when I click the "Next" button and then return to the first screen using the "Back" button, the condition works and I can't go forward until I click in at least one ...
3
votes
1
answer
69
views
How to organize selectizeInput fields with dependecies on each other
I have this working app: It is a follow-up question of some previous questions:
library(shiny)
library(vtree)
df <- tibble(A = c(rep("nature", 18), rep("not nature", 9)),
B = ...
2
votes
1
answer
43
views
DT Table pre-selction are not updated untill the table Panel is open
I've tried in many way but I can't find a solution.
I've made an app for which some calculation are made according to some other number selected through the DT Selection funcionality.
On this app is ...
2
votes
1
answer
162
views
How to stop the playing of a sound in R Shiny
When playing a sound I would like to have the possibility to stop this with another button. Or when pressing the play button again, the playing of the sound should stop, and then played from the ...
0
votes
1
answer
219
views
How to disable a downloadButton in shiny when rmarkdown is rendering a report?
How can I disable a downloadButton while server is busy rendering a Rmarkdown report?
The ideal would be to make the button disable only while the server is busy rendering the report, if the server is ...
0
votes
0
answers
95
views
How to force browser to open generated PDF in a new tab? Possible to 'host' generated PDF on Shiny server?
I have a Shiny app that generates a PDF report given a user's input.
Is it possible to either;
Force the browser to open the downloaded PDF in a new tab (Firefox does this automatically, but for most ...
1
vote
1
answer
801
views
How to adjust width of well panel in Shiny?
Is there way to adjust the width of a well panel as shown in the image below? At the bottom is the code, if the user clicks the "Delete column" action button a conditional panel renders ...
0
votes
1
answer
24
views
How to adjust the positioning of objects rendered using shinyJS?
In the code excerpt posted at the bottom, a well panel with embedded objects is rendered underneath the action buttons, when the "Delete column" action button is clicked. The well panel ...
2
votes
2
answers
470
views
Using e_on() to trigger an event within a dynamically rendered UI
Here's a question for RShiny users. I have developed an application which has multiple routes on rendering UI, through action buttons, dropdowns and graph click events. My goal is to fully modularise ...
1
vote
1
answer
100
views
How to conditionally render a surrounding box when revealing otherwise hidden objects in R Shiny?
In the below simplified code, I use shinyjs to jointly show and hide text and table output. The text output is "Test show/hide in JS", the table output is a portion of the Iris data. By ...
1
vote
1
answer
760
views
Reload a page and switch to tab
I use the package shinyjs to allow the user to reload the page by clicking on "Reload the page" button in Tab 2 and I would like to stay on Tab 2 after reloading the page. But after ...
0
votes
1
answer
201
views
How to preserve manual edits to tables rendered with the rhandsontable package in R shiny?
The below code allows the user to manually edit values in the table rendered via rhandsontable, and furthermore, add columns to the table. However, when a column is added via the "Add" ...
0
votes
1
answer
54
views
Why do the observers work in one example and not the next?
I have the observers working correctly in Example 1 code below, whereby clicking the "Click to show" button renders text and "Click to hide" hides the text. I am trying to extend ...
2
votes
1
answer
335
views
The icon that hides and seek right sidebar in shinydashboardPlus() is not working
In the shinydashboardPlus() below I activate and deactivate the right sidebar ability based on the tab I use. The issue is that when Im in the 2nd tab I cannot hide the right sidebar by clicking on ...
1
vote
1
answer
98
views
R Shiny selectizeInput cuts selected keywords in choices list
I have a disturbing problem with selectizeInput. Whenever I search for several key words, the words are cut or deleted completely. In the minimal example below, when I fill in "producer price&...
2
votes
1
answer
314
views
DT Package PDF Extension Button
I have a rather large table, that if I fit it into the DT table and do a PDF print on it, there will be portions of the column that will be cut off. Also, I wanted to adjust the size of the title when ...