Open luukvdmeer opened 7 months ago
There are no current plans to support Rmarkdown for shinylive. You can use a quarto document with a shinylive cell, but not a server: shiny
document.
Example link to quarto document: https://github.com/posit-dev/r-shinylive/blob/52ac800b95961803e35971cef445cd9d26db6239/local/quarto/shinylive.qmd
It would be nice to have a server: shinylive
(or similar) to have the document be able to be statically exported.
By adding the
runtime: shiny
header you can build Shiny apps with RMarkdown documents: https://rmarkdown.rstudio.com/articles_interactive.htmlI am wondering if its possible to also export such documents as Shinylive applications. When simply running
shinylive::export("myapp", "site")
with the myapp directory containing only an.Rmd
file with interactive elements, it currently fails since there is neither anapp.R
norserver.R
file present:In the documentation of the interactive documents linked above it is mentioned that a
server.R
file is created when running the interactive notebook:However, I can't find the location where that file is stored, neither do I know if a "pseudo server.R file" is enough for shinylive.