GithubHelp home page GithubHelp logo

Comments (10)

yihui avatar yihui commented on May 18, 2024

Sorry I tried my best to click as fast as I can, but I just could not reproduce the problem. I'm not sure if it is because my laptop is just too fast... (8G Memory, Intel Core i7-3630QM CPU @ 2.40GHz × 8).

from dt.

smartinsightsfromdata avatar smartinsightsfromdata commented on May 18, 2024

(Sadly) I can do it every time. Not sure how much depends from the actual speed of the device.
With my Macbook pro (16GB, 3 GHz Intel Core i7, 2 cores) and the apple trackpad is very easy to reproduce (in this case because it is very easy to click very fast on the trackpad).
It happens (more sadly!) in my application based on shiny pro (on centos 6.5) and a remote client. I believe a slow connection between server and client makes it possible to generate a disconnect (different statuses cached etc.).
Could you kindly try selecting many boxes, then very quickly selecting / deselecting a middle box?

Also, would it help if I take a screencast?

from dt.

smartinsightsfromdata avatar smartinsightsfromdata commented on May 18, 2024

@yihui I have done a screen recording of the problem, but it is not supported by github.

Here is the video https://www.dropbox.com/l/tpzeafZeyB2JOas3PrusKs/invite
or
https://www.dropbox.com/sh/eevmfrahay9bq3s/AADu5qSWu81OAlVISSTndTCva?dl=0

from dt.

yihui avatar yihui commented on May 18, 2024

Thanks for the screen recording. I can see your problem.

Perhaps it was a bad idea from the beginning when I told you the checkboxRows(df_, input$demTb_selected) trick, since it means the table can update itself when you click the checkboxes. Then the renderUI() stuff makes the dependency structure even more complicated... Every time I have to stop and think for a while to figure out what this app really does. Sorry, I guess I don't have the bandwidth at the moment to solve this problem. I'll see if I can try again a few days later.

from dt.

smartinsightsfromdata avatar smartinsightsfromdata commented on May 18, 2024

@yihui As I have a similar problem with shiny and numericInput (and renderUI), I've just posted an issue on the shiny site referencing this one as well.

from dt.

yihui avatar yihui commented on May 18, 2024

Thanks! You may also post an example of numericInput() and renderUI() there. I think that example should be easier to debug than this DT one.

from dt.

smartinsightsfromdata avatar smartinsightsfromdata commented on May 18, 2024

@yihui so far nothing has happened on this issue:

  • I tried minor changes but I still got the endless loop
  • I've got no further comments on my post on shiny here rstudio/shiny#787

Would you kindly have time to help?

from dt.

yihui avatar yihui commented on May 18, 2024

I guess this issue is not specific to DT, but is a general shiny problem, so I'm closing this issue, and let's keep the discussion in the shiny repo only. Anyway, as Joe pointed out, if only you could avoid the circular dependency...

from dt.

jasdumas avatar jasdumas commented on May 18, 2024

Is the rownames = checkboxRows() still active ? This would be a useful feature in appending checkboxes to the rows

from dt.

yihui avatar yihui commented on May 18, 2024

@jasdumas No, it has been removed. Please see #93 (comment)

from dt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.