radiant-rstats / radiant

Business analytics using R and Shiny. The radiant app combines the menus from radiant.data, radiant.design, radiant.basics, radiant.model, and radiant.multivariate.
https://radiant-rstats.github.io/docs/
Other
459 stars 136 forks source link

Compare Means/Proportions Sometimes Not Working #210

Closed koushr89 closed 11 months ago

koushr89 commented 1 year ago

Hi again,

Sometimes, after a few times of working with compare means or compare proportions, after switching to another page and then coming back, the boxes for choosing variables do not appear. If I refresh Radiant then those boxes appear but I don't think that is the best solution.

image image

My theory is that whenever in a session I use compare means, compare proportions becomes unavailable and vice versa.

koushr89 commented 1 year ago

This issue also applies to other functions such as Linear Regression:

image

After refreshing the page the boxes to choose variables appear:

image

vnijs commented 1 year ago

Thanks for reporting. There haven't been any major changes to the code in Shiny so I suspect the issue might be due to a dependency. Can you try downgrading shiny to version "1.7.4.1" and then check if you still see the issue? If we can repoduce the issue, I can open an issue for Shiny on GitHub.

remotes::install_version("shiny", "1.7.4.1")
packageVersion("shiny")
[1] '1.7.4.1'
koushr89 commented 1 year ago

Thank you. This seems to have resolved the issue. Should I tell my students to run the same command?

vnijs commented 1 year ago

Yes.

I think we are near(er) a solution with the shiny team to things working with 1.7.5 but I want be very sure there are no lurking issues. Thanks again for reporting!

vnijs commented 1 year ago

This seems to be a rather complex issue. See discussion here: https://github.com/rstudio/shiny/pull/3904

If you can, I'd suggest using shiny 1.7.4.1. If you are already using Radiant from Rstudio, you can use the "Sync packages" option from the Addins menu to get that version of shiny.

vnijs commented 11 months ago

This is fixed in the latest version of the shiny package. If you upgrade to the latest version of radiant.data, it will use shiny 1.8.0 or newer.