Open mevers opened 3 years ago
Thanks for the reproducible code. Clearly, supreme hasn't been designed for moduleServer
and I am afraid that there is no easy way to adapt the new syntax without undergoing major refactoring. I need to think a while about how to proceed with this.
Ah that's a real shame. I'd love to see supreme
work with current shiny
syntax. For what it's worth, the moduleServer
syntax was introduced around 12 months ago (see e.g. Modularizing Shiny app code, Mastering Siny) and IMO are important steps forward towards facilitating more consistent shiny app code base management and production-level shiny app development.
Perhaps a note on the GH page stating that supreme
does not work with current shiny
versions (yet) would be helpful. Alternatively,
shiny (< 1.5.0)
in the Imports
.
PS. Just double checked the DESCRIPTION
and shiny (>= 1.5.0)
is definitely wrong in that case. Perhaps a typo? Should be < 1.5.0
to avoid issues with current moduleServer
.
I no longer use Shiny on daily basis and I wasn't really aware of the new changes. Unfortunately, I don't have time to work on it but I'll be happy to review a PR & get you familiar with the codebase if you'd like to take a chance.
Perhaps a note on the GH page stating that supreme does not work with current shiny versions (yet) would be helpful.
It's working with the latest Shiny version (1.6.0
) but doesn't work with the new module syntax. I'm sure there's still a lot of applications around with the old module structrure. I'll add a note to the README. Thanks.
Hi.
I am unable to get
supreme
to run on a simple test app. Mostsupreme
examples I could find are based on apps using the older (and now (soft-)deprecated)callModule
syntax and not on the more recent (shiny >= 1.5.0
)moduleServer
syntax. I'm not sure if this is the cause of my problems or if there is something else going on.My app has
ui.R
andserver.R
in a root folder, along with module files in folder ./R (this is a/the recommended file structure for a shiny app in an R package); a minimal example looks like this:with the following files
ui.R
R/about.R
server.R
Upon running
I get
At first I thought that perhaps the
demo_about
function in the module causes problems but that doesn't seem to be the case. I am unsure how to proceed and/or debug this.