shinystan icon indicating copy to clipboard operation
shinystan copied to clipboard

Problem with missing themes

Open MLK97 opened this issue 3 years ago • 13 comments

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.

MLK97 avatar Mar 03 '22 14:03 MLK97

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 avatar Mar 03 '22 16:03 jgabry

@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!

jgabry avatar Mar 03 '22 16:03 jgabry

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.

MLK97 avatar Mar 03 '22 19:03 MLK97

Glad that works!

jgabry avatar Mar 03 '22 19:03 jgabry

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

jgabry avatar Mar 03 '22 19:03 jgabry

@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!

MLK97 avatar Mar 07 '22 22:03 MLK97

@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.

klamb011 avatar Mar 08 '22 00:03 klamb011

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?

jgabry avatar Mar 09 '22 23:03 jgabry

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!!

klamb011 avatar Mar 10 '22 03:03 klamb011

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

jgabry avatar Mar 10 '22 18:03 jgabry

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.

lgondara avatar Mar 17 '22 19:03 lgondara

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

jgabry avatar Mar 17 '22 20:03 jgabry

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.

tranktle avatar Apr 09 '22 01:04 tranktle