R Shiny: How to build a Shiny app with modules and promises (async)

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024

Комментарии • 22

  • @AndyQuinteroM
    @AndyQuinteroM  3 года назад +1

    Already recieved a question that I can answer here in the comments.
    1. Is there any special reason you use plan(multisession), and not plan(multicore) to take advantage of forking?
    I'm running Mac OS and there have been issues reported with multicore and multiprocess. That is the only reason. On a Linux machine it should work wonders.

    • @younessb.4860
      @younessb.4860 3 года назад

      thank you Andes, your code is clean and useful, hope you keep share your findings 👌

  • @mayank7jan
    @mayank7jan 2 года назад +2

    Man this is so awesome, and the code is super clean. Thank you for this tutorial. This is a big help. 😀

  • @dhirajkhanna
    @dhirajkhanna 3 года назад +2

    Very well explained

  • @igordemetriusalencar5861
    @igordemetriusalencar5861 3 года назад +1

    Thank you very much, man! awesome!

  • @MrP0BS
    @MrP0BS 2 года назад +1

    This is a terrific resource, Andres. Many thanks. (By the way, if you have a Twitter account, I will happily share your details with my followers, as I think your work is really good and deserves more prominence). Would that be OK with you?

  • @korokamy2043
    @korokamy2043 3 года назад +2

    Thank you for this very helpful video. Can you make a video or explain step-by-step how do you create the .Renviron file. Please explain how to create that file. Thanks

  • @enricod4129
    @enricod4129 3 года назад

    Useful tutorial!
    How can we pass to the UI module a list of choices which come from the a list calculated before (the unique values of a column from the data)?
    For example:
    selectInput("InputA", label = "Filter by input A: ", choices = inputA_values, selected = "All")
    In other words, how can I use inputA_values list, which is created before the module?

    • @AndyQuinteroM
      @AndyQuinteroM  3 года назад

      If these values are to be updated constantly the best option would probably be an observer and an update to the UI. On the other hand, if those values a pretetermined, you load them up in your global environemnt (global.R) and pass them as arguments to the module function.

  • @valdrich472
    @valdrich472 3 года назад

    Thanks for the really informative video.
    I was wondering if there's a way to change the URL where the poll is uploaded based on the module ID? Let's say if your running multiple polls on the same dashboard for different subject types?

    • @AndyQuinteroM
      @AndyQuinteroM  3 года назад +1

      Hey! Sorry I had not seen the comment. Absolutely you can do that. I could do a video on that soon.

  • @林紘宇-c6d
    @林紘宇-c6d Год назад

    When I run the program in rstudio, firebase can write and read values normally, but after putting it on shiny and turning it into a website, I can’t connect to the database.
    I also use firedata, and I don’t use absolute paths.
    How can I check for errors? ?

  • @gianluigiseccia5909
    @gianluigiseccia5909 3 года назад

    Hi Andreas thaks so much for this very helpful video.
    I have a problem: I want to read again the data recorded how i can do?

    • @AndyQuinteroM
      @AndyQuinteroM  3 года назад

      Hey, the data recorded by firebase can be accessed directly through the google cloud console or the fireData library from R.

    • @gianluigiseccia5909
      @gianluigiseccia5909 3 года назад

      @@AndyQuinteroM ok, thanks i have seen it.
      And how to delete a row? I sow that there is a function removeValue but i don't understand how to use

  • @deradelo
    @deradelo 3 года назад

    Hi Andres, I have a question, I need to render a leaflet plot in a shiny app, but the entire app waits to this plot to render before showing any other plot, with the approach explained in this video can I render the leaflet plot async to avoid this behaviour?

    • @AndyQuinteroM
      @AndyQuinteroM  3 года назад +1

      Short answer, kind of. The process of creating the plot can be easily made async, however, the building of JavaScript and sending that information to the user cannot. In other words, the building of the R object can easily be made async. Hope it helps. Here is a really good stackoverflow post with something similar. Take a look at the second answer: stackoverflow.com/questions/56795877/render-plotly-plots-asynchronously-in-shiny-app

    • @deradelo
      @deradelo 3 года назад

      @@AndyQuinteroM thanks!!!

    • @AndyQuinteroM
      @AndyQuinteroM  3 года назад

      @@deradelo No problem!

  • @findthetruth3021
    @findthetruth3021 2 года назад

    auto update data for shiny app. Can you make a practical video on that please a there is no video like that.