stan-dev / shinystan

shinystan R package and ShinyStan GUI
https://mc-stan.org/shinystan
GNU General Public License v3.0
197 stars 51 forks source link

Problem with missing themes #194

Open MLK97 opened 2 years ago

MLK97 commented 2 years ago

Hello,

I installed shinystan on two machines (Windows, Linux) and in both cases when trying out shinystan via launch_shinystan_demo() I get the error

:warning: Warning: Error in shinythemes::shinytheme: flatly is not an available theme. Valid themes are: . 82: stop 81: shinythemes::shinytheme

So far I have reinstalled shinystan a couple of times. I also installed and included shinythemes and shinyjs as well as shiny all manually to see if something went wrong there but the problem keeps popping up.

I don't know if I have to install something additonally on my local system. It seems also that noone has encountered that same warning message, yet.

jgabry commented 2 years ago

Thanks for reporting this! I'm on a Mac and everything seems to be working ok, so maybe this is an issue only on Windows and Linux. @VeenDuco if you have a moment could you see if you are able to reproduce this error on your computer?

jgabry commented 2 years ago

@MLK97 Can you try installing shinystan from a branch I just made (without the flatly theme) and see if that works? You can do

devtools::install_github("stan-dev/shinystan", ref = "no-flatly-theme")

and then try loading shinystan and checking launch_shinystan_demo(). Thanks!

MLK97 commented 2 years ago

Sorry for the late reply @jgabry This actually did the trick and it works now. Only getting a deprecated warning but that is not a big problem

Listening on http://127.0.0.1:7210 The name provided ('refresh') is deprecated in Font Awesome 5:

  • please consider using 'sync' or 'fas fa-sync' instead
  • use the verify_fa = FALSE to deactivate these messages The name provided ('refresh') is deprecated in Font Awesome 5:
  • please consider using 'sync' or 'fas fa-sync' instead
  • use the verify_fa = FALSE to deactivate these messages

Thank you for helping and solving it that fast. Hope this also helps someone else.

jgabry commented 2 years ago

Glad that works!

jgabry commented 2 years ago

Also, I'm going to keep this open until I can get a release out that fixes this. Thanks again for reporting it.

MLK97 commented 2 years ago

@klamb011 have you tried @jgabry's workaround?

@MLK97 Can you try installing shinystan from a branch I just made (without the flatly theme) and see if that works? You can do

devtools::install_github("stan-dev/shinystan", ref = "no-flatly-theme")

and then try loading shinystan and checking launch_shinystan_demo(). Thanks!

klamb011 commented 2 years ago

@MLK97 Alright. I did that and it opened what appears to be another window with what I am assuming is the shiny app. That worked just fine. But I try running my code and it still says that the theme is not available.

jgabry commented 2 years ago

Hmm, that's strange. I wonder if you need a fresh R session. If you start a fresh R session, run the installation code above, and then try launching shinystan with your model does it work?

klamb011 commented 2 years ago

I ended up fixing it myself. Apparently, I needed an older version of RStudio, specifically 1.3.1096 instead of the most recent version. So if anyone else runs into this issue, there you go!!

jgabry commented 2 years ago

Thanks for the update. Strange that the latest RStudio doesn't work. I'll see if I can figure out why.

lgondara commented 2 years ago

I was having the same issue, but for another shiny app. Issue seems to be with shinythemes package and the new R Studio. Replacing shinythemes by bslib seems to resolve the issue. i.e. instead of shinythemes::shinytheme("theme_name"), use bslib::bs_theme(bootswatch = "theme_name" ). It also states on shinythemes repo that it has been superseded by the {bslib} package. Hope it helps.

jgabry commented 2 years ago

Thanks @lgondara! That helps a lot. I'll look into bslib::bs_theme.

tranktle commented 2 years ago
devtools::install_github("stan-dev/shinystan", ref = "no-flatly-theme")

Thank you, I came up with the same error (I use Windows), and running the above line helped.