Questions tagged [shinyalert]

An R package aims to create pretty popup messages (modals) in 'Shiny'.

32 questions
3
votes
1 answer

How to make a shiny or javascript alert that appears in front of other windows/apps

I am writing an app that will be used to copy large numbers of photos (often tens of thousands at a time) from SD cards to external hard drives, which people will be running in the background while they do other work. I want to notify the user when…
tamarack
  • 377
  • 1
  • 11
3
votes
1 answer

Change the color of a shinyalert 'OK' button (confirmButtonCol) using a css stylesheet

I used the className = 'alert' attribute in shinyalert() so that I could format my shinyalerts in a CSS stylesheet. I can change the text and background color of the whole modal (eg tags$style('.alert {background-color: blue}')), so I know that…
tamarack
  • 377
  • 1
  • 11
3
votes
1 answer

Shinyalerts: How do I know whether user pressed OK or Cancel?

I am creating an application that allows user to delete some information. However instead of just deleting it right away, I would like to be sure that the file being deleted is a correct file. I came across the shinyalerts package that allows to to…
2
votes
1 answer

How do I display a shinyalert pop-up while loading data in R shiny?

I'am working on a pretty "big" dataset that takes at least 20 seconds to be read entirely at the launch of my Shiny app. I would like to display a pop-up waiting message like the one below during this reading time, which will close automatically…
2
votes
1 answer

Reset the input for shinyalert in R shiny

It will only append the first time I click because input$shinyalert is TRUE after I hit okay. Is there a way to reset the input for shinyalert so that it will re-trigger my observe when I hit action button the second/third.. time in a session. I…
Elaine Sea
  • 43
  • 5
2
votes
1 answer

How to make the size of icon consistent when using Shiny and Shinydashboard?

I am adding clickable icons in my shiny app to show a popup information box. Please see the following screenshot and code example. My strategy is to wrap my text and the code for actionLink in the HTML function. This works well. However, the size of…
www
  • 38,575
  • 12
  • 48
  • 84
1
vote
1 answer

Cannot add sortable::rank_list() inside of a shinyalert or modal

I am trying to add a rank_list from the sortable library in a Shiny application. This seems to work fine if the input is in the fluid page part of the UI. When I add it to a shinyalert() or a modal, the input shows up in popup but the choices aren't…
shbshk
  • 72
  • 5
1
vote
1 answer

How to skip elements in chaining modal approach (shinyalert library)?

My problem with breaking a loop insidse shinyalert has been solved in this post. I decided to try "Chaining modals" approach. The approach seems to work in my case, hovewer I am facing another problem- as I am not using any loop, values are not…
Mark Perez
  • 177
  • 7
1
vote
1 answer

How to break a for loop basing on captured shinyalert input value

I am using a for loop to create multiple popping up messages in my shiny app (using shinyalert package). I would like messages to stop popping if user had clicked Cancel as an answer to a previous message. Below a sample of code illustrating my…
Mark Perez
  • 177
  • 7
1
vote
1 answer

Shiny modal that is dependent on fileInput() in shiny app

I have created a modal that is activated when the app is launched and warns the user that he first needs to upload an excel file. But when I upload it the modal is displayed again which seems to be wrong. library(shiny) library(shinyalert) ui <-…
firmo23
  • 7,490
  • 2
  • 38
  • 114
1
vote
0 answers

How to open two shinyAlert popups in sequence, showing two different tables into themeselves

Here in attach my example piece of code that doesn't work. If I #hide the first shinyalert, the second popup shows correctly the table. I think the wrong behaviour depends on a IDs mismatch, but I wasn't able to write different IDs manually on the…
1
vote
1 answer

RShiny shinyalert callback not updating variables?

Over the last couple weeks I've been experimenting using shinyalert() to explore the potential of using inputs within an alert and trigger a chain shinyalert() if inputs are not left blank. There a couple of things that are high priority in my…
gcatlin
  • 11
  • 2
1
vote
1 answer

ShinyAlert as input inside downloadHandler

Is there a way to use Shinyalert() as a filename input for downloadHandler()? I want to create an app where the user can download the plot, and a "save as:" pop-up input message will appear. Then the file will be saved as whatever the input is. I…
Wei
  • 131
  • 1
  • 8
1
vote
1 answer

Inline icon in the label of an input field at the sidebar panel in Shinydashboard

I have a follow-up question of my previous question (How to make the size of icon consistent when using Shiny and Shinydashboard?). Now I want to add a radio button in the sidebar panel and also add an icon at the end of the label. This icon will be…
www
  • 38,575
  • 12
  • 48
  • 84
0
votes
0 answers

Strange error with a 'shinyalert' example: length(3) in coercion to logical(1)

When I run the app below and press the Go button, the R session crashes with this error: Warning : Error in &&: 'length = 3' in coercion to 'logical(1)' 3: runApp 2: print.shiny.appobj 1: library(shiny) library(shinyalert) …
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
1
2 3