Hi,
I'm wondering if in the future it will be possible to publish quarto websites and/or books which contain pages that have interactive shiny elements?
My limited understanding is that when I deploy my site, it cannot include pages with shiny elements because the website is deployed as a static document. I would like to be able to maintain the narrative driven layout of my Quarto website but incorporate some interactivity.
I am trying to work around this using shinylive but it seems to have limited app capabilities and is very slow. For example, shinylive apparently cannot use readxl::read_xlsx()..?
Maybe in the future it would be possible to deploy a website that is deployed as an app rather than a static document? apologies for my rudimentary understanding, just trying to figure out the best way to get shiny interactivity on my website now and in the future.
Thank You!
Hi @AKates717
We recently rolled out a feature targeting the situation you describe. Check out [Product Update] Interactive Quarto Documents with Shiny for details. When your Quarto content includes interactive Shiny applications, we do not deploy it statically.
It's always possible we didn't consider something and the feature isn't working as intended. If you're having an experience that differs from the documentation, we'd welcome your feedback. Thanks!
Hi @mbaynton, thank you for the reply!
When I click "Run Document" on my .qmd file I get this error in R Studio:
ERROR: shiny.qmd uses server: shiny so cannot be included in a website project (shiny documents require a backend server and so can't be published as static web content).
Maybe I'm doing something wrong on my end? I have downloaded the latest version of quarto and checked:
check_newer_version()
You are using the latest stable version of Quarto: 1.8.27.
Thanks!
Hi @AKates717
Sorry, I overlooked the essential detail in this request that you're working with a full quarto website. Unfortunately, when server-side Shiny elements are included, only single documents -- not multi-document websites -- are supported for now. Your use case makes sense though and I'll note your interest in this feature in our internal tracking systems.
Thanks, and sorry for the confusion.
Mike
1 Like