Closed GakenouOF closed 2 years ago
Have you tried using a different theme?
data_edit(mtcars, theme = "cosmo")
I just tried it, say it is not an available theme
Perhaps you need to update your shinythemes package.
I am using the latest version (1.2.0)
Same for me unfortunately (Win11, R 4.1.0, RStudio 2022.02.0 Build 443, shinythemes 1.2.0). Other shiny apps working as expected
Looks like shinythemes
has been depreciated in favour of bslib
and this has recently changed in shiny
as well. I tried upgrading to bslib
but it causes some issue with the UI - I wil need to fiddle around with this a bit to get it to work.
In the meantime, I have just pushed an update to GitHub to bypass setting a theme when theme = NULL
- this will at least allow the use of DataEditR while I sort this out.
data_edit(mtcars, theme = NULL)
Thanks very much for the quick response - this update works for me
I just pushed an update to GitHub to make the switch to bslib
. Unfortunately, using bootstrap 4 causes the Done
button to move over to the left so I have decided to stick to bootstrap 3 for now. Also users can now create their own custom bs_theme
and pass directly to the theme
argument:
library(bslib)
custom_thme <- bs_theme(bootswatch = "cosmo")
data_edit(mtcars, theme = custom_theme)
Users can still simply supply the name of the theme to the theme
argument as well:
data_edit(mtcars, theme = "cosmo")
Thanks for reporting this issue. I will push this update to CRAN today.
Thanks for sorting this out so quickly - great package. I think we can mark as closed
I have just installed the package and i tried using the
data_edit
function on my dataset. It keeps returning this errorError in shinytheme(theme): yeti is not an available theme. Valid themes are: .
PS: This package worked fine on a computer i was using previously. I am using a new one and i get this error message. I am not sure if it is a package issue or computer.