Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with missing themes #194

Open
MLK97 opened this issue Mar 3, 2022 · 13 comments
Open

Problem with missing themes #194

MLK97 opened this issue Mar 3, 2022 · 13 comments
Labels

Comments

@MLK97
Copy link

MLK97 commented Mar 3, 2022

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: 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
Copy link
Member

jgabry commented Mar 3, 2022

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
Copy link
Member

jgabry commented Mar 3, 2022

@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 jgabry added the bug label Mar 3, 2022
@MLK97
Copy link
Author

MLK97 commented Mar 3, 2022

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 MLK97 closed this as completed Mar 3, 2022
@jgabry
Copy link
Member

jgabry commented Mar 3, 2022

Glad that works!

@jgabry
Copy link
Member

jgabry commented Mar 3, 2022

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

@jgabry jgabry reopened this Mar 3, 2022
@MLK97
Copy link
Author

MLK97 commented Mar 7, 2022

@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
Copy link

klamb011 commented Mar 8, 2022

@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
Copy link
Member

jgabry commented Mar 9, 2022

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
Copy link

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
Copy link
Member

jgabry commented Mar 10, 2022

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

@lgondara
Copy link

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
Copy link
Member

jgabry commented Mar 17, 2022

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

@tranktle
Copy link

tranktle commented Apr 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants