Problem with missing themes
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.
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?
@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!
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
nameprovided ('refresh') is deprecated in Font Awesome 5:
- please consider using 'sync' or 'fas fa-sync' instead
- use the
verify_fa = FALSEto deactivate these messages Thenameprovided ('refresh') is deprecated in Font Awesome 5:- please consider using 'sync' or 'fas fa-sync' instead
- use the
verify_fa = FALSEto deactivate these messages
Thank you for helping and solving it that fast. Hope this also helps someone else.
Glad that works!
Also, I'm going to keep this open until I can get a release out that fixes this. Thanks again for reporting it.
@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 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.
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?
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!!
Thanks for the update. Strange that the latest RStudio doesn't work. I'll see if I can figure out why.
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.
Thanks @lgondara! That helps a lot. I'll look into bslib::bs_theme.
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.