PoonLab / KaphiShiny

A Shiny web interface for running Kaphi
0 stars 0 forks source link

configNumericInputs branch is to track the config's numerical inputs #1

Closed 0ldM4j0r closed 7 years ago

0ldM4j0r commented 7 years ago

Latest commit at the time of creating this issue: 7d6f5a347faaefd2a33b1451c7526b56470c58e0

0ldM4j0r commented 7 years ago

I am still facing difficulties when trying to dynamically generate numeric inputs for the priors and proposals. I had one renderUI instance render the drop down menu for choosing the prior and proposals distributions and the numeric inputs for said distributions 4e4caba. This was a problem as renderUI renders all the expressions passed through it as one block, which means that the drop down menu that the numeric inputs depend on wasn't rendered before rendering the numeric inputs but at the same time. I split them to counteract the problem but that did seem to solve the issue 7d6f5a3.

ArtPoon commented 7 years ago

Actual error:

Warning: Error in [[: attempt to select less than one element in get1index
Stack trace (innermost first):
    79: renderUI [/Users/art/git/KaphiShiny/app.R#343]
    78: func
    77: origRenderFunc
    76: output$SIRDPriormuDistributionParameters
     1: runApp
ArtPoon commented 7 years ago

To reproduce, select Compartmental in General Model dropdown menu

0ldM4j0r commented 7 years ago

Fixed in configNumericInputs branch. see commits 74c8af6ffcc32d7802ebe1cf1dc3d236a5bb82d4 & 5e936d81a832e49b48ffd30745b57911a1a23e0c.

Opening issue #6 with the generated errors after the dynamic generation of inputs.